raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

It would be nice, if RAML parser contained information about source lines

Open petrochenko-pavel-a opened this issue 11 years ago • 2 comments

It would be nice, if RAML parser contained information about source locations of model elements.

Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-155

petrochenko-pavel-a avatar Dec 20 '13 10:12 petrochenko-pavel-a

the Raml object itself does not have information about source lines, but if you have a reference to the builder you can access SnakeYaml parser output that contains the information:

org.raml.parser.visitor.YamlDocumentBuilder#getRootNode

svacas avatar Dec 20 '13 17:12 svacas

Actually this is not enough, because ideally we would like to have a mapping of RAML model objects on source lines

petrochenko-pavel-a avatar Jan 09 '14 21:01 petrochenko-pavel-a