Package org.python.pydev.parser.grammarcommon

Examples of org.python.pydev.parser.grammarcommon.JfpDef


    protected final void addSpecialToArgDef(Object str) {
        Token token = (Token) str;
        SimpleNode peeked = jjtree.peekNode();
        if (peeked instanceof JfpDef) {
            JfpDef jfpdef = (JfpDef) peeked;
            if (jfpdef.typeDef != null) {
                jfpdef.typeDef.getSpecialsAfter().add(token.asSpecialStr());
            } else {
                jfpdef.nameNode.getSpecialsAfter().add(token.asSpecialStr());
            }
View Full Code Here


                    tfpdefName = (Name) stack.popNode();
                } else {
                    throw new RuntimeException("Unexpected arity: " + arity);
                }

                return new JfpDef(tfpdefName, typeDef);
            case JJTONLYKEYWORDARG2:
            case JJTDEFAULTARG2:
                DefaultArg defaultArg;
                JfpDef jfpDef;
                if (arity == 1) {
                    jfpDef = (JfpDef) stack.popNode();
                    defaultArg = new DefaultArg(jfpDef.nameNode, null, jfpDef.typeDef, n.getId());
                } else if (arity == 2) {
                    exprType defaultValue = (exprType) stack.popNode();
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.grammarcommon.JfpDef

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.