solidity/liblangutil
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
..
CharStream.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
CharStream.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
CMakeLists.txt Merge pull request #7153 from djudjuu/newImportAST 2020-01-14 17:56:53 +01:00
Common.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ErrorReporter.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ErrorReporter.h Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
EVMVersion.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
EVMVersion.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
Exceptions.cpp Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
Exceptions.h Ast-Import from standard-json 2020-01-14 17:15:53 +01:00
ParserBase.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ParserBase.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
Scanner.cpp Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
Scanner.h Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
SemVerHandler.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SemVerHandler.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SourceLocation.cpp Ast-Import from standard-json 2020-01-14 17:15:53 +01:00
SourceLocation.h Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
SourceReferenceExtractor.cpp Handle empty source strings in SourceReferenceExtractor 2020-01-09 14:18:54 +01:00
SourceReferenceExtractor.h Handle empty source strings in SourceReferenceExtractor 2020-01-09 14:18:54 +01:00
SourceReferenceFormatter.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SourceReferenceFormatter.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SourceReferenceFormatterHuman.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SourceReferenceFormatterHuman.h Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
Token.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
Token.h Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
UndefMacros.h Isolating files shared between Yul- and Solidity language frontend. 2018-11-21 18:58:12 +00:00