mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge branch 'refactor-sourcelocation' of https://github.com/a3d4/solidity into refactor-sourcelocation
This commit is contained in:
commit
351c39efb5
@ -72,10 +72,11 @@ struct SourceLocation
|
||||
|
||||
bool hasText() const
|
||||
{
|
||||
return source
|
||||
&& 0 <= start
|
||||
&& start <= end
|
||||
&& end <= int(source->source().length());
|
||||
return
|
||||
source &&
|
||||
0 <= start &&
|
||||
start <= end &&
|
||||
end <= int(source->source().length());
|
||||
}
|
||||
|
||||
std::string text() const
|
||||
|
Loading…
Reference in New Issue
Block a user