Commit Graph

238 Commits

Author SHA1 Message Date
ahe@google.com 5b840f2571 Ensure packageRoot is non-null in docgen.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42682 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-08 09:56:08 +00:00
alanknight@google.com 6eb5b31b6d Change dartdocgen --serve to use pub get rather than pub upgrade
BUG=
R=sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42376 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-15 23:00:32 +00:00
alanknight@google.com 71dd6daaad Let docgen detect a dart-sdk directory that's differently named, and do it correctly on bleeding edge
BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42112 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-04 17:10:15 +00:00
johnniwinther@google.com eab478e8ac Extract BuilderContext from ASTEmitter
BUG=
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42034 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-01 10:04:11 +00:00
johnniwinther@google.com c167972a80 Support native extensions for analysis and docgen.
BUG=http://dartbug.com/10616
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41903 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-21 14:09:14 +00:00
ricow@google.com 5482e85112 Revert revision 41812 "Let docgen detect a dart-sdk directory that's differently named"
The vm build is incremental, and on bleeding edge the revision number is part of the version number.
So if a cl lands that triggers a rebuild of the api docs - but not of the vm, the check for vmVersion.startsWith(version) will report false.

This is exactly what happened here:
http://build.chromium.org/p/client.dart/builders/analyzer_experimental-linux-release-be/builds/400

The change from sgjesse@ : https://code.google.com/p/dart/source/detail?r=41821
Triggered a rebuild of the api docs, but the vm remained unchanged with a version of:
1.8.0-edge.41820
The version of the build was:
1.8.0-edge.41821

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41824 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-19 09:27:06 +00:00
alanknight@google.com 2f6de1c0ed Let docgen detect a dart-sdk directory that's differently named
BUG=
R=sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41812 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-18 22:39:44 +00:00
alanknight@google.com 53b84108f6 Fix leftover checks for dart- names in docgen
BUG=
R=sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41788 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-17 18:38:24 +00:00
johnniwinther@google.com 43bc55bcfd Replace ResolvedNode by ConstantExpression.
BUG=http://dartbug.com/21493
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41709 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 10:22:30 +00:00
paulberry@google.com 9bc06fbf41 Workaround for ConstantVisitor dependency issues.
This restores proper test functionality on the buildbots.  I plan to
follow up with a more permanent fix.

BUG=dartbug.com/21572
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41676 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 22:55:58 +00:00
alanknight@google.com e6bdf284bf Generate docgen file names with hyphens in their names instead of colons
BUG=
R=kevmoo@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41642 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 18:25:13 +00:00
johnniwinther@google.com 558dd52ba6 Fix docgen tests.
BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41629 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 13:15:10 +00:00
alanknight@google.com 517a2c9218 Generate docgen information with dart: names rather than dart- or dart-dom-
BUG=
R=kathyw@google.com, sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41577 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 18:36:37 +00:00
alanknight@google.com 48ff3ccd27 Rename snapshot, other user-visible parts of docgen to dartdocgen.
BUG=
R=ricow@google.com

Committed: https://code.google.com/p/dart/source/detail?r=41529

Committed: https://code.google.com/p/dart/source/detail?r=41571

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41573 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 17:41:25 +00:00
alanknight@google.com 57aede2e75 "Reverting 41571"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41572 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 17:27:52 +00:00
alanknight@google.com b9be0df603 Rename snapshot, other user-visible parts of docgen to dartdocgen.
BUG=
R=ricow@google.com

Committed: https://code.google.com/p/dart/source/detail?r=41529

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41571 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 17:15:10 +00:00
alanknight@google.com 844c55185c "Reverting 41529"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41531 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 21:08:12 +00:00
alanknight@google.com 935058524b Rename snapshot, other user-visible parts of docgen to dartdocgen.
BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41529 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 20:23:08 +00:00
johnniwinther@google.com 09fbe78e71 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41514 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:51:01 +00:00
johnniwinther@google.com 8637cfd322 Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler"
This reverts commit r41512.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41513 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:15:26 +00:00
johnniwinther@google.com 2b336e17f0 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41512 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 07:09:04 +00:00
johnniwinther@google.com fd67614e9a Add test for docgen of source with async/await.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41486 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-04 13:45:39 +00:00
johnniwinther@google.com 2949c787a6 Use ConstExp for storing constants.
Main modification in

compile_time_constants.dart
cps_ir/const_expression.dart
cps_ir/cps_ir_builder.dart

R=efortuna@google.com, sigurdm@google.com

Committed: https://code.google.com/p/dart/source/detail?r=40372

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40759 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 09:17:43 +00:00
kevmoo@google.com 8ef920990f pkg/docgen: include all package libraries under lib/, except those under lib/src
Also updated package dependencies

