Accessor renames on parser (#1135)

This commit is contained in:
Jon Meow
2022-03-15 13:24:15 -07:00
committed by GitHub
parent 16c6ba6bd1
commit afeb78d067
10 changed files with 121 additions and 122 deletions
+2 -2
View File
@@ -36,13 +36,13 @@ extern "C" int LLVMFuzzerTestOneInput(const unsigned char* data,
// Now parse it into a tree. Note that parsing will (when asserts are enabled)
// walk the entire tree to verify it so we don't have to do that here.
ParseTree tree = ParseTree::Parse(tokens, NullDiagnosticConsumer());
if (tree.HasErrors()) {
if (tree.has_errors()) {
return 0;
}
// In the absence of parse errors, we should have exactly as many nodes as
// tokens.
CHECK(tree.Size() == tokens.size()) << "Unexpected number of tree nodes!";
CHECK(tree.size() == tokens.size()) << "Unexpected number of tree nodes!";
return 0;
}