mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 09:56:38 +00:00
Clean up some uses of the node stack. (#3512)
Also minor cleanups for the stack itself.
This commit is contained in:
1 parent
fbb4ecf319
commit
0a1abe9f64
9 files changed
+76
-66
No files matched your search
@@ -34,8 +34,7 @@ auto HandleVariableInitializer(Context& context, Parse::NodeId parse_node)
|
||||
auto HandleVariableDecl(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
// Handle the optional initializer.
|
||||
auto init_id = SemIR::InstId::Invalid;
|
||||
Parse::NodeKind next_kind =
|
||||
context.parse_tree().node_kind(context.node_stack().PeekParseNode());
|
||||
Parse::NodeKind next_kind = context.node_stack().PeekParseNodeKind();
|
||||
if (next_kind == Parse::NodeKind::TuplePattern) {
|
||||
return context.TODO(parse_node, "tuple pattern in var");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user