What is the best way to have the entries of Scope.java in semantic-model ? #27968
Unanswered
dulajdilshan
asked this question in
Q&A
Replies: 1 comment 3 replies
-
This looks like a limitation in the way we have modeled the symbol space. Not sure how feasible it would be to change this at this point. 😬 Btw, wasn't there a map which kept a list of entries against a name, instead of a single entry, when we looked at the symbol resolver? Is this something at a lower level than that? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
The current implementation is to have this as a Map
ballerina-lang/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/model/Scope.java
Line 37 in eefa8da
But, when we have two symbols with the same name (same key), we override the entry with new value
ballerina-lang/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/model/Scope.java
Line 49 in eefa8da
in the
define
functionThis is related to the issue #27816
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions