File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ abstract class ElementTypeRenderer<T extends ElementType> {
16
16
String wrapNullabilityParens (T elementType, String inner) =>
17
17
elementType.nullabilitySuffix.isEmpty
18
18
? inner
19
- : '( $inner ${elementType .nullabilitySuffix }) ' ;
19
+ : '$inner ${elementType .nullabilitySuffix }' ;
20
20
}
21
21
22
22
// HTML implementations.
Original file line number Diff line number Diff line change @@ -171,12 +171,11 @@ void f(int Function(String)? p) {}
171
171
172
172
expect (
173
173
parameterType.linkedName,
174
- // TODO(https://github.com/dart-lang/dartdoc/issues/2381): Fix.
175
- '($intLink Function'
174
+ '$intLink Function'
176
175
'<span class="signature">'
177
176
'(<span class="parameter" id="param-">'
178
177
'<span class="type-annotation">$stringLink </span>'
179
- '</span>)</span>?) ' ,
178
+ '</span>)</span>?' ,
180
179
);
181
180
expect (parameterType.nameWithGenerics, equals ('Function' ));
182
181
});
@@ -190,11 +189,11 @@ void f(int Function<T>(T)? p) {}
190
189
191
190
expect (
192
191
parameterType.linkedName,
193
- '( $intLink Function'
192
+ '$intLink Function'
194
193
'<<wbr><span class="type-parameter">T</span>>'
195
194
'<span class="signature">'
196
195
'(<span class="parameter" id="param-">'
197
- '<span class="type-annotation">T</span></span>)</span>?) ' ,
196
+ '<span class="type-annotation">T</span></span>)</span>?' ,
198
197
);
199
198
expect (
200
199
parameterType.nameWithGenerics,
You can’t perform that action at this time.
0 commit comments