-
private scopeStructMembers(struct: StructsList): Scope { private scopeStructMembers(struct: StructsList): Scope { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
TYPE PROGRAM Test for my using,the above first struct scope method can handle s1.aa:=1;(first variables in var declaration) while above second struct scope method can handle s1.bb:=1; or s1.cc:=1; or s1.dd:=1; |
Beta Was this translation helpful? Give feedback.
-
Hey @zrwsmd, the naive and generic method simply would be to do the following: return new StreamScope(scopeA.getAllElements().concat(scopeB.getAllElements())); I would assume there is a solution with better performance, for the specific case. |
Beta Was this translation helpful? Give feedback.
Hey @zrwsmd,
the naive and generic method simply would be to do the following:
I would assume there is a solution with better performance, for the specific case.