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

Examples of org.python.pydev.refactoring.ast.visitors.LocalVariablesVisitor


        AbstractScopeNode<?> scope = info.getScopeAdapter();
        ITextSelection selection = info.getUserSelection();

        SimpleNode node = scope.getASTNode();

        LocalVariablesVisitor visitor = new LocalVariablesVisitor();
        try {
            node.accept(visitor);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

        List<Name> variables = visitor.getVariables();

        Name selectedVariable = findSelectedVariable(selection, variables);

        if (selectedVariable == null) {
            status.addFatalError(Messages.validationNoNameSelected);
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.ast.visitors.LocalVariablesVisitor

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.