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

Examples of org.python.pydev.refactoring.ast.visitors.context.ScopeAssignedVisitor


    @Override
    public void runTest() throws Throwable {
        StringBuffer buffer = new StringBuffer();
        ModuleAdapter module = VisitorFactory.createModuleAdapter(null, null, new Document(data.source),
                new PythonNatureStub(), createVersionProvider());
        ScopeAssignedVisitor visitor = VisitorFactory.createContextVisitor(ScopeAssignedVisitor.class,
                module.getASTNode(), module, module);

        assertTrue(visitor.getAll().size() > 0);

        printAttributes(buffer, visitor);
        this.setTestGenerated(buffer.toString().trim());

        assertEquals(getExpected(), getGenerated());
View Full Code Here


    /* (non-Javadoc)
     * @see org.python.pydev.refactoring.ast.adapters.IClassDefAdapter#getAssignedVariables()
     */
    public List<SimpleAdapter> getAssignedVariables() {
        ScopeAssignedVisitor visitor = VisitorFactory.createContextVisitor(ScopeAssignedVisitor.class, getASTNode(),
                this.getModule(), this);
        return visitor.getAll();
    }
View Full Code Here

        return this.classes;
    }

    public List<SimpleAdapter> getAssignedVariables() {
        if (assignedVariables == null) {
            ScopeAssignedVisitor visitor = VisitorFactory.createContextVisitor(ScopeAssignedVisitor.class,
                    getASTNode(), this.getModule(), this);
            assignedVariables = visitor.getAll();
        }
        return assignedVariables;
    }
View Full Code Here

        }
        return this.functions;
    }

    public List<SimpleAdapter> getAssignedVariables() {
        ScopeAssignedVisitor visitor = VisitorFactory.createContextVisitor(ScopeAssignedVisitor.class, getASTNode(),
                this.getModule(), this);
        return visitor.getAll();
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.ast.visitors.context.ScopeAssignedVisitor

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.