mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Make SourceFile a DeclContext, but don't actually do anything with it yet.
Swift SVN r9646
This commit is contained in:
@@ -1105,7 +1105,8 @@ static void performAutoImport(SourceFile &SF, bool hasBuiltinModuleAccess) {
|
||||
|
||||
SourceFile::SourceFile(TranslationUnit &tu, SourceKind K,
|
||||
Optional<unsigned> ImportID, bool hasBuiltinModuleAccess)
|
||||
: ImportBufferID(ImportID ? *ImportID : -1), TU(tu), Kind(K) {
|
||||
: DeclContext(DeclContextKind::SourceFile, &tu),
|
||||
ImportBufferID(ImportID ? *ImportID : -1), TU(tu), Kind(K) {
|
||||
performAutoImport(*this, hasBuiltinModuleAccess);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user