mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user