mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 09:00:27 +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
@@ -21,9 +21,8 @@ auto HandleArrayExprSemi(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
|
||||
auto HandleArrayExpr(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
// TODO: Handle array type with undefined bound.
|
||||
if (context.parse_tree().node_kind(context.node_stack().PeekParseNode()) ==
|
||||
Parse::NodeKind::ArrayExprSemi) {
|
||||
context.node_stack().PopAndIgnore();
|
||||
if (context.node_stack()
|
||||
.PopAndDiscardSoloParseNodeIf<Parse::NodeKind::ArrayExprSemi>()) {
|
||||
context.node_stack().PopAndIgnore();
|
||||
return context.TODO(parse_node, "HandleArrayExprWithoutBounds");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user