script.setLastModified(cu.getSyntaxTreeRequest().get().getLastModified());
if (definitionsToBuild != null)
definitionsToBuild.add(def);
}
final DependencyGraph dependencyGraph =
flexProject.getDependencyGraph();
Set<ICompilationUnit> directDependencies =
dependencyGraph.getDirectDependencies(cu);
for (ICompilationUnit directDependency : directDependencies)
{
final Map<String, DependencyTypeSet> dependenciesMap =
dependencyGraph.getDependencySet(cu, directDependency);
for (Map.Entry<String, DependencyTypeSet> dependencyEntry : dependenciesMap.entrySet())
{
for (DependencyType type : dependencyEntry.getValue())
script.addDependency(dependencyEntry.getKey(), type);
}