mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:10:31 +00: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:
14 files changed
+197
-57
No files matched your search
@@ -365,7 +365,7 @@ auto TokenizedBuffer::GetTokenInfo(TokenIndex token) const -> const TokenInfo& {
|
||||
|
||||
auto TokenizedBuffer::AddToken(TokenInfo info) -> TokenIndex {
|
||||
token_infos_.push_back(info);
|
||||
expected_parse_tree_size_ += info.kind().expected_parse_tree_size();
|
||||
expected_max_parse_tree_size_ += info.kind().expected_max_parse_tree_size();
|
||||
return TokenIndex(static_cast<int>(token_infos_.size()) - 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user