public override void LeaveModule(Boo.Lang.Compiler.Ast.Module module)
{
if (module.ContainsAnnotation("merged-module"))
return;
foreach (Import import in module.Imports)
{
//do not be pedantic about System, the corlib is to be ref'ed anyway
if (import.NamespaceUsed || import.Namespace == "System") continue;
if (null == module.EnclosingNamespace
|| module.EnclosingNamespace.Name != import.Namespace)
{
Warnings.Add(
CompilerWarningFactory.NamespaceNeverUsed(import) );
}
}
}