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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user