Examples of DartPathOrLibraryReference


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

  }

  private void setNewPath(String newPath) {
    final DartPartStatement sourceStatement =
      DartElementGenerator.createPartStatementFromPath(getProject(), newPath);
    final DartPathOrLibraryReference newPathReference = sourceStatement == null ? null : sourceStatement.getPathOrLibraryReference();
    final DartStringLiteralExpression myStringLiteralExpression = PsiTreeUtil.getChildOfType(this, DartStringLiteralExpression.class);
    if (newPathReference != null && myStringLiteralExpression != null) {
      getNode().replaceChild(myStringLiteralExpression.getNode(), newPathReference.getStringLiteralExpression().getNode());
    }
  }
View Full Code Here

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

  @Nullable
  public PsiElement resolveLibrary() {
    final DartPsiCompositeElementImpl statement =
      PsiTreeUtil.getParentOfType(this, DartImportStatementImpl.class, DartExportStatementImpl.class);
    final DartPathOrLibraryReference pathOrLibraryReference = PsiTreeUtil.getChildOfType(statement, DartPathOrLibraryReference.class);
    return pathOrLibraryReference != null ? pathOrLibraryReference.resolve() : null;
  }
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.