Package com.jetbrains.lang.dart.psi

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


      templateManager.startTemplate(openedEditor, template);
    }
  }

  protected boolean buildTemplate(Template template, PsiElement psiElement) {
    DartCallExpression callExpression = PsiTreeUtil.getParentOfType(psiElement, DartCallExpression.class);
    if (callExpression == null) {
      LOG.debug(getName() + " cannot find function call for: " + psiElement.getText());
      return false;
    }
View Full Code Here


  }

  @Nullable
  @Override
  protected PsiElement findAnchor(PsiElement element) {
    DartCallExpression callExpression = PsiTreeUtil.getParentOfType(element, DartCallExpression.class);
    assert callExpression != null;
    DartExpression expression = callExpression.getExpression();
    DartReference[] dartReferences = PsiTreeUtil.getChildrenOfType(expression, DartReference.class);
    DartClass dartClass = dartReferences == null ? PsiTreeUtil.getParentOfType(element, DartClass.class)
                                                 : dartReferences[0].resolveDartClass().getDartClass();
    return DartResolveUtil.getBody(dartClass);
  }
View Full Code Here

    return testName;
  }

  @Nullable
  private static PsiElement findTestElement(@Nullable PsiElement element) {
    DartCallExpression callExpression = PsiTreeUtil.getParentOfType(element, DartCallExpression.class);
    while (callExpression != null) {
      if (isGroup(callExpression) || isTest(callExpression)) {
        return callExpression;
      }
      callExpression = PsiTreeUtil.getParentOfType(callExpression, DartCallExpression.class, true);
View Full Code Here

TOP

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

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.