[AST] Add hasElse() and getEndLoc() to IfConfigDecl.

Swift SVN r15439
This commit is contained in:
Argyrios Kyrtzidis
2014-03-25 03:55:25 +00:00
parent f2ed6dd49b
commit 86a64d829c

View File

@@ -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;