Open kjy5 opened 3 months ago
It's hard to answer for the project designers, but I think it's because the variable declaration is a special expression. For example, you could write "int one = 1, two = 2;". In this case you have 2 variable declarations "one = 1", "two = 2" each with the type of the variable among its attributes.
When parsing the line
I get
VariableDeclarator [29, 36]
PrimitiveType: int [25,28]
SimpleName: one [29,32]
IntegerLiteralExpr: 1 [35,36]
Why does
VariableDeclarator
start at 29 if it's child,PrimitiveType
starts at 25? Is this expected behavior?Thank you!