mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
e4b18e85e6
The function SourceLocation::isEmpty() had somewhat dual role. Sometimes it indicates that the SourceLocation is invalid. Sometimes it means that there is no corresponding source text. Hence the proposal is to replace it with two functions, isValid() and hasText(). I also removed Scanner::sourceAt(). (Do we have a rule of thumb to remove unused code?) Since hasText() checks that start and end are valid indices for source, I adjusted a couple of tests to avoid empty source strings. |
||
---|---|---|
.. | ||
analysis | ||
ast | ||
codegen | ||
formal | ||
interface | ||
parsing | ||
CMakeLists.txt |