Semantics for array type (#3087)

Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com>
This commit is contained in:
Farzana Ahmed SiddiqueandFarzana Ahmed Siddique authored and GitHub committed 2023-08-11 23:06:13 +00:00
1 parent 90cca11ea3
commit 9228487d46
16 files changed
+836 -5

No files matched your search

@@ -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: