Package org.apache.flex.compiler.internal.definitions

Examples of org.apache.flex.compiler.internal.definitions.ConstantDefinition


    {
        String definitionName = nameNode.computeSimpleReference();

        VariableDefinition definition;
        definition = isConst() ?
                     new ConstantDefinition(definitionName) :
                     new VariableDefinition(definitionName);

        fillinDefinition(definition);

        definition.setDeclaredInControlFlow(isInControlFlow());
View Full Code Here


        configScope.addItemAfterNormalization(node);
        DefinitionBase constDef = node.getDefinition();
        configScope.getASScope().addDefinition(constDef);
        if (constDef instanceof ConstantDefinition)
        {
            ConstantDefinition def = (ConstantDefinition)constDef;
            Object value = def.resolveValue(backingProject);
            if (value == ConfigConstNode.UNKNOWN_VALUE)
            {
                // Get the real source node for the problem.
                // If there isn't one, then don't make a problem - assume
                // someone else already found the cause and logged it.
View Full Code Here

                NamespaceDefinition ns = (NamespaceDefinition)val;
                result = ns.resolveAETNamespace(project);
            }
            else if( val instanceof ConstantDefinition )
            {
                ConstantDefinition cd = (ConstantDefinition)val;
                result = cd.resolveValueFrom(project, (NodeBase)iNode);
            }
        }

        return result;
    }
View Full Code Here

                break;
            case ABCConstants.KIND_CONST:
                if (slot_value instanceof Namespace)
                    def = NamespaceDefinition.createNamespaceDefinition(definitionName, (Namespace)slot_value);
                else
                    def = new ConstantDefinition(definitionName, slot_value);
                break;
               
            default:
                throw new IllegalStateException("Invalid slot kind: " + kind);
        }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.definitions.ConstantDefinition

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.