BUG= https://code.google.com/p/dart/issues/detail?id=18554
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40246 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-15 15:04:20 +00:00
alanknight@google.com dc5e959487 Make --no-include-sdk the default for docgen
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39829 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 20:11:51 +00:00
nweiz@google.com a6af9d1aeb Move a number of packages and some of pub over to using source_span.
R=efortuna@google.com, rnystrom@google.com, sigmund@google.com
BUG=19930

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38526 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 23:44:09 +00:00
alanknight@google.com 1be192bd92 Make links to libraries from the main page work
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38439 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-21 17:31:14 +00:00
rnystrom@google.com ff23b25a81 Add .wasParsed() to ArgResults.
BUG=https://code.google.com/p/dart/issues/detail?id=16227
R=alanknight@google.com, nweiz@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38348 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-17 21:35:45 +00:00
sigurdm@google.com de70192e1d Fix docgen
The warning was due to change in signature of Unparser.unparseNodeList.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37782 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-27 09:47:48 +00:00
sigurdm@google.com 12485c72d6 Fixes a rename in subclass of the unparser.
Review URL: https://codereview.chromium.org//359743002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37778 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-27 09:00:15 +00:00
ahe@google.com 98523c01f8 Update imports to use package:compiler and package:try.
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37538 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-20 10:33:46 +00:00
efortuna@google.com 197267db85 Fix for link resolution of docgen
https://code.google.com/p/dart/issues/detail?id=17898

BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37137 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-09 21:46:22 +00:00
nweiz@google.com b52e1a8761 Attach source range information to parsed YAML nodes.
Also release yaml 1.0.0.

R=efortuna@google.com, rnystrom@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36937 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-03 20:33:29 +00:00
nweiz@google.com 35cd06d50c Use SpanScanner to emit better YAML parse errors.
R=efortuna@google.com, jmesserly@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36897 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-02 20:31:34 +00:00
efortuna@google.com dd56bcde7d Correctly handle case where we have a library outside of a package.
BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36795 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-29 17:50:49 +00:00
efortuna@google.com 7b9651d83e "Reverting 36776"
TBR=nweiz

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36786 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-29 15:34:33 +00:00
efortuna@google.com bc8cc3b1d7 Add versioning information for packages and the SDK.
BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36776 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 23:09:48 +00:00
kevmoo@google.com 9e0f6ee313 pkg/docgen: ensure parameter maps keep their key order
Review URL: https://codereview.chromium.org//285463002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36038 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 16:03:06 +00:00
efortuna@google.com 283770c857 Added error handling and a better error message if we fail to write output in docgen.
BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35984 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-09 17:28:40 +00:00
efortuna@google.com 619bfcb37f Add function parameter info in docgen.
BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35866 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-07 20:35:29 +00:00
rnystrom@google.com 5dd0a26730 Move allowTrailingOptions into ArgParser.
R=brianwilkerson@google.com, jmesserly@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35837 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-06 23:25:59 +00:00
efortuna@google.com f696ff46a1 Access parameter data in Annotations, as well as fixed export visibility
calculation.

BUG=
R=alanknight@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35768 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-05 21:31:30 +00:00
kevmoo@google.com d460d7d9f9 Use UnmodifiableMapView in compiler
Redo of https://code.google.com/p/dart/source/detail?r=35379
Which was reverted in https://code.google.com/p/dart/source/detail?r=35381

R=herhut@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35482 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-28 13:12:03 +00:00
kevmoo@google.com 862e9b046e pkg/docgen: fix type warnings
BUG= https://code.google.com/p/dart/issues/detail?id=18232
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35286 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 22:52:30 +00:00
kevmoo@google.com ff0a4d93bb pkg/docgen: update test for broken doc comment lookup under typedef
Related to https://code.google.com/p/dart/issues/detail?id=18352

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35282 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 20:34:34 +00:00
kevmoo@google.com 23c6d56238 pkg/docgen: using consistently ordered maps for caching
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35240 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 00:39:02 +00:00
efortuna@google.com 9140833cd1 Partial fix for Angular Annotations viewed in Docgen.
BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35236 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-21 23:42:39 +00:00
kevmoo@google.com a024b9a76a pkg/docgen: a bunch of cleanup
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35233 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-21 23:19:49 +00:00
kevmoo@google.com aa5d54f788 pkg/docgen: fixed type references within typedef doc comments
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35216 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-21 18:37:25 +00:00
kevmoo@google.com 07bc8e8bea pkg/docgen: fixed some references within typedef doc comments
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35191 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-18 23:46:38 +00:00