scoping - How to achieve "public static" member visibility using Xtext? -


within dsl there packages (one per file), imports, classes , class members. 1 file contains package p1 contains class c1 , class c1 has member m1. file contains package p2 contains class c2 has member m2.

i member m1, have visibility of member java modified public static. meaning package p2, after including p1, in class c2, member m2 have value reference m1 (m2=c1.m1).

imports work, can see elements directly contained imported entity (including p1.c1.* fix problem don't want way) there solution type of scoping?

reference: type=[type]  

is short for

reference: type=[type|id]  

the |idmeans id parsed. id not allow dots (.)

thus may want change grammar to

reference: type=[type|qualifiedname]  

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -