mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Parsing, semantic analysis, and lowering for and, or, not. (#2897)
Lowering for `and` and `or` is not yet complete because `Branch` lowering isn't done yet.
This commit is contained in:
@@ -876,6 +876,7 @@ auto TokenizedBuffer::GetTokenInfo(Token token) const -> const TokenInfo& {
|
||||
|
||||
auto TokenizedBuffer::AddToken(TokenInfo info) -> Token {
|
||||
token_infos_.push_back(info);
|
||||
expected_parse_tree_size_ += info.kind.expected_parse_tree_size();
|
||||
return Token(static_cast<int>(token_infos_.size()) - 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user