Package org.apache.flex.compiler.definitions

Examples of org.apache.flex.compiler.definitions.IDefinition.resolveType()


                IDefinition def = resolve(project);
                // Didn't resolve to anything, just return '*'
                if (def == null)
                    type = project.getBuiltinType(IASLanguageConstants.BuiltinType.ANY_TYPE);
                else
                    type = def.resolveType(project);
                break;
            }
               
            case REST:
            {
View Full Code Here


                // resolve to some content inside the XML (i.e. it has a child tag named 'name').
                // return '*' since we can't statically know what the type will be.
                // Compat with ASC behavior.
                return project.getBuiltinType(IASLanguageConstants.BuiltinType.ANY_TYPE);
            }
            return def.resolveType(project);
        }

        return null;
    }
   
View Full Code Here

            if (!((skinPartDef instanceof IVariableDefinition) || (skinPartDef instanceof IGetterDefinition)))
                skinPartDef = null;

            ITypeDefinition skinPartTypeDef = null;
            if (skinPartDef != null)
                skinPartTypeDef = skinPartDef.resolveType(project);

            if (skinPartTypeDef == null && hostSkinPartDef.isRequiredSkinPart())
            {
                ICompilerProblem problem = new MissingSkinPartProblem(skinPart, hostComponentDef.getBaseName());
                problems.add(problem);
View Full Code Here

                String thisAttrib = null;
               
                IDefinition propertyDefinition = ((FlexProject)project).resolveProperty(type, attribName);
                if (propertyDefinition != null) //is it a property?
                {
                    ITypeDefinition propertyType = propertyDefinition.resolveType(project);
                    if (propertyType.isInstanceOf(stringType, project)
                        || propertyType == objectType
                        || propertyType == anyType)
                    {
                        thisAttrib = attribName + " = \"" + attribValue + "\"";
View Full Code Here

        // If there is no property definition, this is a dynamic property with type "*".
        if (definition == null)
            return (ITypeDefinition)project.getBuiltinType(IASLanguageConstants.BuiltinType.ANY_TYPE);

        return definition.resolveType(project);
    }

    protected String getPropertyTypeName(MXMLTreeBuilder builder)
    {
        ITypeDefinition propertyType = getPropertyType(builder);
View Full Code Here

    @Override
    public ITypeDefinition resolveType(ICompilerProject project)
    {
        IDefinition d = resolve(project);
        if (d != null)
            return d.resolveType(project);

        return null;
    }

    @Override
View Full Code Here

            if (emitter != null && emitter instanceof JSFlexJSEmitter)
            {
                ICompilerProject project = ((JSFlexJSEmitter)emitter).project;
                if (project != null)
                {
                    packageName = ((ITypeDefinition)ndef.resolveType(project))
                            .getPackageName();
                }
            }
           
            emitTypeShort(node, packageName);
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.