// Create a script model per compilation unit.
final SWCScript script = new SWCScript();
script.setName(cu.getSWFTagsRequest().get().getDoABCTagName());
// Add all the externally visible definitions to the script model.
final IFileScopeRequestResult fsResult = cu.getFileScopeRequest().get();
for (final IDefinition def : fsResult.getExternallyVisibleDefinitions())
{
script.addDefinition(def.getQualifiedName());
script.setLastModified(cu.getSyntaxTreeRequest().get().getLastModified());
if (definitionsToBuild != null)