file1.mydsl a : int b : int file2.mydsl import "file1.mydsl" a : int c : int
@Check public void checkNamesUnique(Name name) { IScope scope = globalScopeProvider.getScope(name.eResource(), MydslPackage.Literals.NAME__EXPR, null); System.out.println(scope.getAllElements()); }
MydslPackage.Literals.INTERFACE_DEF__VARDEFS
file1.mydsl a : int b : int file2.mydsl a : int c : int file3.mydsl import "file1.mydsl" import "file2.mydsl"