@@ -283,64 +283,64 @@ class FunctionTemplateData extends TemplateData<ModelFunction> {
283283class MethodTemplateData extends TemplateData <Method > {
284284 final Library library;
285285 final Method method;
286- final Container clazz ;
287- String container ;
286+ final Container container ;
287+ String containerDesc ;
288288
289289 MethodTemplateData (HtmlOptions htmlOptions, PackageGraph packageGraph,
290- this .library, this .clazz , this .method)
290+ this .library, this .container , this .method)
291291 : super (htmlOptions, packageGraph) {
292- container = clazz .isClass ? 'class' : 'extension' ;
292+ containerDesc = container .isClass ? 'class' : 'extension' ;
293293 }
294294
295295 @override
296296 Method get self => method;
297297 @override
298- String get title => '${method .name } method - ${clazz .name } ${container } - '
298+ String get title => '${method .name } method - ${container .name } ${containerDesc } - '
299299 '${library .name } library - Dart API' ;
300300 @override
301301 String get layoutTitle => _layoutTitle (
302302 method.nameWithGenerics, method.fullkind, method.isDeprecated);
303303 @override
304304 String get metaDescription =>
305- 'API docs for the ${method .name } method from the ${clazz .name } ${container }, '
305+ 'API docs for the ${method .name } method from the ${container .name } ${containerDesc }, '
306306 'for the Dart programming language.' ;
307307 @override
308308 List get navLinks => [packageGraph.defaultPackage, library];
309309 @override
310- List get navLinksWithGenerics => [clazz ];
310+ List get navLinksWithGenerics => [container ];
311311 @override
312312 String get htmlBase => '../..' ;
313313}
314314
315315class PropertyTemplateData extends TemplateData <Field > {
316316 final Library library;
317- final Container clazz ;
317+ final Container container ;
318318 final Field property;
319- String container ;
319+ String containerDesc ;
320320
321321 PropertyTemplateData (HtmlOptions htmlOptions, PackageGraph packageGraph,
322- this .library, this .clazz , this .property)
322+ this .library, this .container , this .property)
323323 : super (htmlOptions, packageGraph) {
324- container = clazz .isClass ? 'class' : 'extension' ;
324+ containerDesc = container .isClass ? 'class' : 'extension' ;
325325 }
326326
327327 @override
328328 Field get self => property;
329329
330330 @override
331- String get title => '${property .name } $type - ${clazz .name } ${container } - '
331+ String get title => '${property .name } $type - ${container .name } ${containerDesc } - '
332332 '${library .name } library - Dart API' ;
333333 @override
334334 String get layoutTitle =>
335335 _layoutTitle (property.name, type, property.isDeprecated);
336336 @override
337337 String get metaDescription =>
338- 'API docs for the ${property .name } $type from the ${clazz .name } ${container }, '
338+ 'API docs for the ${property .name } $type from the ${container .name } ${containerDesc }, '
339339 'for the Dart programming language.' ;
340340 @override
341341 List get navLinks => [packageGraph.defaultPackage, library];
342342 @override
343- List get navLinksWithGenerics => [clazz ];
343+ List get navLinksWithGenerics => [container ];
344344 @override
345345 String get htmlBase => '../..' ;
346346
@@ -349,8 +349,8 @@ class PropertyTemplateData extends TemplateData<Field> {
349349
350350class ConstantTemplateData extends PropertyTemplateData {
351351 ConstantTemplateData (HtmlOptions htmlOptions, PackageGraph packageGraph,
352- Library library, Container clazz , Field property)
353- : super (htmlOptions, packageGraph, library, clazz , property);
352+ Library library, Container container , Field property)
353+ : super (htmlOptions, packageGraph, library, container , property);
354354
355355 @override
356356 String get type => 'constant' ;
0 commit comments