solidity/libsolidity/analysis
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
..
ConstantEvaluator.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ConstantEvaluator.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ContractLevelChecker.cpp Merge pull request #8106 from random-internet-cat/move-contract-kind 2020-01-08 13:06:26 +01:00
ContractLevelChecker.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ControlFlowAnalyzer.cpp Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
ControlFlowAnalyzer.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ControlFlowBuilder.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ControlFlowBuilder.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
ControlFlowGraph.cpp Remove remaining instances of new. 2020-01-15 17:25:08 +01:00
ControlFlowGraph.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
DeclarationContainer.cpp Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
DeclarationContainer.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
DocStringAnalyser.cpp Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
DocStringAnalyser.h Introduce AST node for structured documentation. 2020-01-30 18:25:56 +01:00
GlobalContext.cpp Ast-Import from standard-json 2020-01-14 17:15:53 +01:00
GlobalContext.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
NameAndTypeResolver.cpp Clean up visibility via contract name and fix ICE on calling unimplemented base function. 2020-01-16 19:13:04 +01:00
NameAndTypeResolver.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
OverrideChecker.cpp Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
OverrideChecker.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
PostTypeChecker.cpp Move variables-in-interfaces checker to PostTypeChecker 2020-01-08 14:05:08 +01:00
PostTypeChecker.h Move variables-in-interfaces checker to PostTypeChecker 2020-01-08 14:05:08 +01:00
ReferencesResolver.cpp Use yul::AstWalker to resolve assembly symbols 2020-01-28 17:57:48 +01:00
ReferencesResolver.h Use yul::AstWalker to resolve assembly symbols 2020-01-28 17:57:48 +01:00
StaticAnalyzer.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
StaticAnalyzer.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SyntaxChecker.cpp C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
SyntaxChecker.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00
TypeChecker.cpp Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
TypeChecker.h Implement new with CREATE2 and function call options. 2020-01-23 21:20:01 +01:00
ViewPureChecker.cpp Merge pull request #8106 from random-internet-cat/move-contract-kind 2020-01-08 13:06:26 +01:00
ViewPureChecker.h C++ namespace cleanup (except tests). 2020-01-07 15:51:50 +01:00