solidity/test/libevmasm
alex e4b18e85e6 Replaced SourceLocation::isEmpty() with isValid() and hasText().
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.
2020-02-03 08:04:21 +01:00
..
Assembler.cpp Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
Optimiser.cpp Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00