mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -1147,6 +1147,10 @@ public:
|
||||
|
||||
SourceRange getSourceRange() const { return SourceRange(); }
|
||||
|
||||
/// Returns the language version that was used to compile this module.
|
||||
/// An empty `Version` is returned if the information is not available.
|
||||
version::Version getLanguageVersionBuiltWith() const;
|
||||
|
||||
static bool classof(const DeclContext *DC) {
|
||||
if (auto D = DC->getAsDecl())
|
||||
return classof(D);
|
||||
|
||||
Reference in New Issue
Block a user