visitLiteralSetExpression method
StringSink
visitLiteralSetExpression(
- LiteralSetExpression expression, [
- StringSink? output
inherited
Implementation
@override
StringSink visitLiteralSetExpression(
LiteralSetExpression expression, [
StringSink? output,
]) {
final out = output ??= StringBuffer();
return _writeConstExpression(output, expression.isConst, () {
if (expression.type != null) {
out.write('<');
expression.type!.accept(this, output);
out.write('>');
}
out.write('{');
visitAll<Object?>(expression.values, out, (value) {
_acceptLiteral(value, out);
});
if (expression.values.length > 1) {
out.write(', ');
}
return out..write('}');
});
}