@Override protected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException { startProfile(Operation.GET_FILESCOPE); // Get the AST dig out the symbol table. final FileNode ast = (FileNode)getSyntaxTreeRequest().get().getAST(); final IASScope scope = ast.getScope(); assert scope instanceof ASFileScope : "Expect ASFileScope as the top-level scope, but found " + scope.getClass(); IFileSpecification rootSource = getRootFileSpecification(); final ASFileScopeRequestResult result = new ASFileScopeRequestResult(getDefinitionPromises(), getDefinitionPriority(), Collections.<ICompilerProblem>emptyList(), (ASFileScope)scope, rootSource); stopProfile(Operation.GET_FILESCOPE); addProblemsToProject(result); return result; }
@Override protected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException { startProfile(Operation.GET_FILESCOPE); // Get the AST dig out the symbol table. final FileNode ast = (FileNode)getSyntaxTreeRequest().get().getAST(); final IASScope scope = ast.getScope(); assert scope instanceof ASFileScope : "Expect ASFileScope as the top-level scope, but found " + scope.getClass(); IFileSpecification rootSource = getRootFileSpecification(); final ASFileScopeRequestResult result = new ASFileScopeRequestResult(getDefinitionPromises(), getDefinitionPriority(), Collections.<ICompilerProblem>emptyList(), (ASFileScope)scope, rootSource); stopProfile(Operation.GET_FILESCOPE); addProblemsToProject(result); return result; }
try final IASScope fileScope = rootNode.getScope(); assert fileScope instanceof ASFileScope : "Expect ASFileScope as the top-level scope, but found " + fileScope.getClass(); return new EmbedFileScopeRequestResult((ASFileScope)fileScope);
try final IASScope fileScope = rootNode.getScope(); assert fileScope instanceof ASFileScope : "Expect ASFileScope as the top-level scope, but found " + fileScope.getClass(); return new EmbedFileScopeRequestResult((ASFileScope)fileScope);