mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add ASTDumper support for AvailabilityQueryExpr
This patch also moves some static utility methods involving PlatformKind out of Attr.h and into PlatformKind.h. Swift SVN r21896
This commit is contained in:
@@ -58,12 +58,16 @@ public:
|
||||
VersionComparison getComparison() const { return Comparison; }
|
||||
SourceLoc getConstraintLoc() const { return ComparisonLoc; }
|
||||
|
||||
StringRef getComparisonAsString() const;
|
||||
|
||||
// The platform version to compare against.
|
||||
clang::VersionTuple getVersion() { return Version; }
|
||||
clang::VersionTuple getVersion() const { return Version; }
|
||||
SourceRange getVersionSrcRange() const { return VersionSrcRange; }
|
||||
|
||||
SourceRange getSourceRange() const;
|
||||
|
||||
void print(raw_ostream &OS, unsigned Indent) const;
|
||||
|
||||
void *
|
||||
operator new(size_t Bytes, ASTContext &C,
|
||||
unsigned Alignment = alignof(VersionConstraintAvailabilitySpec));
|
||||
|
||||
Reference in New Issue
Block a user