Package com.python.pydev.analysis.scopeanalysis

Examples of com.python.pydev.analysis.scopeanalysis.ScopeAnalyzerVisitorForImports


    protected List<ASTEntry> findReferencesOnOtherModule(RefactoringStatus status, String initialName,
            SourceModule module) {
        List<ASTEntry> entryOccurrences = new ArrayList<ASTEntry>();

        try {
            ScopeAnalyzerVisitorForImports visitor = new ScopeAnalyzerVisitorForImports(request.nature,
                    module.getName(), module, new NullProgressMonitor(), request.ps.getCurrToken().o1,
                    request.ps.getActivationTokenAndQual(true), moduleToFind);

            SimpleNode root = module.getAst();
            root.accept(visitor);
            entryOccurrences = visitor.getEntryOccurrences();
            if (entryOccurrences.size() > 0) {
                //only add comments and strings if there's at least some other occurrence
                entryOccurrences.addAll(ScopeAnalysis.getCommentOccurrences(request.initialName, root));
                entryOccurrences.addAll(ScopeAnalysis.getStringOccurrences(request.initialName, root));
            }
View Full Code Here

TOP

Related Classes of com.python.pydev.analysis.scopeanalysis.ScopeAnalyzerVisitorForImports

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.