Examples of IMetaTagNode


Examples of org.apache.flex.compiler.tree.metadata.IMetaTagNode

            sourceLocation.getLine(), sourceLocation.getColumn(), problems);
       
        if (metaTagsNode == null)
            return null;

        IMetaTagNode embedMetaTagNode = metaTagsNode.getTagByName(IMetaAttributeConstants.ATTRIBUTE_EMBED);
        if (embedMetaTagNode == null)
            return null;
       
        EmbedNode embedNode = new EmbedNode(filePath, embedMetaTagNode, fileNode);
        embedNode.setSourceLocation(sourceLocation);
View Full Code Here

Examples of org.apache.flex.compiler.tree.metadata.IMetaTagNode

                    final String sourcePath = FilenameNormalization.normalize(functionCall.getSourcePath());
                    final MetaTagsNode metadata = ASParser.parseMetadata(project.getWorkspace(), embedMetadata,
                                                                         sourcePath, functionCall.getStart(),
                                                                         functionCall.getLine(), functionCall.getColumn(),
                                                                         problems);
                    final IMetaTagNode embedTag = metadata.getTagByName("Embed");
                    if (embedTag == null)
                    {
                        problems.add(new CSSEmbedAssetProblem(functionCall));
                    }
                    else
                    {
                        try
                        {
                            final EmbedCompilationUnit embedCompilationUnit =
                                    EmbedCompilationUnitFactory.getCompilationUnit(
                                            (ASProject)project,
                                            embedTag.getSourcePath(),
                                            functionCall,
                                            embedTag.getAllAttributes(),
                                            problems);
                            if (embedCompilationUnit == null)
                            {
                                problems.add(new CSSEmbedAssetProblem(functionCall));
                            }
View Full Code Here

Examples of org.apache.flex.compiler.tree.metadata.IMetaTagNode

                {
                    // enumerations are comma seprated, with no spaces
                    String[] split = enumeration.split(",");
                    styleDefinition.setEnumeration(split);
                }
                IMetaTagNode styleTagNode = metaTag.getTagNode();
                if (styleTagNode != null && styleTagNode instanceof IStyleTagNode)
                {
                    styleDefinition.setNode((IStyleTagNode)styleTagNode);
                }
                styleMap.put(name, styleDefinition);
View Full Code Here

Examples of org.apache.flex.compiler.tree.metadata.IMetaTagNode

        MetaTagsNode metaTags = ASParser.parseAtFunction(builder.getWorkspace(), text,
                location.getSourcePath(), location.getAbsoluteStart(), location.getLine(), location.getColumn(), builder.getProblems());
        if (metaTags == null)
            return;

        IMetaTagNode embedMetaData = metaTags.getTagByName(attributeName);
        assert (embedMetaData != null) : "no meta data, but MXMLCompilerDirectiveNodeBase constructed";
        attributes = embedMetaData.getAllAttributes();
    }
View Full Code Here

Examples of org.apache.flex.compiler.tree.metadata.IMetaTagNode

                    // Make the statements inside the script tag the children of this node.
                    int n = metaTagsNode.getChildCount();
                    metaTagNodes = new IMetaTagNode[n];
                    for (int i = 0; i < n; i++)
                    {
                        IMetaTagNode child = (IMetaTagNode)metaTagsNode.getChild(i);
                        metaTagNodes[i] = child;
                        ((NodeBase)child).setParent(this);
                    }
                }
            }
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.