mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 13:21:06 +01:00
Semantics for array type (#3087)
Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com>
This commit is contained in:
co-authored by
Farzana Ahmed Siddique
parent
90cca11ea3
commit
9228487d46
@@ -241,6 +241,7 @@ class SemanticsNodeStack {
|
||||
// Translate a parse node kind to the enum ID kind it should always provide.
|
||||
static constexpr auto ParseNodeKindToIdKind(ParseNodeKind kind) -> IdKind {
|
||||
switch (kind) {
|
||||
case ParseNodeKind::ArrayExpression:
|
||||
case ParseNodeKind::CallExpression:
|
||||
case ParseNodeKind::CallExpressionStart:
|
||||
case ParseNodeKind::IfExpressionElse:
|
||||
@@ -270,6 +271,7 @@ class SemanticsNodeStack {
|
||||
return IdKind::SemanticsStringId;
|
||||
case ParseNodeKind::ReturnType:
|
||||
return IdKind::SemanticsTypeId;
|
||||
case ParseNodeKind::ArrayExpressionSemi:
|
||||
case ParseNodeKind::CodeBlockStart:
|
||||
case ParseNodeKind::FunctionIntroducer:
|
||||
case ParseNodeKind::IfCondition:
|
||||
|
||||
Reference in New Issue
Block a user