Examples of LocalScope


Examples of org.cx4a.rsense.ruby.LocalScope

                RubyClass klass = object.getMetaClass();
                if (klass.isSingleton()) {
                    MetaClass metaClass = (MetaClass) klass;
                    if (metaClass.getAttached() instanceof RubyModule) {
                        context.pushFrame(klass, "sclass", klass, null, Visibility.PUBLIC);
                        context.pushScope(new LocalScope((RubyModule) metaClass.getAttached()));

                        if (node.getBodyNode() != null) {
                            createVertex(node.getBodyNode());
                        }
View Full Code Here

Examples of org.openquark.cal.compiler.IdentifierResolver.SymbolTable.LocalScope

            if (target.equals(binding.getIdentifierInfo())) {
                // find all the local definitions that are shadowed
                SymbolTable scopeToCheck = scope;
                while (scopeToCheck instanceof LocalScope) {
                    final LocalScope localAncestorScope = (LocalScope)scopeToCheck;
                    for (final Binding<IdentifierInfo.Local> bindingInAncestor : localAncestorScope.getBindings()) {
                        if (newName.equals(bindingInAncestor.getIdentifierInfo().getVarName())) {
                            shadowedLocalDefinitions.put(bindingInAncestor.getIdentifierInfo(), bindingInAncestor);
                        }
                    }
                   
View Full Code Here

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

                            FastStack<SimpleNode> stack = new FastStack<SimpleNode>(5);
                            if (module instanceof SourceModule) {
                                stack.push(((SourceModule) module).getAst());
                            }
                            stack.push(classDef);
                            ILocalScope scope = new LocalScope(stack);
                            return new Definition[] { new Definition(def.o1, def.o2, token.getRepresentation(), ast2,
                                    scope, module) };

                        } else {
                            return new Definition[0];
View Full Code Here

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

                        SourceModule m = (SourceModule) module;
                        FindScopeVisitor scopeVisitor = m.getScopeVisitor(a.beginLine, a.beginColumn);
                        return new Definition(def.o1, def.o2, rep, a, scopeVisitor.scope, module);
                    } else {
                        //line, col
                        return new Definition(def.o1, def.o2, rep, a, new LocalScope(new FastStack<SimpleNode>(5)),
                                module);
                    }
                } else if (token instanceof ConcreteToken) {
                    //a contrete token represents a module
                    String modName = token.getParentPackage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.