From 014c3847b352d9c3ff59c8ea82f56e2620c12b6b Mon Sep 17 00:00:00 2001 From: Geoff Romer Date: Thu, 31 Mar 2022 11:22:58 -0700 Subject: [PATCH] Fix build break from #1158 (#1165) --- common/fuzzing/proto_to_carbon.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/fuzzing/proto_to_carbon.cpp b/common/fuzzing/proto_to_carbon.cpp index 7132460015af..485ca4896b9b 100644 --- a/common/fuzzing/proto_to_carbon.cpp +++ b/common/fuzzing/proto_to_carbon.cpp @@ -328,6 +328,17 @@ static auto ExpressionToCarbon(const Fuzzing::Expression& expression, // This is an arbitrary default to avoid getting invalid syntax. out << "1 __unimplemented_example_infix 2"; break; + + case Fuzzing::Expression::kArrayTypeLiteral: { + const Fuzzing::ArrayTypeLiteral& array_literal = + expression.array_type_literal(); + out << "["; + ExpressionToCarbon(array_literal.element_type(), out); + out << "; "; + ExpressionToCarbon(array_literal.size(), out); + out << "]"; + break; + } } }