Package org.python.pydev.parser.visitors.scope

Examples of org.python.pydev.parser.visitors.scope.SequencialASTIteratorVisitor


     * @param simpleNode this is the module with the AST that has the function definition
     * @return the function definition that matches the original definition as an ASTEntry
     */
    private ASTEntry getOriginalFunctionInAst(SimpleNode simpleNode) {
        if (functionDefEntryCache == null) {
            SequencialASTIteratorVisitor visitor = SequencialASTIteratorVisitor.create(simpleNode);
            Iterator<ASTEntry> it = visitor.getIterator(FunctionDef.class);
            ASTEntry functionDefEntry = null;
            while (it.hasNext()) {
                functionDefEntry = it.next();

                if (functionDefEntry.node.beginLine == this.definition.ast.beginLine
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.visitors.scope.SequencialASTIteratorVisitor

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.