Merge pull request #8224 from a3d4/refactor-sourcelocation

Replaced SourceLocation::isEmpty() with isValid() and hasText().
This commit is contained in:
chriseth
2020-02-04 22:23:51 +01:00
committed by GitHub
11 changed files with 35 additions and 30 deletions
+1 -1
View File
@@ -2762,7 +2762,7 @@ bool TypeChecker::visit(Identifier const& _identifier)
SecondarySourceLocation ssl;
for (Declaration const* declaration: annotation.overloadedDeclarations)
if (declaration->location().isEmpty())
if (!declaration->location().isValid())
{
// Try to re-construct function definition
string description;