Factor out SourceManager::getLocForBufferStart()

Swift SVN r7058
This commit is contained in:
Dmitri Hrybenko
2013-08-08 22:06:21 +00:00
parent 469c01cc46
commit f42d4dba87
2 changed files with 13 additions and 4 deletions

View File

@@ -81,6 +81,13 @@ public:
return rangeContainsTokenLoc(Enclosing, Inner.Start) &&
rangeContainsTokenLoc(Enclosing, Inner.End);
}
/// \brief Returns the SourceLoc for the beginning of the specified buffer
/// (at offset zero).
///
/// Note that the resulting location might not point at the first token: it
/// might point at whitespace or comment.
SourceLoc getLocForBufferStart(unsigned BufferID) const;
};
} // namespace swift