uwol / proleap-cobol-parser

ProLeap ANTLR4-based parser for COBOL
MIT License
136 stars 74 forks source link

Line numbers of tokens should refer to the original parsed file #41

Open albertolovato opened 6 years ago

albertolovato commented 6 years ago

When visiting an AST node, line numbers extracted with ctx.getStart().getLine(); should not account for preprocessed copy files. Otherwise, elements cannot be located in the original file.