Commit Graph

12 Commits

Author SHA1 Message Date
janicejl@google.com e505d44db4 moved everything inside of the Docgen class into top level variables and functions. Also made most of the helper functions private.
This should aid unit testing as it would be possible to create a mirror system separately, and also generate one library object separately without everything being chained together by the docgen class.

R=efortuna@google.com

Review URL: https://codereview.chromium.org//17943002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24550 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 21:11:57 +00:00
janicejl@google.com b1c5a2c197 Refactoring docgen to make it more unit testable.
broke up a few other functions to be smaller and only do one thing (mostly).

separated documentLibraries into 3 smaller functions that returns things so that it can be unit tested.

BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//17893008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24486 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:08:57 +00:00
janicejl@google.com 824ab9a487 outputs a new file called library_list.txt which will let the viewer know what libraries are available
R=amouravski@google.com

Review URL: https://codereview.chromium.org//17759005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24478 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 17:14:36 +00:00
janicejl@google.com 7dc47c68d0 Getting docgen to work with the SDK.
R=amouravski@google.com

Review URL: https://codereview.chromium.org//17745007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24477 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 17:04:41 +00:00
janicejl@google.com 8e081d2f0e finds packageDir from the returned list from listDir.
used pathos package and moved to listDir from pub/lib/src/io.dart

moved listLibraries into the docgen class, and changed return type to Strings.

R=amouravski@google.com

Review URL: https://codereview.chromium.org//17611006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24434 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 21:38:13 +00:00
janicejl@google.com 0bbe2c4920 Added --exclude-lib=docgen so that it does throw an error about markdown when building.
R=efortuna@google.com

Review URL: https://codereview.chromium.org//17608007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24421 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 16:49:11 +00:00
janicejl@google.com e740b1bfd0 "Reverting 24368"
BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//17621004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24369 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 21:48:39 +00:00
janicejl@google.com 1bc841e74e 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

Review URL: https://codereview.chromium.org//16915007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24368 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 21:36:06 +00:00
janicejl@google.com 7cd34e372c "Reverting 24208"
BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//16975021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24209 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 23:40:17 +00:00
janicejl@google.com 350b57dbed removed unnecessary comments and debug print statements.
added Command Line Arguments, support for directories, hiding private data, not parsing the SDK, removing linebreaks in html comments and added an ID for resolving links later.

beginning work of command line arguments.

BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//16948010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24208 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 23:28:16 +00:00
tmandel@google.com 51443b20b5 Added markdown reference recognition and output to JSON.
BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//17000002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24009 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 20:31:14 +00:00
tmandel@google.com d9af545bb5 Moved docgen out of the sdk into pkg/
BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//16839004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23935 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 21:31:20 +00:00