Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: utils/apidoc/apidoc.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/unittest/unittest.dart ('k') | utils/css/generate.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This generates the reference documentation for the core libraries that come 6 * This generates the reference documentation for the core libraries that come
7 * with dart. It is built on top of dartdoc, which is a general-purpose library 7 * with dart. It is built on top of dartdoc, which is a general-purpose library
8 * for generating docs from any Dart code. This library extends that to include 8 * for generating docs from any Dart code. This library extends that to include
9 * additional information and styling specific to our standard library. 9 * additional information and styling specific to our standard library.
10 * 10 *
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 memberComments[member.qualifiedName] = comment; 230 memberComments[member.qualifiedName] = comment;
231 } 231 }
232 } 232 }
233 233
234 class Apidoc extends doc.Dartdoc { 234 class Apidoc extends doc.Dartdoc {
235 /** Big ball of JSON containing the scraped MDN documentation. */ 235 /** Big ball of JSON containing the scraped MDN documentation. */
236 final Map mdn; 236 final Map mdn;
237 237
238 final Htmldoc htmldoc; 238 final Htmldoc htmldoc;
239 239
240 static final disqusShortname = 'dartapidocs'; 240 static const disqusShortname = 'dartapidocs';
241 241
242 /** 242 /**
243 * The URL to the page on MDN that content was pulled from for the current 243 * The URL to the page on MDN that content was pulled from for the current
244 * type being documented. Will be `null` if the type doesn't use any MDN 244 * type being documented. Will be `null` if the type doesn't use any MDN
245 * content. 245 * content.
246 */ 246 */
247 String mdnUrl; 247 String mdnUrl;
248 248
249 Apidoc(this.mdn, this.htmldoc, Path outputDir, int mode, 249 Apidoc(this.mdn, this.htmldoc, Path outputDir, int mode,
250 bool generateAppCache) { 250 bool generateAppCache) {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 final typeName = member.surroundingDeclaration.simpleName; 526 final typeName = member.surroundingDeclaration.simpleName;
527 var memberName = '$typeName.${member.simpleName}'; 527 var memberName = '$typeName.${member.simpleName}';
528 if (member is MethodMirror && (member.isConstructor || member.isFactory)) { 528 if (member is MethodMirror && (member.isConstructor || member.isFactory)) {
529 final separator = member.constructorName == '' ? '' : '.'; 529 final separator = member.constructorName == '' ? '' : '.';
530 memberName = 'new $typeName$separator${member.constructorName}'; 530 memberName = 'new $typeName$separator${member.constructorName}';
531 } 531 }
532 532
533 return a(memberUrl(member), memberName); 533 return a(memberUrl(member), memberName);
534 } 534 }
535 } 535 }
OLDNEW
« no previous file with comments | « pkg/unittest/unittest.dart ('k') | utils/css/generate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698