Commit Graph

25 Commits

Author SHA1 Message Date
lrn@google.com 22309b260c Remove NullPointerException.
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15136 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 09:21:52 +00:00
lrn@google.com 0c8dce77f1 Revert "Remove NullPointerException."
Crashes in the x64 VM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15065 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 09:59:59 +00:00
lrn@google.com e211c2f0ee Remove NullPointerException.
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15061 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 08:51:49 +00:00
lrn@google.com 2208fcd208 Change NotImplementedException to UnimplementedError.
Retain a NotImplementedException type for backwards compatibility.
This class will be removed soon.
The constructor of UnimplementedError is currently const in order to
support the NotImplementedException. That will be fixed too.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14467 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 13:18:37 +00:00
ahe@google.com 884734f677 Revert "remove text editor plugins, they are now on github"
This reverts revision 14231.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14348 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 15:50:22 +00:00
sethladd@google.com 09ac607b20 remove text editor plugins, they are now on github
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14231 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 23:15:26 +00:00
lrn@google.com b8b5632148 Convert NoMoreElementsException and EmptyQueueException to StateError.
Review URL: https://codereview.chromium.org//11269045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14122 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 08:28:33 +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
lrn@google.com bc7f07ae86 Move ObjectNotClosureException and ClosureArgumentMismatchException to patch file.
They are no longer available in the core library, and are only used by the VM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13992 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 06:17:21 +00:00
lrn@google.com aa78cf0c87 Remove unused WrongArgumentCountException.
Review URL: https://codereview.chromium.org//11236020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13863 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-22 11:52:48 +00:00
lrn@google.com 89f5daea9e Rename OutOfMemoryException to OutOfMemoryError.
This is a reapply with missing status file changes.

TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13822 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 14:01:24 +00:00
kasperl@google.com f7a56d3f70 Revert "Rename OutOfMemoryException to OutOfMemoryError."
This reverts r13818.

TBR'ed.

R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13820 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 13:11:15 +00:00
lrn@google.com 58f3453267 Rename OutOfMemoryException to OutOfMemoryError.
Also move ExceptionImplementation to core.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13818 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 12:20:52 +00:00
pquitslund@google.com 180c097241 Vim syntax highlighting patches (dartbug.com/5568).
(Submitted by srackham.)

Adds multiline string hightlighting; adds new
syntaxes and deprecates old ones.

- Added: dartMultilineString, dartRawMultilineString

- Updated: new library and raw string syntaxes.

- Changed: string highlighting follows Dart Editor and normative
  conventions i.e.  hightlight entire string literal (don't exclude
    quotes).

- Deprecated (highlighted Todo and named like *_DEPRECATED):
  * old library and raw string syntaxes
  * Dynamic interface (added dynamic type keyword)
  * BadNumberFormatException (added FormatException)
Review URL: https://codereview.chromium.org//11085011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13495 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 20:26:31 +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
lrn@google.com f52c24b62f Rename NoSuchMethodException to NoSuchMethodError.
Moved NoSuchMethodError to errors.dart.
No changes in co19 tests, but test status updated.

Review URL: https://chromiumcodereview.appspot.com//10909166

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12172 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 09:52:25 +00:00
pquitslund@google.com aa6b0540c2 Vim support for 'external'.
Review URL: https://chromiumcodereview.appspot.com//10843054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10190 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 18:31:58 +00:00
jmesserly@google.com 1d9b213866 Vim syntax updates: highlight dart core interfaces
https://github.com/dart-lang/dart/pull/5

Highlight all interfaces listed on the dart:core page:
http://api.dartlang.org/dart_core.html

Thanks to Ajnasz for this change!

Review URL: https://chromiumcodereview.appspot.com//10207025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6916 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 23:47:02 +00:00
jmesserly@google.com 956715b105 Updated VIM bindings, thanks to Ladicek!
https://github.com/dart-lang/dart/pull/2

Review URL: https://chromiumcodereview.appspot.com//10166019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6816 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 23:01:06 +00:00
alexeif@google.com 0a3383c963 Add operator keyword to vim syntax.
Review URL: http://codereview.chromium.org//8954011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2466 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 13:51:44 +00:00
alexeif@google.com 7fd3f3d2f6 Tweaks to string escapes. Added raw string literals.
Review URL: http://codereview.chromium.org//8437100

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1248 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 13:03:16 +00:00
alexeif@google.com c673b4a335 Fix hilighting of string interpolation and several operators.
Review URL: http://codereview.chromium.org//8432002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1003 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 12:02:44 +00:00
alexeif@google.com 029f5029e9 Add abstract keyword.
Review URL: http://codereview.chromium.org//8359003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@687 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:48:48 +00:00
dgrove@google.com 6b6b28e065 Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 05:34:19 +00:00