Package com.jetbrains.lang.dart.psi

Examples of com.jetbrains.lang.dart.psi.DartQualifiedComponentName


    return getText();
  }

  @Override
  public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
    final DartQualifiedComponentName identifierNew = DartElementGenerator.createQIdentifierFromText(getProject(), newElementName);
    if (identifierNew != null) {
      getNode().replaceAllChildrenToChildrenOf(identifierNew.getNode());
    }
    return this;
  }
View Full Code Here


      for (PsiElement root : DartResolveUtil.findDartRoots(psiFile)) {
        DartLibraryStatement lib = PsiTreeUtil.getChildOfType(root, DartLibraryStatement.class);
        if (lib == null) {
          continue;
        }
        DartQualifiedComponentName componentName = lib.getQualifiedComponentName();
        result.add(new PsiElementResolveResult(componentName));
      }
    }
    return result.toArray(new ResolveResult[result.size()]);
  }
View Full Code Here

    super(node);
  }

  @Override
  public PsiElement setName(@NonNls @NotNull String newElementName) throws IncorrectOperationException {
    final DartQualifiedComponentName identifierNew = DartElementGenerator.createQIdentifierFromText(getProject(), newElementName);

    if (identifierNew != null) {
      getNode().replaceAllChildrenToChildrenOf(identifierNew.getNode());
    }

    return this;
  }
View Full Code Here

TOP

Related Classes of com.jetbrains.lang.dart.psi.DartQualifiedComponentName

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.