mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:21:09 +01:00
Add parse support for multiple requirements after where separated by and (#4298)
Follow on to #4275 that added `where` parse support. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com> Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
co-authored by
Josh L
Richard Smith
parent
6bfaa888e8
commit
d6b2fb1736
@@ -29,8 +29,9 @@ TreeAndSubtrees::TreeAndSubtrees(const Lex::TokenizedBuffer& tokens,
|
||||
size += subtree_sizes_[child.index];
|
||||
if (kind.has_bracket() && i == kind.child_count() - 1) {
|
||||
CARBON_CHECK(kind.bracket() == tree.node_kind(child))
|
||||
<< "Node " << kind << " needs bracket " << kind.bracket()
|
||||
<< ", found wrong bracket " << tree.node_kind(child);
|
||||
<< "Node " << kind << " with child count " << kind.child_count()
|
||||
<< " needs bracket " << kind.bracket() << ", found wrong bracket "
|
||||
<< tree.node_kind(child);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user