Examples of JSFunctionExpression


Examples of com.intellij.lang.javascript.psi.JSFunctionExpression

  public static JstdTestStructure newPropertyBasedTestStructure(@NotNull JSProperty jsProperty) {
    PsiElement testMethodNameDeclaration = JsPsiUtils.getPropertyNamePsiElement(jsProperty);
    if (testMethodNameDeclaration == null) {
      return null;
    }
    JSFunctionExpression testMethodBody = ObjectUtils.tryCast(jsProperty.getValue(), JSFunctionExpression.class);
    String testName = StringUtil.stripQuotesAroundValue(testMethodNameDeclaration.getText());
    if (checkTestName(testName)) {
      return new JstdTestStructure(testName, testMethodNameDeclaration, null, testMethodBody, jsProperty);
    }
    return 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.