Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse support for tuple patterns in var and let #3448

Merged
merged 7 commits into from
Dec 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Richard Smith <[email protected]>
  • Loading branch information
geoffromer and zygoloid committed Dec 7, 2023
commit a9eb419e6925c2c0f9faefb870e8a6c34c29bf69
3 changes: 1 addition & 2 deletions toolchain/check/handle_variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ auto HandleVariableDecl(Context& context, Parse::NodeId parse_node) -> bool {
.PopAndDiscardSoloParseNode<Parse::NodeKind::VariableInitializer>();
}

if (context.parse_tree().node_kind(context.node_stack().PeekParseNode()) ==
Parse::NodeKind::ParamList) {
if (context.node_stack().PeekIs<Parse::NodeKind::ParamList>()) {
return context.TODO(parse_node, "tuple pattern in var");
}

Expand Down