solidity/libsolidity
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
..
analysis Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
ast Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
codegen Merge pull request #8068 from ethereum/evmTypedDialect 2020-01-30 14:53:25 +01:00
formal Replace void cast by maybe_unused 2020-01-09 13:41:30 +01:00
interface Merge pull request #7918 from ethereum/compilerstack-fqdn 2020-01-15 18:00:58 +01:00
parsing Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
CMakeLists.txt Merge pull request #7153 from djudjuu/newImportAST 2020-01-14 17:56:53 +01:00