[NFC] Clean up access note code

• Rename properties for greater consistency with the YAML file
• Rename AccessNotes -> AccessNotesFile
• Add doc comments
• Miscellaneous comment/style improvements.
This commit is contained in:
Becca Royal-Gordon
2021-02-08 15:44:21 -08:00
parent bf13139495
commit 01fa74510e
5 changed files with 83 additions and 49 deletions

View File

@@ -250,7 +250,7 @@ private:
/// \see EntryPointInfoTy
EntryPointInfoTy EntryPointInfo;
AccessNotes accessNotes;
AccessNotesFile accessNotes;
ModuleDecl(Identifier name, ASTContext &ctx, ImplicitImportInfo importInfo);
@@ -282,8 +282,8 @@ public:
/// imports.
ImplicitImportList getImplicitImports() const;
AccessNotes &getAccessNotes() { return accessNotes; }
const AccessNotes &getAccessNotes() const { return accessNotes; }
AccessNotesFile &getAccessNotes() { return accessNotes; }
const AccessNotesFile &getAccessNotes() const { return accessNotes; }
ArrayRef<FileUnit *> getFiles() {
assert(!Files.empty() || failedToLoad());