Package org.apache.flex.compiler.internal.scopes

Examples of org.apache.flex.compiler.internal.scopes.ASProjectScope


     * name.
     * @param qname A fully qualified class name.
     */
    void setClassReference(FlexProject project, String qname)
    {
        ASProjectScope projectScope = (ASProjectScope)project.getScope();
        IDefinition definition = projectScope.findDefinitionByName(qname);
        // TODO This method is getting called by MXML tree-building
        // with an interface qname if there is a property whose type is an interface.
        // Until databinding is implemented, we need to protect against this.
        if (definition instanceof IClassDefinition)
            setClassReference(project, (IClassDefinition)definition);
View Full Code Here


    @Override
    public IClassDefinition getClassReference(ICompilerProject project)
    {
        if (xmlType == XML_TYPE.OLDXML)
        {
            ASProjectScope projectScope = (ASProjectScope)project.getScope();
            return (IClassDefinition)projectScope.findDefinitionByName(XML_NODE_NAME);
        }

        return super.getClassReference(project);
    }
View Full Code Here

                emitHeaderLine(name);
                writtenInstances.add(name);
            }
        }
        FlexJSProject project = (FlexJSProject) getMXMLWalker().getProject();
        ASProjectScope projectScope = (ASProjectScope) project.getScope();
        IDefinition cdef = node.getDefinition();
        ICompilationUnit cu = projectScope
                .getCompilationUnitForDefinition(cdef);
        ArrayList<String> deps = project.getRequires(cu);

        if (deps != null)
        {
View Full Code Here

        if (project == null)
            project = getWalker().getProject();

        FlexJSProject flexProject = (FlexJSProject) project;
        ASProjectScope projectScope = (ASProjectScope) flexProject.getScope();
        ICompilationUnit cu = projectScope
                .getCompilationUnitForDefinition(type);
        ArrayList<String> requiresList = flexProject.getRequires(cu);
        ArrayList<String> interfacesList = flexProject.getInterfaces(cu);

        String cname = type.getQualifiedName();
View Full Code Here

        if (project == null)
            project = getWalker().getProject();

        FlexJSProject flexProject = (FlexJSProject) project;
        ASProjectScope projectScope = (ASProjectScope) flexProject.getScope();
        ICompilationUnit cu = projectScope
                .getCompilationUnitForDefinition(type);
        ArrayList<String> requiresList = flexProject.getRequires(cu);
        ArrayList<String> interfacesList = flexProject.getInterfaces(cu);

        String cname = type.getQualifiedName();
View Full Code Here

                emitHeaderLine(name);
                writtenInstances.add(name);
            }
        }
        FlexJSProject project = (FlexJSProject) getMXMLWalker().getProject();
        ASProjectScope projectScope = (ASProjectScope) project.getScope();
        IDefinition cdef = node.getDefinition();
        ICompilationUnit cu = projectScope
                .getCompilationUnitForDefinition(cdef);
        ArrayList<String> deps = project.getRequires(cu);

        if (deps != null)
        {
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.scopes.ASProjectScope

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.