mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
Integrates tuple to semantic analysis (#2992)
Handles tuples (including nested tuples) in the semantic phase of the tool chain. Does not handle tuple element access yet. --------- Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com> Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Farzana Ahmed Siddique
Jon Ross-Perkins
parent
1d2853ef08
commit
0594a1aac7
@@ -208,12 +208,12 @@ CARBON_PARSE_NODE_KIND_CHILD_COUNT(WhileConditionStart, 0)
|
||||
CARBON_PARSE_NODE_KIND_BRACKET(WhileCondition, WhileConditionStart)
|
||||
CARBON_PARSE_NODE_KIND_CHILD_COUNT(WhileStatement, 2)
|
||||
|
||||
// Parenthesized expressions:
|
||||
// Parenthesized expressions, such as `(2)`:
|
||||
// ParenExpressionOrTupleLiteralStart
|
||||
// _external_: expression
|
||||
// ParenExpression
|
||||
|
||||
// Tuples:
|
||||
//
|
||||
// Tuples, such as `(1, 2)`:
|
||||
// ParenExpressionOrTupleLiteralStart
|
||||
// _external_: expression
|
||||
// TupleLiteralComma
|
||||
|
||||
Reference in New Issue
Block a user