Package org.apache.flex.compiler.internal.units.requests

Examples of org.apache.flex.compiler.internal.units.requests.SyntaxTreeRequestResult


     * {@code ResourceModuleCompilationUnit} does not provide an AST.
     */
    @Override
    protected ISyntaxTreeRequestResult handleSyntaxTreeRequest() throws InterruptedException
    {
        return new SyntaxTreeRequestResult(-1, Collections.<ICompilerProblem>emptyList());
    }
View Full Code Here


            final ResourceBundleFileNode fileNode = parser.parse(getFileName(), this.locale, getFileReader(problems), problems);

            ASFileScope fileScope = createFileScope(fileNode);
            addScopeToProjectScope(new ASFileScope[] { fileScope });

            return new SyntaxTreeRequestResult(fileNode, ImmutableSet.<String>of(), getRootFileSpecification().getLastModified(), problems);
        }
        finally
        {
            stopProfile(Operation.GET_SYNTAX_TREE);
        }
View Full Code Here

            getProject().clearScopeCacheForCompilationUnit(this);
            TranscoderBase transcoder = embedData.getTranscoder();
            if (transcoder instanceof SkinTranscoder)
            {
                List<ICompilerProblem> noProblems = Collections.emptyList();
                return new SyntaxTreeRequestResult(getRootFileSpecification().getLastModified(), noProblems);
            }
            else
            {
                Collection<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
                FileNode fileNode = transcoder.buildAST(problems, getAbsoluteFilename());
                final ASFileScope fileScope = fileNode.getFileScope();
                addScopeToProjectScope(new ASFileScope[] { fileScope });
                markClassAsEmbed(fileScope);

                return new SyntaxTreeRequestResult(fileNode, fileNode.getIncludeHandler().getIncludedFiles(), getRootFileSpecification().getLastModified(), problems);
            }
        }
        finally
        {
            stopProfile(Operation.GET_SYNTAX_TREE);
View Full Code Here

        finally
        {
            stopProfile(Operation.GET_SYNTAX_TREE);
        }

        return new SyntaxTreeRequestResult(fileNode, ImmutableSet.<String>copyOf(fileScope.getSourceDependencies()), fileNode.getIncludeTreeLastModified(), problems);
    }
View Full Code Here

    {
        startProfile(Operation.GET_SYNTAX_TREE);
        try
        {
            List<ICompilerProblem> noProblems = Collections.emptyList();
            return new SyntaxTreeRequestResult(getRootFileSpecification().getLastModified(), noProblems);
        }
        finally
        {
            stopProfile(Operation.GET_SYNTAX_TREE);
        }
View Full Code Here

                        resourceBundles.add(rbTag.getAllAttributes()[0].getValue());
                    }
                }               
            }
           
            return new SyntaxTreeRequestResult(script.getLastModified(), noProblems)
            {
                @Override
                public Set<String> getRequiredResourceBundles()
                {
                    return resourceBundles;
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.units.requests.SyntaxTreeRequestResult

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.