Examples of PsiScopeProcessor


Examples of com.intellij.psi.scope.PsiScopeProcessor

  public static Set<HaxeComponentName> findVariables(@Nullable PsiElement at) {
    if (at == null) {
      return Collections.emptySet();
    }
    final Set<HaxeComponentName> result = new THashSet<HaxeComponentName>();
    PsiTreeUtil.treeWalkUp(new PsiScopeProcessor() {
      @Override
      public boolean execute(@NotNull PsiElement element, ResolveState state) {
        if (element instanceof HaxeNamedComponent) {
          final HaxeNamedComponent haxeNamedComponent = (HaxeNamedComponent)element;
          if (haxeNamedComponent.getComponentName() != null && HaxeComponentType.isVariable(HaxeComponentType.typeOf(haxeNamedComponent))) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.