Don't lose syntax locations for TR define

Closes PR 14544