Package com.intellij.lang.javascript.psi.ecmal4

Examples of com.intellij.lang.javascript.psi.ecmal4.JSSuperExpression


    public void actionPerformed(AnActionEvent e)
    {
        final Project project = e.getData(LangDataKeys.PROJECT);
        PsiFile file = e.getData(LangDataKeys.PSI_FILE);

        final JSClass jsClass = getJSClassFromFile(file);

        if (jsClass != null)
        {
            for (final RobotlegsEnum classType : RobotlegsEnum.values())
            {
View Full Code Here


        return false;
    }

    private JSClass getJSClassFromFile(PsiFile file)
    {
        JSClass jsClass = null;
        if (file instanceof XmlFile)
        {
            jsClass = XmlBackedJSClassImpl.getXmlBackedClass(getRootTag((XmlFile) file));
        }
View Full Code Here

    }

    public static JSArgumentList getStringParametersFromSignalReference(final PsiReference signal){
        JSType jsType = findJSTypeFromReference(signal);

        JSSuperExpression jsSuperExpression = PsiTreeUtil.findChildOfType(jsType.resolveClass(), JSSuperExpression.class);

        //check for super()
        JSArgumentList argumentsList;
        if (jsSuperExpression != null){
            argumentsList = ((JSCallExpression) jsSuperExpression.getContext()).getArgumentList();
            if (argumentsList != null){
                return argumentsList;
            }
        }
View Full Code Here

TOP

Related Classes of com.intellij.lang.javascript.psi.ecmal4.JSSuperExpression

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.