Package org.eclipse.xtext.scoping

Examples of org.eclipse.xtext.scoping.IScopeProvider


  /**
   * Mostly a copy of super
   */
  protected IScope getScope(EObject context, EReference reference) {
    IScopeProvider scopeProvider = getScopeProvider();
    if (scopeProvider == null)
      throw new IllegalStateException("scopeProvider must not be null.");
    try {
      registerImportedNamesAdapter(context);
      if (scopeProvider instanceof IScopeProviderWithNode) {
        ((IScopeProviderWithNode)scopeProvider).setNode(linkNode);
      }
      return scopeProvider.getScope(context, reference);
    } finally {
      unRegisterImportedNamesAdapter();
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.scoping.IScopeProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.