Will it be possible to get the text for my current rule in validator? #1680
Answered
by
msujew
durianwaffle
asked this question in
Q&A
-
Hi Langium community, I am wondering will it be possible to get the text for my current rule in validator? e.g. The text before operator and after operator in assignment. Or I need to loop through the astnode to find the complete text before operator. |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Sep 16, 2024
Replies: 1 comment 1 reply
-
Hey @durianwaffle, You can use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
durianwaffle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @durianwaffle,
You can use the
node.$cstNode?.text
property to access the original text of any AST node.