mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Add hasElse() and getEndLoc() to IfConfigDecl.
Swift SVN r15439
This commit is contained in:
@@ -1493,9 +1493,12 @@ public:
|
||||
}
|
||||
|
||||
Expr *getCond() { return Cond; }
|
||||
|
||||
bool hasElse() const { return ElseLoc.isValid(); }
|
||||
|
||||
SourceLoc getIfLoc() const { return IfLoc; }
|
||||
SourceLoc getElseLoc() const { return ElseLoc; }
|
||||
SourceLoc getEndLoc() const { return EndLoc; }
|
||||
SourceLoc getLoc() const { return getIfLoc(); }
|
||||
|
||||
SourceRange getSourceRange() const;
|
||||
|
||||
Reference in New Issue
Block a user