Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 4.0
-
Component/s: parser-antlr
-
Labels:None
-
Number of attachments :
Description
If there are spaces at the end of a line statement, the space is also accounted in the lin / col info, instead of being the last (non-whitespace) character of the statement
Issue Links
- is duplicated by
-
GROOVY-3437
Line / column issues in the AST
-
Example test for the LineColumnChecker:
###excludeExtraWhitespaceInStatements::: 1 + 2 + 3 // bar :::[ExpressionStatement,(1:1),(1:10)][BinaryExpression,(1:1),(1:10)]