Export new AstNodeDescriptions after scoping ? #1757
Unanswered
antoinelilly
asked this question in
Q&A
Replies: 1 comment 2 replies
-
is there a reason you decided against using class member scoping? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all !
I would like to know if it is possible to export a new description for a node after scoping ? If not, maybe give me an idea to solve the following problem :
My grammar is based on classes and attributes with inheritance. I already implemented qualified name scoping by overriding getScope and computeExports which works well, except in one case. Consider the following :
Scoping works for Child.attribute2 and Parent.attribute1 because I correctly exported the attributes descriptions under their qualified names. But for Child.attribute1, which I want be available because it is an inherited attribute from the Parent class, I don't know how to proceed. I can't export its descriptions like the others because the scoping on the Parent reference (in "extends Parent") hasn't been solved yet. That's why my idea was to create a new description for the node after scoping.
Any help would be most welcome!
Beta Was this translation helpful? Give feedback.
All reactions