mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Factor out SourceManager::getLocForBufferStart()
Swift SVN r7058
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user