Package org.python.pydev.editor.codecompletion.revisited.visitors

Examples of org.python.pydev.editor.codecompletion.revisited.visitors.GlobalModelVisitor


            }

            if (module instanceof SourceModule) {
                //Support for __all__: filter things if __all__ is available.
                SourceModule sourceModule = (SourceModule) module;
                GlobalModelVisitor globalModelVisitorCache = sourceModule.getGlobalModelVisitorCache();
                if (globalModelVisitorCache != null) {
                    globalModelVisitorCache.filterAll(ret);
                }
            }
            return ret.toArray(new IToken[ret.size()]);
        } else {
            return completionsForModule;
View Full Code Here


            int all = GlobalModelVisitor.ALIAS_MODULES | GlobalModelVisitor.GLOBAL_TOKENS
                    | GlobalModelVisitor.WILD_MODULES | GlobalModelVisitor.MODULE_DOCSTRING;

            //we request all and put it into the cache (partitioned), because that's faster than making multiple runs through it
            GlobalModelVisitor globalModelVisitor = GlobalModelVisitor.getGlobalModuleVisitorWithTokens(ast, all, name,
                    state, false);

            this.globalModelVisitorCache = globalModelVisitor;

            List<IToken> ret = globalModelVisitor.getTokens();

            if (DEBUG_INTERNAL_GLOBALS_CACHE) {
                System.out.println("\n\nLooking for:" + which);
            }
            //cache
View Full Code Here

TOP

Related Classes of org.python.pydev.editor.codecompletion.revisited.visitors.GlobalModelVisitor

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.