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

Issue 11263020: Fixes documentation generation for dart:html. (Closed)

Created:
8 years, 1 month ago by Andrei Mouravski
Modified:
8 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fixes documentation generation for dart:html. Specifically, this looks at the canonical URI for a library, and if it begins with dart:, then use the canonical path as the printed name, otherwise use the simpleName, which is generally the library name. This was necessary because the new import syntax changed the simpleName from say "dart:html" to "html". This should work for all other libraries, too, which will be updated to the new import syntax in following CLs. Committed: https://code.google.com/p/dart/source/detail?r=14040

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed Bob's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -25 lines) Patch
M pkg/dartdoc/lib/dartdoc.dart View 1 12 chunks +26 lines, -17 lines 0 comments Download
M pkg/dartdoc/lib/mirrors.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M utils/apidoc/apidoc.dart View 1 6 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Andrei Mouravski
Wasn't sure who'd be best to review this so scattershot it is.
8 years, 1 month ago (2012-10-24 20:44:34 UTC) #1
Bob Nystrom
https://codereview.chromium.org/11263020/diff/1/pkg/dartdoc/lib/dartdoc.dart File pkg/dartdoc/lib/dartdoc.dart (right): https://codereview.chromium.org/11263020/diff/1/pkg/dartdoc/lib/dartdoc.dart#newcode93 pkg/dartdoc/lib/dartdoc.dart:93: String printedName(LibraryMirror library) { "printed" might be a bit ...
8 years, 1 month ago (2012-10-24 20:52:15 UTC) #2
dgrove
LGTM once you address Bob's comments/
8 years, 1 month ago (2012-10-24 21:06:22 UTC) #3
Andrei Mouravski
PTAL. https://codereview.chromium.org/11263020/diff/1/pkg/dartdoc/lib/dartdoc.dart File pkg/dartdoc/lib/dartdoc.dart (right): https://codereview.chromium.org/11263020/diff/1/pkg/dartdoc/lib/dartdoc.dart#newcode93 pkg/dartdoc/lib/dartdoc.dart:93: String printedName(LibraryMirror library) { On 2012/10/24 20:52:15, Bob ...
8 years, 1 month ago (2012-10-24 21:19:36 UTC) #4
Bob Nystrom
LGTM!
8 years, 1 month ago (2012-10-24 21:21:01 UTC) #5
Johnni Winther
8 years ago (2012-12-17 14:43:40 UTC) #6
Message was sent while issue was closed.
Please don't modify the mirrors API within adding me as a reviewer. The
compile-time mirrors implementation should be in sync with and at some point in
time merged with dart:mirror and it should therefore not be extended
independently.

Powered by Google App Engine
This is Rietveld 408576698