Package org.apache.flex.compiler.problems

Examples of org.apache.flex.compiler.problems.NonConstantParamInitializerProblem


        IParameterNode parameter_node = (IParameterNode)iNode;
        PooledValue transformed_default_value;
        // raw_default_value will be null if the parameter's default value was not a constant expression.
        if( raw_default_value == null )
        {
            currentScope.addProblem(new NonConstantParamInitializerProblem(parameter_node.getAssignedValueNode()));
            // re-write non-constant expression to undefined, so resulting ABC will pass the verifier.
            transformed_default_value = new PooledValue(ABCConstants.UNDEFINED_VALUE);
        }
        else
        {
View Full Code Here


               
                // init value might resolve to null, if the source code is bad
                if (initValue == null)
                {
                    IParameterNode paramNode = arg.getNode();
                    scope.addProblem(new NonConstantParamInitializerProblem(paramNode.getAssignedValueNode()));
                      // re-write non-constant expression to undefined, so resulting ABC will pass the verifier.
                      initValue = ABCConstants.UNDEFINED_VALUE;
                }
                mi.addDefaultValue(new PooledValue(initValue));
            }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.problems.NonConstantParamInitializerProblem

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.