void ResolveInternalModules()
{
foreach (Boo.Lang.Compiler.Ast.Module module in CompileUnit.Modules)
{
TypeSystem.ModuleEntity moduleEntity = new TypeSystem.ModuleEntity(NameResolutionService, TypeSystemServices, module);
module.Entity = moduleEntity;
NamespaceDeclaration namespaceDeclaration = module.Namespace;
if (null != namespaceDeclaration)
{
module.Imports.Add(new Import(namespaceDeclaration.LexicalInfo, namespaceDeclaration.Name));
}
AddInternalModule(moduleEntity);
}
AddInternalModule((ModuleEntity) TypeSystemServices.GetCompilerGeneratedExtensionsModule().Entity);
}