public void emitPackageHeaderContents(IPackageDefinition definition)
{
PackageScope containedScope = (PackageScope) definition
.getContainedScope();
ITypeDefinition type = findType(containedScope.getAllLocalDefinitions());
if (type == null)
return;
if (project == null)
project = getWalker().getProject();
FlexJSProject flexProject = (FlexJSProject) project;
ASProjectScope projectScope = (ASProjectScope) flexProject.getScope();
ICompilationUnit cu = projectScope
.getCompilationUnitForDefinition(type);
ArrayList<String> requiresList = flexProject.getRequires(cu);
ArrayList<String> interfacesList = flexProject.getInterfaces(cu);
String cname = type.getQualifiedName();
ArrayList<String> writtenInstances = new ArrayList<String>();
writtenInstances.add(cname); // make sure we don't add ourselves
boolean emitsRequires = false;
if (requiresList != null)