mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 08:18:16 +00:00
Accessor renames on parser (#1135)
This commit is contained in:
1 parent
16c6ba6bd1
commit
afeb78d067
10 files changed
+121
-122
No files matched your search
@@ -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