prakashjegan / javaparser

Automatically exported from code.google.com/p/javaparser
0 stars 0 forks source link

Tokens position #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I faced some problems when performing simple semantic analysis.
Obviously I need to indicate line and column position of error
in parsed source file. But it seems it’s impossible to determine
position of class or method modifiers : "public", "private"...

Ideally, I need to know position of all tokens inside all AST nodes.
For example it would be good to be able to write analog of DumpVisitor -
ExactDumpVisitor that prints source that is not different from original
(in the sense that all tokens have exactly same positions as in original 
file).

Original issue reported on code.google.com by ibelong2...@yandex.ru on 22 Dec 2008 at 10:02

GoogleCodeExporter commented 8 years ago

Original comment by jges...@gmail.com on 22 Dec 2008 at 10:51