mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 14:31:19 +00: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:
1 parent
8b1e820848
commit
06ce3b0161
28 files changed
+470
-55
No files matched your search
@@ -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