The project was created with Xtext 2.8 but I am running eclipse neon with Xtext 2.10.
class GeneratorModelScopeProvider extends XbaseBatchScopeProvider {
@Inject GeneratorModelDelegateScopeProvider delegate
override IScope getScope(EObject context, EReference reference) {
var scope = delegate.getScope(context, reference)
if (scope == null) {
scope = super.getScope(context, reference)
}
scope
}
}
class GeneratorModelDelegateScopeProvider extends AbstractDeclarativeScopeProvider {
def IScope scope_PrefixDefinition_counter(EObject model, EReference reference) {
....
}
def IScope scope_GeneratorContentGroup_model(EObject model, EReference reference) {
...
}
def IScope scope_ContentManager_generatorState(EObject model, EReference reference) {
...
}
def IScope scope_ContentDeclaration_targetClass(EObject model, EReference reference) {
...
}
def IScope scope_ContentDispatcher_targetClass(EObject model, EReference reference) {
...
}
...
}
I have debugged the scope provider but it seems to be called only in the context of quickfix resolution. The produced scope does contain the requested reference.