/** * Create a composite scope that returns description from multiple other scopes without applying shadowing semantics to then. */ protected CompositeScope createCompositeScope(EObject featureCall, IScope parent, IFeatureScopeSession session) { return new CompositeScope(parent, session, asAbstractFeatureCall(featureCall)); }
@Override protected List<IEObjectDescription> getLocalElementsByName(QualifiedName name) { List<IEObjectDescription> result = Lists.newArrayList(); for(AbstractSessionBasedScope delegate: delegates) { addToList(delegate.getLocalElementsByName(name), result); } return result; }
IScope.NULLSCOPE); if (IScope.NULLSCOPE != extensionsScope) { result.addDelegate((AbstractSessionBasedScope) extensionsScope); if (result.hasDelegates()) return result; return parent;
@Override protected List<IEObjectDescription> getAllLocalElements() { List<IEObjectDescription> result = Lists.newArrayList(); for(AbstractSessionBasedScope delegate: delegates) { addToList(delegate.getAllLocalElements(), result); } return result; }