@@ -119,17 +119,17 @@ class LibraryTemplateData extends TemplateData<Library> {
119119 List get navLinks => [package];
120120 @override
121121 Iterable <Subnav > getSubNavItems () sync * {
122+ if (library.hasClasses)
123+ yield new Subnav ('Classes' , '${library .href }#classes' );
122124 if (library.hasConstants)
123125 yield new Subnav ('Constants' , '${library .href }#constants' );
124- if (library.hasTypedefs)
125- yield new Subnav ('Typedefs' , '${library .href }#typedefs' );
126126 if (library.hasProperties)
127127 yield new Subnav ('Properties' , '${library .href }#properties' );
128128 if (library.hasFunctions)
129129 yield new Subnav ('Functions' , '${library .href }#functions' );
130130 if (library.hasEnums) yield new Subnav ('Enums' , '${library .href }#enums' );
131- if (library.hasClasses )
132- yield new Subnav ('Classes ' , '${library .href }#classes ' );
131+ if (library.hasTypedefs )
132+ yield new Subnav ('Typedefs ' , '${library .href }#typedefs ' );
133133 if (library.hasExceptions)
134134 yield new Subnav ('Exceptions' , '${library .href }#exceptions' );
135135 }
@@ -171,20 +171,20 @@ class ClassTemplateData extends TemplateData<Class> {
171171 String get htmlBase => '..' ;
172172 @override
173173 Iterable <Subnav > getSubNavItems () sync * {
174- if (clazz.hasConstants)
175- yield new Subnav ('Constants' , '${clazz .href }#constants' );
176- if (clazz.hasStaticProperties)
177- yield new Subnav ('Static Properties' , '${clazz .href }#static-properties' );
178- if (clazz.hasStaticMethods)
179- yield new Subnav ('Static Methods' , '${clazz .href }#static-methods' );
180- if (clazz.hasProperties)
181- yield new Subnav ('Properties' , '${clazz .href }#instance-properties' );
182174 if (clazz.hasConstructors)
183175 yield new Subnav ('Constructors' , '${clazz .href }#constructors' );
184- if (clazz.hasOperators )
185- yield new Subnav ('Operators ' , '${clazz .href }#operators ' );
176+ if (clazz.hasProperties )
177+ yield new Subnav ('Properties ' , '${clazz .href }#instance-properties ' );
186178 if (clazz.hasMethods)
187179 yield new Subnav ('Methods' , '${clazz .href }#instance-methods' );
180+ if (clazz.hasOperators)
181+ yield new Subnav ('Operators' , '${clazz .href }#operators' );
182+ if (clazz.hasStaticProperties)
183+ yield new Subnav ('Static Properties' , '${clazz .href }#static-properties' );
184+ if (clazz.hasStaticMethods)
185+ yield new Subnav ('Static Methods' , '${clazz .href }#static-methods' );
186+ if (clazz.hasConstants)
187+ yield new Subnav ('Constants' , '${clazz .href }#constants' );
188188 }
189189
190190 Class get objectType {
@@ -235,30 +235,31 @@ class ConstructorTemplateData extends TemplateData<Constructor> {
235235
236236class EnumTemplateData extends TemplateData <Enum > {
237237 EnumTemplateData (
238- HtmlOptions htmlOptions, Package package, this .library, this .clazz )
238+ HtmlOptions htmlOptions, Package package, this .library, this .eNum )
239239 : super (htmlOptions, package);
240240
241241 final Library library;
242- final Enum clazz ;
242+ final Enum eNum ;
243243 @override
244- Enum get self => clazz ;
244+ Enum get self => eNum ;
245245 @override
246- String get layoutTitle =>
247- _layoutTitle (clazz.name, 'enum' , clazz.isDeprecated);
246+ String get layoutTitle => _layoutTitle (eNum.name, 'enum' , eNum.isDeprecated);
248247 @override
249248 String get title => '${self .name } enum - ${library .name } library - Dart API' ;
250249 @override
251250 String get metaDescription =>
252- 'API docs for the ${clazz .name } enum from the ${library .name } library, '
251+ 'API docs for the ${eNum .name } enum from the ${library .name } library, '
253252 'for the Dart programming language.' ;
254253 @override
255254 List get navLinks => [package, library];
256255 @override
257256 String get htmlBase => '..' ;
258257 @override
259258 Iterable <Subnav > getSubNavItems () => [
260- new Subnav ('Constants' , '${clazz .href }#constants' ),
261- new Subnav ('Properties' , '${clazz .href }#properties' )
259+ new Subnav ('Constants' , '${eNum .href }#constants' ),
260+ new Subnav ('Properties' , '${eNum .href }#instance-properties' ),
261+ new Subnav ('Methods' , '${eNum .href }#instance-methods' ),
262+ new Subnav ('Operators' , '${eNum .href }#operators' )
262263 ];
263264}
264265
0 commit comments