ScriptDom version: 170.28.0
If column is marked as PRIMARY KEY inline then it begins to be parsed as MultipartIdentifier with a single identifier and all the other properties missing (-1 for indexes, null for ScriptTokenStream)
Minimal repro:
DECLARE @Results TABLE (IdObject INT NOT NULL PRIMARY KEY);

if I remove PRIMARY KEY the column name is not parsed as MultipartIdentifier anymore and the error goes away.