visitTypeParameters method Null safety

  1. @override
StringSink visitTypeParameters(
  1. Iterable<Reference> specs,
  2. [StringSink? output]
)

Implementation

@override
StringSink visitTypeParameters(Iterable<Reference> specs,
    [StringSink? output]) {
  output ??= StringBuffer();
  if (specs.isNotEmpty) {
    output
      ..write('<')
      ..writeAll(specs.map<StringSink>((s) => s.accept(this)), ',')
      ..write('>');
  }
  return output;
}