|
|
|
Re: local scope problem [message #1707946 is a reply to message #1707935] |
Thu, 10 September 2015 17:42 |
|
Hi,
as i said: you would have to adapt scoping e.g. like
def IScope scope_AssignmentType_sc(Scope ctx, EReference ref) {
new SimpleScope(new FilteringScope(delegateGetScope(ctx,ref), [
!EcoreUtil2.isAssignableFrom(MyDslPackage.Literals.SCOPE, EClass)
]), newArrayList(EObjectDescription.create(QualifiedName.create(ctx.name), ctx)))
}
def IScope scope_AssignmentType_sc(Model ctx, EReference ref) {
IScope.NULLSCOPE // hides global level stuff
}
AssignmentType:
INTEGER | FLOAT | sc=[Test|ID]
;
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Re: local scope problem [message #1707969 is a reply to message #1707961] |
Fri, 11 September 2015 04:30 |
|
well if you want refson toplevel you have to let them trough
def IScope scope_AssignmentType_sc(Model ctx, EReference ref) {
//here
new FilteringScope(delegateGetScope(ctx,ref), [
!EcoreUtil2.isAssignableFrom(MyDslPackage.Literals.SCOPE, EClass)
])
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03763 seconds