Examples of ISyntaxTreeRequestResult


Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

            if (mainClassDef.hasOwnFactoryClass(flexProject.getWorkspace()))
                return null;

            ICompilationUnit mainUnit = projectScope.getCompilationUnitForDefinition(mainClassDef);
            IRequest<ISyntaxTreeRequestResult, ICompilationUnit> request = mainUnit.getSyntaxTreeRequest();
            ISyntaxTreeRequestResult result = request.get();

            rootNode = result.getAST();
            return rootNode;
        }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

            assert units.size() == 1 && Iterables.getOnlyElement(units) instanceof ConfigCompilationUnit;
            try
            {
                transferringConstants = true;

                ISyntaxTreeRequestResult treeResult = Iterables.getOnlyElement(units).getSyntaxTreeRequest().get();
                configScope = ((ConfigFileNode)treeResult.getAST()).getTargetConfigScope();
                addConditionalCompilationNamespace(new ConfigNamespaceNode(new IdentifierNode(IASLanguageConstants.DEFAULT_CONFIG_NAME, (Token)null)));
                if (variables != null)
                {
                    if (variables != null)
                    {
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

    protected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException
    {
        startProfile(Operation.GET_FILESCOPE);
        try
        {
            ISyntaxTreeRequestResult syntaxTreeResult = getSyntaxTreeRequest().get();
            final ResourceBundleFileNode rootNode = (ResourceBundleFileNode)syntaxTreeResult.getAST();

            IASScope fileScope = rootNode.getScope();
            assert fileScope instanceof ASFileScope : "Expect ASFileScope as the top-level scope, but found " + fileScope.getClass();

            return new FileScopeRequestResultBase(Collections.<ICompilerProblem> emptyList(), Collections.singleton(fileScope)) {
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

    }

    @Override
    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        ISyntaxTreeRequestResult syntaxTreeResult = getSyntaxTreeRequest().get();
        final IASNode rootNode = syntaxTreeResult.getAST();

        startProfile(Operation.GET_ABC_BYTES);
        try
        {
            final Collection<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

   
    @Override
    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        // Fulfill other requests before profiling this request.
        final ISyntaxTreeRequestResult syntaxTreeRequestResult = getSyntaxTreeRequest().get();
        final MXMLFileNode fileNode = (MXMLFileNode)syntaxTreeRequestResult.getAST();
        final CompilerProject project = getProject();
       
        startProfile(Operation.GET_ABC_BYTES);
        try
        {
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

    @Override
    protected IOutgoingDependenciesRequestResult handleOutgoingDependenciesRequest () throws InterruptedException
    {
        // Fulfill other requests before profiling this request.
        final ISyntaxTreeRequestResult syntaxTreeRequestResult = getSyntaxTreeRequest().get();
        final MXMLFileNode fileNode = (MXMLFileNode)syntaxTreeRequestResult.getAST();

        startParsingImports(fileNode);

        startProfile(Operation.GET_SEMANTIC_PROBLEMS);
        try
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

                stopProfile(Operation.GET_FILESCOPE);
            }
        }
        else
        {
            ISyntaxTreeRequestResult syntaxTreeResult = getSyntaxTreeRequest().get();
            FileNode rootNode = (FileNode)syntaxTreeResult.getAST();
            if (rootNode == null)
            {
                return new EmbedFileScopeRequestResult(null);
            }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

            }
        }
        else
        {

            ISyntaxTreeRequestResult syntaxTreeResult = getSyntaxTreeRequest().get();
            IASNode rootNode = syntaxTreeResult.getAST();
            if (rootNode == null)
            {
                return new ABCBytesRequestResult(syntaxTreeResult.getProblems());
            }

            startProfile(Operation.GET_ABC_BYTES);
            try
            {
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

        profilingDelegate.operationCompleted(this, operation);
    }

    private ISyntaxTreeRequestResult processSyntaxTreeRequest() throws InterruptedException
    {
        ISyntaxTreeRequestResult result = handleSyntaxTreeRequest();
        IASNode ast = result.getAST();
        verifyAST(ast);
        operationComplete(ICompilationUnit.Operation.GET_SYNTAX_TREE);
        return result;
    }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.ISyntaxTreeRequestResult

    }

    @Override
    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        final ISyntaxTreeRequestResult fsr = getSyntaxTreeRequest().get();
        final IASNode rootNode = fsr.getAST();
        final CompilerProject project = getProject();

        startProfile(Operation.GET_ABC_BYTES);
        IABCBytesRequestResult result = CodeGeneratorManager.getCodeGenerator().generate(project.getWorkspace().getExecutorService(),
                project.getUseParallelCodeGeneration(),
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.