startProfile(Operation.GET_FILESCOPE);
try
{
final IMXMLData mxmlData = getMXMLData();
final MXMLScopeBuilder scopeBuilder = new MXMLScopeBuilder(this, getFileSpecificationGetter(), mxmlData, qname, getAbsoluteFilename());
MXMLFileScope fileScope = scopeBuilder.build();
final ImmutableList<OffsetCue> offsetCueList = scopeBuilder.getIncludeHandler().getOffsetCueList();
final OffsetLookup offsetLookup = new OffsetLookup(offsetCueList);
fileScope.setOffsetLookup(offsetLookup);
final Collection<ICompilerProblem> problemCollection = scopeBuilder.getProblems();
final IFileSpecification rootFileSpec = getRootFileSpecification();
getProject().getWorkspace().addIncludedFilesToCompilationUnit(this, fileScope.getSourceDependencies());
return new ASFileScopeRequestResult(getDefinitionPromises(), getDefinitionPriority(), problemCollection, fileScope, rootFileSpec);