The lexer only knows LIDENTIFIER and UIDENTIFIER identifiers, but the grammar rewrites some of them to have PIDENTIFIER (package) or AIDENTIFIER (annotation) type. visitIdentifier needs to learn this.
(I learned this in ceylon.ast, and just now realized reading through FormattingVisitor that I hadn’t known this back then.)
The lexer only knows
LIDENTIFIER
andUIDENTIFIER
identifiers, but the grammar rewrites some of them to havePIDENTIFIER
(package) orAIDENTIFIER
(annotation) type.visitIdentifier
needs to learn this.(I learned this in
ceylon.ast
, and just now realized reading throughFormattingVisitor
that I hadn’t known this back then.)