Package org.python.pydev.parser.visitors

Examples of org.python.pydev.parser.visitors.FindLastLineVisitor


            if (strNode != null) {
                return NodeUtils.getLineEnd(strNode);
            }

            FindLastLineVisitor findLastLineVisitor = new FindLastLineVisitor();
            try {
                classNode.name.accept(findLastLineVisitor);
                if (classNode.bases != null) {
                    for (SimpleNode n : classNode.bases) {
                        n.accept(findLastLineVisitor);
                    }
                }
                SimpleNode lastNode = findLastLineVisitor.getLastNode();
                ISpecialStr lastSpecialStr = findLastLineVisitor.getLastSpecialStr();
                if (lastSpecialStr != null
                        && (lastSpecialStr.toString().equals(":") || lastSpecialStr.toString().equals(")"))) {
                    // it was an from xxx import (euheon, utehon)
                    return lastSpecialStr.getBeginLine();
                } else {
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.visitors.FindLastLineVisitor

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.