startProfile(Operation.GET_SEMANTIC_PROBLEMS);
final Collection<ICompilerProblem> problems = Collections.emptyList();
try
{
final FlexProject flexProject = (FlexProject)getProject();
//flex.compiler.support.ResourceModuleBase
ASProjectScope scope = flexProject.getScope();
IDefinition def = scope.findDefinitionByName(flexProject.getResourceModuleBaseClass());
ICompilationUnit resourceModuleBaseCompUnit = scope.getCompilationUnitForDefinition(def);
flexProject.addDependency(this, resourceModuleBaseCompUnit, DependencyType.INHERITANCE,
def.getQualifiedName());
//Add dependency to all the resource bundle compilation units we want to
//include in the resource module SWF
for(ICompilationUnit compUnit : resourceBundleCompUnits)
{
flexProject.addDependency(this, compUnit, DependencyType.EXPRESSION);
}
}
catch (Throwable t)
{
problems.add(new InternalCompilerProblem(t));