Skip to content

Is it impossible to attach user information to the Ast node? #1652

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

You must be logged in to vote

Hey @negahama,

we usually store this information on a DocumentCache or WorkspaceCache and simply use <AstNode, Type> for the type arguments. That way you don't need to worry about cache invalidation. See also the work in progress PR over at eclipse-langium/langium-website#241 for usage details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@negahama
Comment options

Answer selected by negahama
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