Merge branch 'refactor-sourcelocation' of https://github.com/a3d4/solidity into refactor-sourcelocation

This commit is contained in:
alex 2020-02-03 21:40:41 +01:00
commit 351c39efb5

View File

@ -72,10 +72,11 @@ struct SourceLocation
bool hasText() const bool hasText() const
{ {
return source return
&& 0 <= start source &&
&& start <= end 0 <= start &&
&& end <= int(source->source().length()); start <= end &&
end <= int(source->source().length());
} }
std::string text() const std::string text() const