Package org.apache.flex.compiler.common

Examples of org.apache.flex.compiler.common.ISourceLocation


    }

    @Override
    public ISourceFragment[] getFragments(Collection<ICompilerProblem> problems)
    {
        ISourceLocation location = this;

        switch (type)
        {
            case TEXT:
            {
View Full Code Here


            problems.add(new EmbedMultipleMetaTagsProblem(getNode()));
            return null;
        }

        String containingSourceFilename = getFileSpecification().getPath();
        ISourceLocation location = embedMetaTags[0];
        IMetaTagAttribute[] attributes = embedMetaTags[0].getAllAttributes();

        return EmbedCompilationUnitFactory.getEmbedData(project, getQualifiedName(), containingSourceFilename, location, attributes, problems);
    }
View Full Code Here

    {
        ITypeDefinition propertyType = getPropertyType(builder);

        ISourceFragment[] fragments = info.getSourceFragments();

        ISourceLocation location = info.getSourceLocation();
        if (location == null)
            location = sourceLocation;

        MXMLClassDefinitionNode classNode =
                (MXMLClassDefinitionNode)getClassDefinitionNode();
View Full Code Here

            if (sourcePath != null)
            {
                String text = builder.readExternalFile(attribute, sourcePath);
                if (text != null)
                {
                    ISourceLocation location = attribute.getValueLocation();
                    SourceFragment fragment = new SourceFragment(text, text,
                            location.getStart(), location.getLine(), location.getColumn());

                    info.addSourceFragments(sourcePath, new SourceFragment[] {fragment});
                }
            }
        }
View Full Code Here

    {
        super.initializeFromAttribute(builder, attribute);

        Collection<ICompilerProblem> problems = builder.getProblems();
        ISourceFragment[] fragments = attribute.getValueFragments(problems);
        ISourceLocation location = attribute.getValueLocation();
        instanceNode = createInstanceNode(builder, fragments, location);
    }
View Full Code Here

    protected void initializationComplete(MXMLTreeBuilder builder, IMXMLTagData tag,
                                          MXMLNodeInfo info)
    {
        if (childNode == null)
        {
            ISourceLocation location = info.getSourceLocation();
            if (location == null)
                location = tag.getLocationOfChildUnits();

            ISourceFragment[] sourceFragments = info.getSourceFragments();
View Full Code Here

    {
        ITypeDefinition type = builder.getBuiltinType(getName());

        ISourceFragment[] fragments = info.getSourceFragments();

        ISourceLocation location = info.getSourceLocation();
        if (location == null)
            location = tag.getLocationOfChildUnits();

        MXMLClassDefinitionNode classNode =
                (MXMLClassDefinitionNode)getClassDefinitionNode();
View Full Code Here

    {
        ITypeDefinition type = builder.getBuiltinType(getName());

        ISourceFragment[] fragments = info.getSourceFragments();

        ISourceLocation location = info.getSourceLocation();
        if (location == null)
            location = tag.getLocationOfChildUnits();

        MXMLClassDefinitionNode classNode =
                (MXMLClassDefinitionNode)getClassDefinitionNode();
View Full Code Here

    {
        final String messageHeader = baseRecognizer.getErrorHeader(e);
        final String messageBody = baseRecognizer.getErrorMessage(e, tokenNames);
        final String reason = String.format("%s %s", messageHeader, messageBody);

        final ISourceLocation location = new SourceLocation(
            e.input.getSourceName(),
            UNKNOWN, UNKNOWN, // TODO Need start and end info from CSS
            e.line, e.charPositionInLine);

        return new CSSParserProblem(location, reason, baseRecognizer.getClass());
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.common.ISourceLocation

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.