Modified SourceLocation::hasText() to allow empty source.

This commit is contained in:
alex
2020-02-04 04:19:28 +01:00
committed by alex
parent 351c39efb5
commit 211227f50b
4 changed files with 9 additions and 9 deletions
+1 -2
View File
@@ -54,9 +54,8 @@ T AsmJsonImporter::createAsmNode(Json::Value const& _node)
{
T r;
r.location = createSourceLocation(_node);
astAssert(!r.location.isValid() || r.location.hasText(), "Invalid source location in Asm AST");
astAssert(r.location.hasText(), "Invalid source location in Asm AST");
return r;
}
Json::Value AsmJsonImporter::member(Json::Value const& _node, string const& _name)