Package org.python.pydev.refactoring.ast.visitors.selection

Examples of org.python.pydev.refactoring.ast.visitors.selection.SelectionExtenderVisitor


public final class VisitorFactory {
    private VisitorFactory() {
    }

    public static ITextSelection createSelectionExtension(AbstractScopeNode<?> scope, ITextSelection selection) {
        SelectionExtenderVisitor visitor = null;
        try {
            visitor = new SelectionExtenderVisitor(scope.getModule(), selection);
            scope.getASTNode().accept(visitor);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return visitor.getSelection();
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.ast.visitors.selection.SelectionExtenderVisitor

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.