Package org.eclipse.xtext.scoping.impl

Examples of org.eclipse.xtext.scoping.impl.SimpleScope


    Set<IEObjectDescription> descriptions = emptySet();
    return createScope(descriptions);
  }

  private static IScope createScope(Iterable<IEObjectDescription> descriptions) {
    return new SimpleScope(descriptions, DO_NOT_IGNORE_CASE);
  }
View Full Code Here


    if (ct instanceof Container)
      outer = getScope((Container) ct, type);
    else if (ct instanceof TranslationUnit)
      outer = getFullScope((TranslationUnit) ct, type);

    IScope result = new SimpleScope(outer, getScopedElements(context, type));
    scopecache.put(clave, result);
    return result;
  }
View Full Code Here

    IScope scope = getScope(trunit, type);

    outer = concatenate(outer, scope.getOuterScope());

    return new SimpleScope(outer, scope.getContents());
  }
View Full Code Here

    includes.addAll(getIncludes(trunit, false));

    if (!includes.isEmpty())
      outer = depthTraverse(type, includes.iterator());

    IScope result = new SimpleScope(outer, getScopedElements(trunit, type));
    scopecache.put(clave, result);
    return result;
  }
View Full Code Here

   */
  private static IScope concatenate(IScope outer, IScope inner) {
    IScope result = outer;

    if (inner != IScope.NULLSCOPE)
      result = new SimpleScope(concatenate(outer, inner.getOuterScope()), inner.getContents());

    return result;
  }
View Full Code Here

      if (eObj instanceof Strategy) {
        Strategy strategy = (Strategy) eObj;
        descs.add(EObjectDescription.create(strategy.getName(), strategy));
      }
    }
    return new SimpleScope(parentScope, descs);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.scoping.impl.SimpleScope

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.