Package org.openquark.cal.compiler.IdentifierResolver

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


       
        if (potentialDescendantScope == potentialAncestorScope) {
            return true;
        }
       
        SymbolTable parent = potentialDescendantScope.getParent();
        while (parent instanceof LocalScope) {
            if (parent == potentialAncestorScope) {
                return true;
            }
           
View Full Code Here


        @Override
        protected void handleLocalVariableBinding(final Binding<IdentifierInfo.Local> binding, final LocalScope scope) {

            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

TOP

Related Classes of org.openquark.cal.compiler.IdentifierResolver.SymbolTable

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.