Examples of MXMLFileScope


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

        ISourceFragment[] fragments = attribute.getValueFragments(problems);

        // Adjust fragment offsets from local to absolute,
        // to take into account include files, source attributes, etc.
        final MXMLFileScope fileScope = builder.getFileScope();
        final OffsetLookup offsetLookup = fileScope.getOffsetLookup();
        assert offsetLookup != null : "Expected OffsetLookup on FileScope.";
        for (ISourceFragment fragment : fragments)
        {
            int physicalStart = fragment.getPhysicalStart();
            final int[] absoluteOffsets = offsetLookup.getAbsoluteOffset(attribute.getSourcePath(), physicalStart);
View Full Code Here

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

    @Override
    protected void processChildTag(MXMLTreeBuilder builder, IMXMLTagData tag,
                                   IMXMLTagData childTag,
                                   MXMLNodeInfo info)
    {
        MXMLFileScope fileScope = builder.getFileScope();

        MXMLNodeBase childNode = null;

        if (fileScope.isLibraryTag(childTag))
        {
            childNode = new MXMLLibraryNode(this);
        }
        else if (fileScope.isModelTag(childTag))
        {
            childNode = new MXMLModelNode(this);
        }
        else if (fileScope.isPrivateTag(childTag))
        {
            // A <Private> tag must be the last child tag.
            if (childTag.getNextSibling(true) != null)
            {
                ICompilerProblem problem = new MXMLPrivateTagLocationProblem(childTag);
View Full Code Here

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

                // TODO Add a problem subclass for this.
                ICompilerProblem problem = new MXMLSemanticProblem(childTag);
                builder.addProblem(problem);
            }
           
            MXMLFileScope fileScope = builder.getFileScope();
            ClassDefinition definitionTagClass =
                    fileScope.getClassDefinitionForDefinitionTag(tag);

            assert tagDefinition == definitionTagClass.resolveBaseClass(project);

            containedClassDefinitionNode.setClassReference(project, tagDefinition); // TODO Move this logic to initializeFromTag().
            containedClassDefinitionNode.setClassDefinition(definitionTagClass); // TODO Move this logic to initializeFromTag().
View Full Code Here

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

    @Override
    protected void processChildTag(MXMLTreeBuilder builder, IMXMLTagData tag,
                                   IMXMLTagData childTag,
                                   MXMLNodeInfo info)
    {
        MXMLFileScope fileScope = builder.getFileScope();

        // Check whether the tag is an <fx:Component> tag.
        if (fileScope.isComponentTag(childTag))
        {
            instanceNode = new MXMLComponentNode(this);
            instanceNode.initializeFromTag(builder, childTag);
        }
        else
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.