Package org.python.pydev.parser.jython.ast

Examples of org.python.pydev.parser.jython.ast.Starred


                break;
            case JJTDOT_OP:
                ret = new Attribute(null, null, Attribute.Load);
                break;
            case JJTSTAR_EXPR:
                ret = new Starred(null, Starred.Store);
                break;

            default:
                ret = new IdentityNode(id);
                break;
View Full Code Here


                    asname = makeName(NameTok.ImportName);
                }
                return new aliasType(makeName(NameTok.ImportName), asname);

            case JJTSTAR_EXPR:
                Starred s = (Starred) n;
                s.value = (exprType) this.stack.popNode();
                ctx.setStore(s);
                return s;

            case JJTSTRJOIN:
View Full Code Here

        String s = "a, *b, c = range(5)";

        Module ast = (Module) parseLegalDocStr(s);
        Assign assign = (Assign) ast.body[0];
        Tuple tup = (Tuple) assign.targets[0];
        Starred starred = (Starred) tup.elts[1];
        Name name = (Name) starred.value;
        assertEquals("b", name.id);
        assertEquals(Name.Store, name.ctx);
        parseLegalDocStrWithoutTree(s);
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.jython.ast.Starred

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.