When using the parser with the option loc: true
, there are many cases where the locations show the same line/column numbers for the start and end of the node.
The common case is Identifiers, though this also seems to appear in other places like in VariableDeclarations and NumberLiterals. The attached file shows a basic reproducer along with the AST that run.js produces when {loc: true}
is added to the parse invocation. All of the Identifier locations are incorrect in the JSON.
Repro.sol.txt
Repro.sol.json.txt