Semantics for array type (#3087)

Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com>
This commit is contained in:
Farzana Ahmed Siddique
2023-08-11 23:06:13 +00:00
committed by GitHub
co-authored by Farzana Ahmed Siddique
parent 90cca11ea3
commit 9228487d46
16 changed files with 836 additions and 5 deletions
@@ -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: