Examples of IFileScopeRequestResult


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

        assert compilationUnits != null : "Expected collection of compilation units.";

        final ImmutableList.Builder<IDefinition> builder = new ImmutableList.Builder<IDefinition>();
        for (final ICompilationUnit compilationUnit : compilationUnits)
        {
            final IFileScopeRequestResult result = compilationUnit.getFileScopeRequest().get();
            builder.addAll(result.getExternallyVisibleDefinitions());
        }
        return builder.build();
    }
View Full Code Here

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

            if (definitions.size() == 0)
            {
                // no definition promises, so getting the file scope should be cheap.
                try
                {
                    IFileScopeRequestResult fsr = compilationUnit.getFileScopeRequest().get();
                    definitions = fsr.getExternallyVisibleDefinitions();
                }
                catch (InterruptedException e1)
                {
                    assert false : "Since this is a single threaded method, we should never be interrupted";
                }
View Full Code Here

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

        }
    }
   
    private boolean hasExternallyVisibleDefinitions(ICompilationUnit cu) throws InterruptedException
    {
        final IFileScopeRequestResult r = cu.getFileScopeRequest().get();
        Collection<IDefinition> vis = r.getExternallyVisibleDefinitions();
        return !vis.isEmpty();
    }
View Full Code Here

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

        // Create a script model per compilation unit.
        final SWCScript script = new SWCScript();
        script.setName(cu.getSWFTagsRequest().get().getDoABCTagName());

        // Add all the externally visible definitions to the script model.
        final IFileScopeRequestResult fsResult = cu.getFileScopeRequest().get();
        for (final IDefinition def : fsResult.getExternallyVisibleDefinitions())
        {
            script.addDefinition(def.getQualifiedName());
            script.setLastModified(cu.getSyntaxTreeRequest().get().getLastModified());
           
            if (definitionsToBuild != null)
View Full Code Here

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

    @Override
    protected ISyntaxTreeRequestResult handleSyntaxTreeRequest() throws InterruptedException
    {
        // Fulfill other requests before profiling this request.      
        final IFileScopeRequestResult fileScopeRequestResult = getFileScopeRequest().get();
        final MXMLFileScope fileScope = (MXMLFileScope)fileScopeRequestResult.getScopes()[0];
       
        startProfile(Operation.GET_SYNTAX_TREE);
       
        final IMXMLData mxmlData = getMXMLData();
       
View Full Code Here

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

                if (((ResourceBundleCompilationUnit)compUnit).getBundleNameInColonSyntax().equals(bundleName))
                    return true;
            }
            else
            {
                IFileScopeRequestResult result = compUnit.getFileScopeRequest().get();

                for (IDefinition def : result.getExternallyVisibleDefinitions())
                {
                    if (def instanceof ClassDefinition)
                    {
                        //check whether class extends ResourceBundle
                        if (project instanceof FlexProject &&
View Full Code Here

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

    private Collection<IDefinition> getAllDefinitions() throws InterruptedException
    {
        Collection<IDefinition> definitions;
        if (definitionPromises.isEmpty())
        {
            IFileScopeRequestResult fileScopeRequestResult = getFileScopeRequest().get();
            definitions = fileScopeRequestResult.getExternallyVisibleDefinitions();
        }
        else
        {
            definitions = definitionPromises;
        }
View Full Code Here

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

        try
        {
            final String tagName;
            if (Strings.isNullOrEmpty(qname))
            {
                final IFileScopeRequestResult fileScopeRR = getFileScopeRequest().get();

                final Collection<IDefinition> externallyVisibleDefinitions =
                        fileScopeRR.getExternallyVisibleDefinitions();
                if (!externallyVisibleDefinitions.isEmpty())
                {
                    ArrayList<IDefinition> sortedDefinitions =
                            new ArrayList<IDefinition>(externallyVisibleDefinitions.size());
                    Iterables.addAll(sortedDefinitions, externallyVisibleDefinitions);
View Full Code Here

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

            try
            {
                ICompilationUnit compilationUnit = compilationUnitWeakRef.get();
                assert (compilationUnit != null);

                final IFileScopeRequestResult fileScopeRequestResult = compilationUnit.getFileScopeRequest().get();
                actualDefinition = fileScopeRequestResult.getMainDefinition(qname);
            }
            catch (InterruptedException e)
            {
                actualDefinition = null;
            }
View Full Code Here

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

     * @param compilationUnit
     * @throws InterruptedException
     */
    private void collectMixinMetaData(TreeSet<String> mixinClassNames, ICompilationUnit compilationUnit) throws InterruptedException
    {
        IFileScopeRequestResult result = compilationUnit.getFileScopeRequest().get();

        for(IDefinition def : result.getExternallyVisibleDefinitions())
        {
            IMetaTag md = def.getMetaTagByName(IMetaAttributeConstants.ATTRIBUTE_MIXIN);
            if (md != null)
                mixinClassNames.add(def.getQualifiedName());
        }
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.