Package org.apache.flex.compiler.internal.tree.properties

Examples of org.apache.flex.compiler.internal.tree.properties.ResourceBundleFileNode


        this.filePath = filePath;
        this.problems = problems;

        try
        {
            fileNode = new ResourceBundleFileNode(workspace, filePath, locale);
           
            parse(new BufferedReader(reader));
                       
            return fileNode;
        }
View Full Code Here


            getProject().clearScopeCacheForCompilationUnit(this);
           
            final Collection<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
           
            PropertiesFileParser parser = new PropertiesFileParser(getProject().getWorkspace());
            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);
View Full Code Here

    {
        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)) {
               
                @Override
View Full Code Here

    }

    @Override
    protected IOutgoingDependenciesRequestResult handleOutgoingDependenciesRequest () throws InterruptedException
    {
        final ResourceBundleFileNode fileNode = (ResourceBundleFileNode)getSyntaxTreeRequest().get().getAST();

        startProfile(Operation.GET_SEMANTIC_PROBLEMS);
        try
        {
            Collection<ICompilerProblem> problems = new ArrayList<ICompilerProblem>();

            updateEmbedCompilationUnitDependencies(fileNode.getEmbedNodes(), problems);
           
            // Kick off code generation to add all the dependencies found by code generation.
            getABCBytesRequest().get();

            //Add dependency to 'mx.resources.ResourceBundle' since we want it to be picked up.
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.tree.properties.ResourceBundleFileNode

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.