[AST] Make it possible to find what Swift version was used to build a module

For imported modules the version is empty because they don't carry
this information.
This commit is contained in:
Pavel Yaskevich
2024-01-22 15:32:00 -08:00
parent b98d7a5679
commit 182ba1bb2d
7 changed files with 34 additions and 2 deletions

View File

@@ -400,7 +400,7 @@ public:
/// Returns the language version that was used to compile the contents of this
/// file.
const version::Version &getLanguageVersionBuiltWith() const;
virtual version::Version getLanguageVersionBuiltWith() const override;
virtual bool hadLoadError() const override;