Commit Graph

34 Commits

Author SHA1 Message Date
lrn@google.com 047b32681d Create associated packages for the dart:collection and dart:async libs.
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31260 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 11:57:56 +00:00
kevmoo@j832.com 7f7ff63950 pkg/logging: expose static sorted const list of all levels
BUG= https://code.google.com/p/dart/issues/detail?id=15321
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30676 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 20:50:42 +00:00
lrn@google.com 33ec174278 Combine unmodifiable_collection package into collection_helpers.
Avoids some duplicated code, and makes everything much simpler.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30402 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:11:24 +00:00
sethladd@google.com 5f1c520cae add useful docs for logging
BUG=
R=kevmoo@j832.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29761 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 18:01:28 +00:00
lrn@google.com f0a1c922a2 Reapply "Remove @deprecated features."
R=scheglov@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29535 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 12:09:15 +00:00
lrn@google.com 7a76ad7834 Add @proxy to annotations.dart.
Remove package:meta

R=bak@google.com, brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29525 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 10:25:08 +00:00
lrn@google.com 57efa5da8c Revert "Remove @deprecated features."
There were more uses of the deprecated features.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29443 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 12:54:37 +00:00
lrn@google.com 72e1d263dc Remove @deprecated features.
R=alanknight@google.com, rnystrom@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29438 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 12:00:44 +00:00
kevmoo@j832.com 92e3661fa0 pkg/logging: added stackTrace support
Plus:

* don't expose mutable children collection from Logger
* remove superfluous field
* other tweaks

BUG=https://code.google.com/p/dart/issues/detail?id=14416
R=sethladd@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29324 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-27 17:38:45 +00:00
devoncarew@google.com b209a602f2 Add a toString() to LogRecord.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28317 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 18:04:47 +00:00
kathyw@google.com 210edb7a54 Update meta and logging library descriptions; tweak fixnum
R=mcampione@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26562 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 22:17:10 +00:00
lrn@google.com 1315656027 Make asBroadcastStream take two callbacks.
These callbacks will be called when the broadcast stream no longer
has any listeners, or when it gets a listener after having none.

The callback is provided with a StreamSubscription-like object where
it can pause/resume/cancel the underlying subscription on the original
stream.

BUG=http://dartbug.com/11289
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24776 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 13:02:02 +00:00
sigmund@google.com c89ab41bff add logging support for exceptions
BUG=
R=gram@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24246 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 19:43:00 +00:00
lrn@google.com faa7227cec Make new StreamController be async by default.
Change all instances, except some tests, to be sync still.
Rename Multiplex to Broadcast everywhere.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23453 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 06:07:39 +00:00
sethladd@google.com 8fd2c2e5ea add installation instructions to pkg packages
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21770 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 20:51:10 +00:00
floitsch@google.com 62d413ec91 Remove StreamController.broadcast.
Review URL: https://codereview.chromium.org//14136004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21499 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:08:17 +00:00
kevmoo@j832.com 9db4a1d02f pkg/logging: removed deprecated 'on' API
Review URL: https://codereview.chromium.org//12600033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20574 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 20:36:17 +00:00
dgrove@google.com 9bf5ff3f54 Make path to meta go through pkg/ , so that it's rewritten properly.
Review URL: https://codereview.chromium.org//12512008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20479 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 20:03:01 +00:00
sigmund@google.com d43f565f97 Don't use package: imports in logging until dartdoc/mirros support them.
Review URL: https://codereview.chromium.org//12380042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19270 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 00:32:14 +00:00
sigmund@google.com b9f616ec35 LoggerEvents get on -> Stream<LogRecord> get onRecord
Removed LoggerEvents, LoggerHandlerList, LoggerHandler

BUG=

Review URL: https://codereview.chromium.org//12334093
Patch from Kevin Moore <kevmoo@j832.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19187 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 00:05:06 +00:00
sigmund@google.com f937c3629b make dartdoc and editor happy
added type to Logger.level setter
added type to Logger.root

Review URL: https://codereview.chromium.org//12316126
Patch from Kevin Moore <kevmoo@j832.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19186 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 23:43:01 +00:00
lrn@google.com bbfe7b02dc Reapply "Make Comparable generic."
Avoid concurrent modification in dart2js.
Avoid crash in VM by not using self-referential type bound.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18667 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 10:29:44 +00:00
kasperl@google.com d4feeb4910 Revert "Make Comparable generic."
This reverts commit dd714db881a0ad63eaa1e5491e93dd8843eb5929.

R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18657 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 08:06:03 +00:00
lrn@google.com a0f22b77be Make Comparable generic.
It's now allowed to write "class X implements Comparable<X>" to make
X comparable only to X's. The argument type of Comparable<T>.compareTo
is now T.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18655 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 07:52:24 +00:00
floitsch@google.com fb7b9e3c5c Rename Date to DateTime.
BUG=http://dartbug.com/1424

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
gram@google.com afd6a79416 Update library syntax in pkg files.
Review URL: https://codereview.chromium.org//11362139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14646 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 18:52:40 +00:00
lrn@google.com a083c1a108 Removed IllegalAccessException and UnsupportedOperationException.
Both were converted to StateError.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14012 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 12:36:10 +00:00
ahe@google.com 6254729761 Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
This reverts r13961 and r13963.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com 50b5b6e1a8 Parts must start with 'part of'
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
floitsch@google.com 9074fd0178 Make hashCode a getter and not a method.
Review URL: https://codereview.chromium.org//11191078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13866 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-22 12:41:04 +00:00
jmesserly@google.com 42eb359010 fix warning in Logger
(setter type must be "void" or "Dynamic")

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13848 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 23:43:48 +00:00
lrn@google.com 37197c2553 Stop using the Hashable interface.
All objects have a hashCode method, so there is no need for a Hashable
interface.
The interface itself is retained for at least two weeks, to give time for
code to remove uses of it.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12955 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 13:07:54 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
rnystrom@google.com 8b5b96978b Move logging to the new package layout.
Review URL: https://codereview.chromium.org//10908227

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12293 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 02:05:15 +00:00