Lines Matching refs:ModuleScopes

59   if (!ModuleScopes.empty() &&  in ActOnGlobalModuleFragmentDecl()
60 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment) { in ActOnGlobalModuleFragmentDecl()
65 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnGlobalModuleFragmentDecl()
76 ModuleScopes.push_back({}); in ActOnGlobalModuleFragmentDecl()
77 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnGlobalModuleFragmentDecl()
78 ModuleScopes.back().Module = GlobalModule; in ActOnGlobalModuleFragmentDecl()
124 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()
130 if (!ModuleScopes.empty() && in ActOnModuleDecl()
131 ModuleScopes.back().Module->isModulePurview()) { in ActOnModuleDecl()
133 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
140 if (!ModuleScopes.empty() && in ActOnModuleDecl()
141 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment) in ActOnModuleDecl()
142 GlobalModuleFragment = ModuleScopes.back().Module; in ActOnModuleDecl()
149 ModuleScopes.empty() in ActOnModuleDecl()
151 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl()
220 ModuleScopes.push_back({}); in ActOnModuleDecl()
222 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleDecl()
229 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl()
230 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
231 ModuleScopes.back().ModuleInterface = MDK != ModuleDeclKind::Implementation; in ActOnModuleDecl()
251 switch (ModuleScopes.empty() ? Module::GlobalModuleFragment in ActOnPrivateModuleFragmentDecl()
252 : ModuleScopes.back().Module->Kind) { in ActOnPrivateModuleFragmentDecl()
260 Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition); in ActOnPrivateModuleFragmentDecl()
267 if (!ModuleScopes.back().ModuleInterface) { in ActOnPrivateModuleFragmentDecl()
269 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl()
271 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnPrivateModuleFragmentDecl()
286 ModuleScopes.back().Module, PrivateLoc); in ActOnPrivateModuleFragmentDecl()
290 ModuleScopes.push_back({}); in ActOnPrivateModuleFragmentDecl()
291 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl()
292 ModuleScopes.back().Module = PrivateModuleFragment; in ActOnPrivateModuleFragmentDecl()
293 ModuleScopes.back().ModuleInterface = true; in ActOnPrivateModuleFragmentDecl()
390 if (!ModuleScopes.empty()) in ActOnModuleImport()
391 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleImport()
394 if (!ModuleScopes.empty() && ModuleScopes.back().ModuleInterface) { in ActOnModuleImport()
428 if (!ModuleScopes.empty()) in BuildModuleInclude()
429 Context.addModuleInitializer(ModuleScopes.back().Module, ImportD); in BuildModuleInclude()
441 ModuleScopes.push_back({}); in ActOnModuleBegin()
442 ModuleScopes.back().Module = Mod; in ActOnModuleBegin()
444 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleBegin()
464 VisibleModules = std::move(ModuleScopes.back().OuterVisibleModules); in ActOnModuleEnd()
470 assert(!ModuleScopes.empty() && ModuleScopes.back().Module == Mod && in ActOnModuleEnd()
472 ModuleScopes.pop_back(); in ActOnModuleEnd()
534 if (ModuleScopes.empty() || !ModuleScopes.back().Module->isModulePurview()) { in ActOnStartExportDecl()
536 } else if (!ModuleScopes.back().ModuleInterface) { in ActOnStartExportDecl()
538 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl()
540 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnStartExportDecl()
541 } else if (ModuleScopes.back().Module->Kind == in ActOnStartExportDecl()
544 Diag(ModuleScopes.back().BeginLoc, diag::note_private_module_fragment); in ActOnStartExportDecl()