Skip to content

What is the recommended way to access the AST? #394

Answered by msujew
ballcoach12 asked this question in Q&A
Discussion options

You must be logged in to vote

@ballcoach12 The easies way would probably to simply ask the LangiumDocuments service. Each LangiumDocument contains a ParseResult, where the ParseResult#value property is your AST root node. No reparsing necessary :)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ballcoach12
Comment options

@msujew
Comment options

@ballcoach12
Comment options

@msujew
Comment options

@ballcoach12
Comment options

Answer selected by ballcoach12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants