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

Unified Diff: utils/apidoc/html_diff.dart

Issue 11260005: Fixed the HTML doc breakage. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/html_diff.dart
diff --git a/utils/apidoc/html_diff.dart b/utils/apidoc/html_diff.dart
index 6fd785f6a00b810ff208cd68c4344fa73745a216..4ef3248e5d41da15919bd354b298ac1085753de2 100644
--- a/utils/apidoc/html_diff.dart
+++ b/utils/apidoc/html_diff.dart
@@ -16,7 +16,11 @@
#import('../../pkg/dartdoc/lib/mirrors.dart');
#import('../../pkg/dartdoc/lib/mirrors_util.dart');
+// TODO(amouravski): There is currently magic that looks at dart:* libraries
+// rather than the declared library names. This changed due to recent syntax
+// changes. We should only need to look at the library 'html'.
const HTML_LIBRARY_NAME = 'dart:html';
+const HTML_DECLARED_NAME = 'html';
/**
* A class for computing a many-to-many mapping between the types and
@@ -92,7 +96,7 @@ class HtmlDiff {
* [HtmlDiff.initialize] should be called.
*/
void run() {
- LibraryMirror htmlLib = _mirrors.libraries[HTML_LIBRARY_NAME];
+ LibraryMirror htmlLib = _mirrors.libraries[HTML_DECLARED_NAME];
if (htmlLib === null) {
warn('Could not find $HTML_LIBRARY_NAME');
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698