Commit Graph

7 Commits

Author SHA1 Message Date
lrn@google.com eb9e33e328 Update documentation on .fromEnvironment. Make bool default be false.
I want more text, and examples of usage, alternative usage, etc.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29657 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 09:33:18 +00:00
sgjesse@google.com 36a67fa046 Implement fromEnvironment on bool, int and String
This implements const constructor fromEnvironment on bool, int and
String.

The VM have the added -Dname=value option to define the value for the
properties. All values are provided by using the -D - nothing is read
from the environment.

If the resulting value is null or - in the case of int.fromEnvironment
- not a number an ArgumentError is thrown.

This CL does not have any implementation for dart2js.

This is a continuation of the change
https://chromiumcodereview.appspot.com/24975002 by iposva@
BUG=
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29642 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 05:46:57 +00:00
lrn@google.com c03e58cd99 Add Object.hashCodeOf to get the default hashCode of an object.
BUG= http://dartbug.com/13404
R=floitsch@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27865 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 08:15:41 +00:00
lrn@google.com 4ba20d83f6 Small changes to make analyzer happy.
Bool class does not contain abstract method without being abstract.
Type parameter of linked list entry properly bounded, so it's a valid
type parameter for linked list link.
Missing default parameters values added to some StringSink methods.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26868 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 12:59:53 +00:00
rmacnak@google.com 8e50d89b10 Improve DartDocs for dart:core classes that may not be extended or implemented.
R=ahe@google.com, gbracha@google.com, kathyw@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26216 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 20:53:22 +00:00
srdjan@google.com d75a60f4af Remove unnecessary, performance degrading equality override in class bool.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25627 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 18:09:23 +00:00
tball@google.com 67530c6aa1 Added bool.hashCode patch.
BUG: 7244
Review URL: https://codereview.chromium.org//11557002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16011 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 00:59:05 +00:00