solidity/libsolidity/ast
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
..
AsmJsonImporter.cpp Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
AsmJsonImporter.h Ast-Import from standard-json 2020-01-14 17:15:53 +01:00
AST_accept.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
AST.cpp Clean up visibility via contract name and fix ICE on calling unimplemented base function. 2020-01-16 19:13:04 +01:00
AST.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
ASTAnnotations.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ASTAnnotations.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
ASTEnums.h Merge pull request #8106 from random-internet-cat/move-contract-kind 2020-01-08 13:06:26 +01:00
ASTForward.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
ASTJsonConverter.cpp Adds JSON import / export for structured documentation. 2020-01-30 18:26:01 +01:00
ASTJsonConverter.h Adds JSON import / export for structured documentation. 2020-01-30 18:26:01 +01:00
ASTJsonImporter.cpp Adds JSON import / export for structured documentation. 2020-01-30 18:26:01 +01:00
ASTJsonImporter.h Adds JSON import / export for structured documentation. 2020-01-30 18:26:01 +01:00
ASTUtils.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ASTUtils.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ASTVisitor.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
ExperimentalFeatures.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
TypeProvider.cpp Implement new with CREATE2 and function call options. 2020-01-23 21:20:01 +01:00
TypeProvider.h Implement new with CREATE2 and function call options. 2020-01-23 21:20:01 +01:00
Types.cpp Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
Types.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00