Package com.intellij.lang.javascript.psi

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


      if (testsObjectLiteral != null) {
        return new TestGeneratorOnObjectLiteral(testsObjectLiteral, context);
      } else {
        if (jstdTestCaseStructure.getTestCount() == 0) {
          JSCallExpression callExpression = jstdTestCaseStructure.getEnclosingCallExpression();
          JSArgumentList argumentList = callExpression.getArgumentList();
          JSExpression[] arguments = JsPsiUtils.getArguments(argumentList);
          if (arguments.length == 1 && arguments[0] != null) {
            return new TestGeneratorOnNewlyCreatedObjectLiteral(argumentList, context);
          }
        }
View Full Code Here


                            Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor();
                            PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
                            JSCallExpression jsCallExpression = SignalsUtils.getCallExpressionFromCaret(editor, file);

                            JSArgumentList argumentList = jsCallExpression.getArgumentList();
                            PsiReference reference = argumentList.getPrevSibling().getFirstChild().getReference();
                            JSArgumentList signalParams = SignalsUtils.getStringParametersFromSignalReference(reference);

                            JSFunction jsFunction = (JSFunction) JSChangeUtil.createJSTreeFromText(psiElement.getProject(), "function foo" + signalParams.getText(), JavaScriptSupportLoader.ECMA_SCRIPT_L4).getPsi();
                            fakeParameterInfoComponent.setMyObjects(new Object[]{jsFunction});
                            fakeParameterInfoComponent.update();
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of com.intellij.lang.javascript.psi.JSArgumentList

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.