@@ -1116,21 +1116,21 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11161116 // TODO(jcollins-g): really, these shouldn't be called "parameters" in
11171117 // the span class.
11181118 expect (explicitSetter.linkedReturnType,
1119- '<span class="parameter" id="explicitSetter=-param-f"><span class="type-annotation">dynamic</span> <span class="parameter-name">Function</span>(<span class="parameter" id="f-param-bar"><span class="type-annotation">int</span>, </span> <span class="parameter" id="f-param-baz"><span class="type-annotation"><a href="fake/Cool-class.html">Cool</a></span>, </span> <span class="parameter" id="f-param-macTruck"><span class="type-annotation">List<int></span></span>)</span>' );
1119+ '<span class="parameter" id="explicitSetter=-param-f"><span class="type-annotation">dynamic</span> <span class="parameter-name">Function</span>(<span class="parameter" id="f-param-bar"><span class="type-annotation">int</span>, </span> <span class="parameter" id="f-param-baz"><span class="type-annotation"><a href="fake/Cool-class.html">Cool</a></span>, </span> <span class="parameter" id="f-param-macTruck"><span class="type-annotation">List<span class="signature"> <int></span> </span></span>)</span>' );
11201120 });
11211121
11221122 test ('parameterized type from field is correctly displayed' , () {
11231123 Field aField = TemplatedInterface .instanceProperties
11241124 .singleWhere ((f) => f.name == 'aField' );
11251125 expect (aField.linkedReturnType,
1126- '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><Stream<List<int>>>' );
1126+ '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><span class="signature"> <Stream<span class="signature"> <List<span class="signature"> <int></span> ></span> ></span> ' );
11271127 });
11281128
11291129 test ('parameterized type from inherited field is correctly displayed' , () {
11301130 Field aInheritedField = TemplatedInterface .inheritedProperties
11311131 .singleWhere ((f) => f.name == 'aInheritedField' );
11321132 expect (aInheritedField.linkedReturnType,
1133- '<a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><List<int>>' );
1133+ '<a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
11341134 });
11351135
11361136 test (
@@ -1140,7 +1140,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11401140 .singleWhere ((f) => f.name == 'aGetter' )
11411141 .getter;
11421142 expect (aGetter.linkedReturnType,
1143- '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><Map<A, List<String>>>' );
1143+ '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><span class="signature"> <Map<span class="signature"> <A, List<span class="signature"> <String></span> ></span> ></span> ' );
11441144 });
11451145
11461146 test (
@@ -1150,7 +1150,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11501150 .singleWhere ((f) => f.name == 'aInheritedGetter' )
11511151 .getter;
11521152 expect (aInheritedGetter.linkedReturnType,
1153- '<a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><List<int>>' );
1153+ '<a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
11541154 });
11551155
11561156 test (
@@ -1160,11 +1160,11 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11601160 .singleWhere ((f) => f.name == 'aInheritedSetter' )
11611161 .setter;
11621162 expect (aInheritedSetter.allParameters.first.modelType.linkedName,
1163- '<a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><List<int>>' );
1163+ '<a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
11641164 // TODO(jcollins-g): really, these shouldn't be called "parameters" in
11651165 // the span class.
11661166 expect (aInheritedSetter.enclosingCombo.linkedReturnType,
1167- '<span class="parameter" id="aInheritedSetter=-param-thingToSet"><span class="type-annotation"><a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><List<int>></span></span>' );
1167+ '<span class="parameter" id="aInheritedSetter=-param-thingToSet"><span class="type-annotation"><a href="ex/AnotherParameterizedClass-class.html">AnotherParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> </span></span>' );
11681168 });
11691169
11701170 test (
@@ -1173,7 +1173,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11731173 Method aMethodInterface = TemplatedInterface .allInstanceMethods
11741174 .singleWhere ((m) => m.name == 'aMethodInterface' );
11751175 expect (aMethodInterface.linkedReturnType,
1176- '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><List<int>>' );
1176+ '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
11771177 });
11781178
11791179 test (
@@ -1182,7 +1182,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11821182 Method aInheritedMethod = TemplatedInterface .allInstanceMethods
11831183 .singleWhere ((m) => m.name == 'aInheritedMethod' );
11841184 expect (aInheritedMethod.linkedReturnType,
1185- '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><List<int>>' );
1185+ '<a href=\" ex/AnotherParameterizedClass-class.html\" >AnotherParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
11861186 });
11871187
11881188 test (
@@ -1192,7 +1192,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
11921192 .allInstanceMethods
11931193 .singleWhere ((m) => m.name == 'aTypedefReturningMethodInterface' );
11941194 expect (aTypedefReturningMethodInterface.linkedReturnType,
1195- '<a href=\" ex/ParameterizedTypedef.html\" >ParameterizedTypedef</a><List<String>>' );
1195+ '<a href=\" ex/ParameterizedTypedef.html\" >ParameterizedTypedef</a><span class="signature"> <List<span class="signature"> <String></span> ></span> ' );
11961196 });
11971197
11981198 test (
@@ -1202,7 +1202,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
12021202 .allInstanceMethods
12031203 .singleWhere ((m) => m.name == 'aInheritedTypedefReturningMethod' );
12041204 expect (aInheritedTypedefReturningMethod.linkedReturnType,
1205- '<a href=\" ex/ParameterizedTypedef.html\" >ParameterizedTypedef</a><List<int>>' );
1205+ '<a href=\" ex/ParameterizedTypedef.html\" >ParameterizedTypedef</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
12061206 });
12071207
12081208 test ('parameterized types for inherited operator is correctly displayed' ,
@@ -1211,9 +1211,9 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
12111211 .inheritedOperators
12121212 .singleWhere ((m) => m.name == 'operator +' );
12131213 expect (aInheritedAdditionOperator.linkedReturnType,
1214- '<a href=\" ex/ParameterizedClass-class.html\" >ParameterizedClass</a><List<int>>' );
1214+ '<a href=\" ex/ParameterizedClass-class.html\" >ParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> ' );
12151215 expect (aInheritedAdditionOperator.linkedParams (),
1216- '<span class="parameter" id="+-param-other"><span class="type-annotation"><a href="ex/ParameterizedClass-class.html">ParameterizedClass</a><List<int>></span> <span class="parameter-name">other</span></span>' );
1216+ '<span class="parameter" id="+-param-other"><span class="type-annotation"><a href="ex/ParameterizedClass-class.html">ParameterizedClass</a><span class="signature"> <List<span class="signature"> <int></span> ></span> </span> <span class="parameter-name">other</span></span>' );
12171217 });
12181218
12191219 test ('' , () {});
@@ -1279,7 +1279,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
12791279 expect (
12801280 getAFunctionReturningVoid.linkedReturnType,
12811281 equals (
1282- 'Function(<span class="parameter" id="getAFunctionReturningVoid-param-"><span class="type-annotation">T1</span>, </span> <span class="parameter" id="getAFunctionReturningVoid-param-"><span class="type-annotation">T2</span></span>)' ));
1282+ 'Function<span class="signature"> (<span class="parameter" id="getAFunctionReturningVoid-param-"><span class="type-annotation">T1</span>, </span> <span class="parameter" id="getAFunctionReturningVoid-param-"><span class="type-annotation">T2</span></span>)</span> ' ));
12831283 });
12841284
12851285 test (
@@ -1288,7 +1288,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
12881288 expect (
12891289 getAFunctionReturningBool.linkedReturnType,
12901290 equals (
1291- 'Function<T4>(<span class="parameter" id="getAFunctionReturningBool-param-"><span class="type-annotation">String</span>, </span> <span class="parameter" id="getAFunctionReturningBool-param-"><span class="type-annotation">T1</span>, </span> <span class="parameter" id="getAFunctionReturningBool-param-"><span class="type-annotation">T4</span></span>)' ));
1291+ 'Function<span class="signature"> <T4></span><span class="signature"> (<span class="parameter" id="getAFunctionReturningBool-param-"><span class="type-annotation">String</span>, </span> <span class="parameter" id="getAFunctionReturningBool-param-"><span class="type-annotation">T1</span>, </span> <span class="parameter" id="getAFunctionReturningBool-param-"><span class="type-annotation">T4</span></span>)</span> ' ));
12921292 });
12931293
12941294 test ('has a fully qualified name' , () {
@@ -1362,7 +1362,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
13621362
13631363 test ('parameter has generics in signature' , () {
13641364 expect (testGeneric.parameters[0 ].modelType.linkedName,
1365- 'Map<String, dynamic>' );
1365+ 'Map<span class="signature"> <String, dynamic></span> ' );
13661366 });
13671367
13681368 test ('parameter is a function' , () {
@@ -1768,7 +1768,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
17681768 expect (
17691769 fieldWithTypedef.linkedReturnType,
17701770 equals (
1771- '<a href="ex/ParameterizedTypedef.html">ParameterizedTypedef</a><bool>' ));
1771+ '<a href="ex/ParameterizedTypedef.html">ParameterizedTypedef</a><span class="signature"> <bool></span> ' ));
17721772 });
17731773 });
17741774
@@ -2040,7 +2040,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
20402040 expect (
20412041 aComplexTypedef.linkedReturnType,
20422042 equals (
2043- 'Function(<span class="parameter" id="-param-"><span class="type-annotation">A1</span>, </span> <span class="parameter" id="-param-"><span class="type-annotation">A2</span>, </span> <span class="parameter" id="-param-"><span class="type-annotation">A3</span></span>)' ));
2043+ 'Function<span class="signature"> (<span class="parameter" id="-param-"><span class="type-annotation">A1</span>, </span> <span class="parameter" id="-param-"><span class="type-annotation">A2</span>, </span> <span class="parameter" id="-param-"><span class="type-annotation">A3</span></span>)</span> ' ));
20442044 expect (
20452045 aComplexTypedef.linkedParamsLines,
20462046 equals (
@@ -2065,7 +2065,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
20652065
20662066 test ('linked return type' , () {
20672067 expect (t.linkedReturnType, equals ('String' ));
2068- expect (generic.linkedReturnType, equals ('List<S>' ));
2068+ expect (generic.linkedReturnType, equals ('List<span class="signature"> <S></span> ' ));
20692069 });
20702070
20712071 test ("name with generics" , () {
0 commit comments