mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 17:52:58 +01:00
Accessor renames on parser (#1135)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user