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

Issue 16915007: docgen working with a temporary link hack. (Closed)

Created:
7 years, 6 months ago by janicejl
Modified:
7 years, 6 months ago
Visibility:
Public.

Description

docgen working with a temporary link hack. added checking the environment varaible DART_SDK first, just like how pub does it, also added checking for null in constructor of docgen. R=efortuna@google.com Committed: https://code.google.com/p/dart/source/detail?r=24368

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : #

Total comments: 20

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -382 lines) Patch
M pkg/docgen/bin/docgen.dart View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -381 lines 0 comments Download
A pkg/docgen/lib/docgen.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +542 lines, -0 lines 26 comments Download
M pkg/docgen/pubspec.yaml View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
janicejl
7 years, 6 months ago (2013-06-21 19:57:14 UTC) #1
janicejl
7 years, 6 months ago (2013-06-21 20:00:24 UTC) #2
Emily Fortuna
https://codereview.chromium.org/16915007/diff/1/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://codereview.chromium.org/16915007/diff/1/pkg/docgen/lib/docgen.dart#newcode23 pkg/docgen/lib/docgen.dart:23: import 'package:hack/compiler/compiler.dart' as api; Can you add a TODO(janicejl/amouravski) ...
7 years, 6 months ago (2013-06-21 20:27:37 UTC) #3
Bob Nystrom
https://codereview.chromium.org/16915007/diff/1/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://codereview.chromium.org/16915007/diff/1/pkg/docgen/lib/docgen.dart#newcode145 pkg/docgen/lib/docgen.dart:145: * Also initializes the command line arguments. You can ...
7 years, 6 months ago (2013-06-21 20:32:53 UTC) #4
janicejl
https://codereview.chromium.org/16915007/diff/1/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://codereview.chromium.org/16915007/diff/1/pkg/docgen/lib/docgen.dart#newcode154 pkg/docgen/lib/docgen.dart:154: outputToYaml = true; On 2013/06/21 20:27:37, Emily Fortuna wrote: ...
7 years, 6 months ago (2013-06-21 21:02:39 UTC) #5
Emily Fortuna
https://codereview.chromium.org/16915007/diff/9003/pkg/docgen/bin/docgen.dart File pkg/docgen/bin/docgen.dart (right): https://codereview.chromium.org/16915007/diff/9003/pkg/docgen/bin/docgen.dart#newcode8 pkg/docgen/bin/docgen.dart:8: import 'package:hack/compiler/implementation/mirrors/mirrors.dart'; can you also add the TODO about ...
7 years, 6 months ago (2013-06-21 21:25:52 UTC) #6
janicejl
https://codereview.chromium.org/16915007/diff/9003/pkg/docgen/bin/docgen.dart File pkg/docgen/bin/docgen.dart (right): https://codereview.chromium.org/16915007/diff/9003/pkg/docgen/bin/docgen.dart#newcode8 pkg/docgen/bin/docgen.dart:8: import 'package:hack/compiler/implementation/mirrors/mirrors.dart'; On 2013/06/21 21:25:52, Emily Fortuna wrote: > ...
7 years, 6 months ago (2013-06-21 21:44:33 UTC) #7
Emily Fortuna
https://codereview.chromium.org/16915007/diff/18001/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://codereview.chromium.org/16915007/diff/18001/pkg/docgen/lib/docgen.dart#newcode23 pkg/docgen/lib/docgen.dart:23: // TODO (janicejl/amouravski) Remove link import solution when there ...
7 years, 6 months ago (2013-06-21 21:47:28 UTC) #8
janicejl
Removed the symlink and used relative paths.
7 years, 6 months ago (2013-06-21 22:03:21 UTC) #9
Andrei Mouravski
Forgot to send these. https://chromiumcodereview.appspot.com/16915007/diff/26001/pkg/docgen/bin/docgen.dart File pkg/docgen/bin/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/26001/pkg/docgen/bin/docgen.dart#newcode1 pkg/docgen/bin/docgen.dart:1: // Copyright (c) 2013, the ...
7 years, 6 months ago (2013-06-22 00:14:29 UTC) #10
janicejl
https://chromiumcodereview.appspot.com/16915007/diff/26001/pkg/docgen/bin/docgen.dart File pkg/docgen/bin/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/26001/pkg/docgen/bin/docgen.dart#newcode1 pkg/docgen/bin/docgen.dart:1: // Copyright (c) 2013, the Dart project authors. Please ...
7 years, 6 months ago (2013-06-22 00:36:44 UTC) #11
Emily Fortuna
https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart#newcode31 pkg/docgen/lib/docgen.dart:31: remove extra line https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart#newcode55 pkg/docgen/lib/docgen.dart:55: help: "Runs docgen with ...
7 years, 6 months ago (2013-06-24 20:30:37 UTC) #12
janicejl
https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart#newcode31 pkg/docgen/lib/docgen.dart:31: On 2013/06/24 20:30:37, Emily Fortuna wrote: > remove extra ...
7 years, 6 months ago (2013-06-24 20:56:40 UTC) #13
Andrei Mouravski
A few comments here. https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/bin/docgen.dart File pkg/docgen/bin/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/bin/docgen.dart#newcode6 pkg/docgen/bin/docgen.dart:6: import 'package:args/args.dart'; Add a newline ...
7 years, 6 months ago (2013-06-24 21:00:39 UTC) #14
Emily Fortuna
almost there! https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart File pkg/docgen/lib/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/lib/docgen.dart#newcode76 pkg/docgen/lib/docgen.dart:76: List<Path> listLibraries(List<String> args) { On 2013/06/24 20:56:41, ...
7 years, 6 months ago (2013-06-24 21:11:36 UTC) #15
janicejl
https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/bin/docgen.dart File pkg/docgen/bin/docgen.dart (right): https://chromiumcodereview.appspot.com/16915007/diff/32001/pkg/docgen/bin/docgen.dart#newcode6 pkg/docgen/bin/docgen.dart:6: import 'package:args/args.dart'; On 2013/06/24 21:00:40, Andrei Mouravski wrote: > ...
7 years, 6 months ago (2013-06-24 21:20:56 UTC) #16
Emily Fortuna
lgtm
7 years, 6 months ago (2013-06-24 21:22:23 UTC) #17
janicejl
Committed patchset #11 manually as r24368 (presubmit successful).
7 years, 6 months ago (2013-06-24 21:36:12 UTC) #18
Andrei Mouravski
Feel free to start a new CL for these comments. Will add more later. https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/docgen.dart ...
7 years, 6 months ago (2013-06-24 22:07:10 UTC) #19
janicejl
7 years, 6 months ago (2013-06-25 00:48:42 UTC) #20
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
File pkg/docgen/lib/docgen.dart (right):

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:13: * This creates a file called
`docs/<library_name>` in your current working
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> Is there an extension?

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:35: /// Logger for Dart Doc Generator.
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> No need for this comment.

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:38: /// Unique ID, will get incremented everytime an
ID is requested.
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> /// Counter used to provide unique IDs for each distinct item.

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:39: int _uid = 0;
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> How about _nextId to match below comment.

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:41: int getID() => _uid++;
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> Just make it:
> int get nextId => _uid++;

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:46: * Returns a ArgParser with all the flags and
options created.
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> "Creates parser for docgen command line arguments."

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:48: ArgParser initArgParser() {
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> This should probably move to bin/dartdoc.dart since that's the place it's
> actually used.

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:50: parser.addFlag("help", abbr: "h",
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> Help should be a command instead.

I talked to Bob about making help a command, and he says that help is usually a
flag. However, pub does have a help command to give more details about all the
options. Would that be better?

I have copied this comment onto the new CL as well.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:54: if (help) print(parser.getUsage());
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> Don't print this way. Use the logger to output this information.
> 
> Add the log handler at the place where you invoke main (bin/docgen). It's fine
> if that handler just prints.

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:57: help: "Runs docgen with logging.", negatable:
false,
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> It should already have logging. This should say something like,
> "Output more logging information."

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:61: parser.addFlag("yaml", abbr: "y",
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> How about:
> parser.addFlag("output-format", "o", either yaml or json, sets format variable
> to one or the other.)
> 
> parser.flag("yaml"... "Same as output-format=yaml")
>  same thing for json, and then make sure that these are mutually exclusive. 

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:66: help: "Hides private declarations.", negatable:
false);
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> Are they hidden, or ignored?
> 
> That is to say, are they output in the file?
> 
> I think that this should be: "include-private" because it makes more sense
that
> the default should just be the public API.

Done.

https://chromiumcodereview.appspot.com/16915007/diff/41002/pkg/docgen/lib/doc...
pkg/docgen/lib/docgen.dart:68: help: "Flag to parse SDK Library files.",
defaultsTo: true);
On 2013/06/24 22:07:11, Andrei Mouravski wrote:
> "include-sdk" maybe?
> 
> Probably should default to false, anyhow.

Done.

Powered by Google App Engine
This is Rietveld 408576698