Commit Graph

3219 Commits

Author SHA1 Message Date
johnniwinther@google.com 5cacad7264 Report errors on duplicate export.
Review URL: https://chromiumcodereview.appspot.com//11360149

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14737 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 12:32:58 +00:00
scheglov@google.com 322c76d6a9 Issue 6560. Report error when generative constructor calls factory constructor.
http://code.google.com/p/dart/issues/detail?id=6560

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14685 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 15:49:38 +00:00
floitsch@google.com 6e371518ad Update status files.
Review URL: https://codereview.chromium.org//11362143

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14648 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 19:31:53 +00:00
johnniwinther@google.com d6185f99d5 Revert "Report errors on duplicate export."
This reverts commit r14641.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14644 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 18:02:43 +00:00
johnniwinther@google.com 092397ccc3 Report errors on duplicate export.
Review URL: https://codereview.chromium.org//11293148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14641 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:50:12 +00:00
johnniwinther@google.com 383419e4b0 Merge of ErroneousElement and ErroneousFunctionElement
Review URL: https://codereview.chromium.org//11275188

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14634 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:01:25 +00:00
ahe@google.com 8b9009efe7 Update status files
Review URL: https://codereview.chromium.org//11369118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14631 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 16:18:03 +00:00
ahe@google.com 03ebf05e22 Implement redirecting constructors.
Review URL: https://codereview.chromium.org//11365108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14630 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 15:32:39 +00:00
hausner@google.com 9347bb1ef0 Fix co19 test status
Review URL: https://codereview.chromium.org//11360112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14602 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 23:05:32 +00:00
hausner@google.com 99c505e9b3 Fix various inheritance bugs
Fields can be overridden by subclasses
A setter does not conflict with a method
Eliminate outdated tests

Fixes issue 6482
Review URL: https://codereview.chromium.org//11312095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14583 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 17:54:27 +00:00
ahe@google.com a5c54f719b Update dart2dart co19 status.
Review URL: https://codereview.chromium.org//11358115

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14569 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:58:54 +00:00
ahe@google.com 13a4b13f9a Update dart2js and dart2dart co19 status files.
Review URL: https://codereview.chromium.org//11363099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14560 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 11:35:56 +00:00
ahe@google.com c1cf8d357d Resolve redirecting factories.
Review URL: https://codereview.chromium.org//11230007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14558 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:55:23 +00:00
scheglov@google.com 1d310ff72c Report error for deprecated #library #import #source
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14535 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:21:20 +00:00
ngeoffray@google.com 6eb5463f93 Support checked mode for return type.
Review URL: https://codereview.chromium.org//11361060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14518 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:35:19 +00:00
karlklose@google.com 323d8f6a9c Support class and typedef literals as expressions.
For a class C, the expression 'C' returns the canonicalized instance of Type for this class. If C has type variables, they are instantiated with 'dynamic'.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14515 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:29:51 +00:00
hausner@google.com 95c79712da Make library, import, export, part pseudo-keywords
Resubmit cl 14446 after Ivan's keyword table fix.
Review URL: https://codereview.chromium.org//11367069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14500 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 20:30:08 +00:00
lrn@google.com d3a6c41136 Temporarily reintroduce IndexOutOfRangeError matcher in unittests.
For even more backwards compatibility, don't remove the matcher yet.
Also change inheritance structure to make catching RangeError with
"on IndexOutOfRangeException" work.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14456 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 09:04:18 +00:00
hausner@google.com e4880d6698 Revert cl 14446
Review URL: https://codereview.chromium.org//11293054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14448 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 00:19:48 +00:00
hausner@google.com 4c6b490ab8 Make library, import, export, part built-in identifiers
Review URL: https://codereview.chromium.org//11360051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14446 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:47:25 +00:00
lrn@google.com 7e6ae8ea09 Renaming IndexOutOfRangeException to RangeError.
It now extends ArgumentError.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14405 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 13:46:30 +00:00
ngeoffray@google.com d8958d5e51 Fix issue 6452: do not change a dynamic setter call to a field set in case the field is not assignable.
Review URL: https://codereview.chromium.org//11365030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14393 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 11:25:05 +00:00
asiva@google.com 89b85c0084 Update status file for dart2dart (issue 284).
Review URL: https://codereview.chromium.org//11366015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14368 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 20:13:12 +00:00
regis@google.com ec09038e82 Remove references to ObjectNotClosureException and ClosureArgumentMismatchException
from the VM (issue 6124).
These are replaced with NoSuchMethodError for now (work in progress).
Review URL: https://codereview.chromium.org//11312019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14362 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 18:13:12 +00:00
asiva@google.com ebbb7c4134 - Represent strings internally in UTF-16 format, this makes it
compatible with webkit and will allow for easy externalization of
  strings. One byte strings are retained for pure ASCII strings.
  (The language specification was changed recently to reflect this as
   follows "A string is a sequence of UTF-16 code units").
- Remove four byte string class and all references to it.
- Rename some of the string functions in Dart API to make them
  consistent and better describe the underlying functionality
  Dart_NewString => Dart_NewStringFromCString
  Dart_NewString8 => Dart_NewStringFromUTF8
  Dart_NewString16 => Dart_NewStringFromUTF16
  Dart_NewString32 => Dart_NewStringFromUTF32
  Dart_NewExternalString8 => Dart_NewExternalUTF8String
  Dart_NewExternalString16 => Dart_NewExternalUTF16String
  Dart_NewExternalString32 => Dart_NewExternalUTF32String
  Dart_StringGet8 => Dart_StringToUTF8
  Dart_StringGet16 => Dart_StringToUTF16
  Dart_StringToCString => Dart_StringToCString
  Dart_IsString8 => Removed
  Dart_IsString16 -> Removed
  Dart_StringToBytes -> Removed
  Dart_StringGet32 -> Removed
Review URL: https://codereview.chromium.org//11318018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14357 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 17:56:46 +00:00
lrn@google.com a8720a6d9c Change signature of noSuchMethod to take an InvocationMirror.
Requires VM and dart2js/dart2dart changes to work.

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

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14324 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 10:32:54 +00:00
ahe@google.com 372b20c4fb A method or accessor with empty body is implicitly abstract.
Review URL: https://codereview.chromium.org//11348037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14320 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 09:39:18 +00:00
smok@google.com daec50e5e8 [dart2dart] Support cosntructor redirects.
Review URL: https://codereview.chromium.org//11345031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14297 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-30 18:00:01 +00:00
hausner@google.com 5a51906fa3 Disallow 'dynamic' as type parameter name
Fixes issue 2492
Review URL: https://codereview.chromium.org//11343044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14296 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-30 17:45:36 +00:00
lrn@google.com 895d155ab1 Revert "Change signature of noSuchMethod to take an InvocationMirror."
TBR=ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14260 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-30 10:47:42 +00:00
lrn@google.com 4a24ddc1d4 Change signature of noSuchMethod to take an InvocationMirror.
Requires VM and dart2js/dart2dart changes to work.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14254 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-30 10:04:12 +00:00
hausner@google.com d4c5f9f05b Handle super call to unary operators
Fix issue 1288.
Review URL: https://codereview.chromium.org//11342027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14233 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-30 00:02:22 +00:00
scheglov@google.com 2e574c8c14 Issue 5887. Parts must start with 'part of'.
Second attempt.
Now only DartC changes, and status updates.
So, should not break anyone else.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14217 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 19:17:28 +00:00
smok@google.com 90b04cb483 [dart2dart] fix after https://codereview.chromium.org/11227007
Review URL: https://codereview.chromium.org//11267046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14216 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 19:07:41 +00:00
lrn@google.com 778b0dc5e5 Revert "Change signature of noSuchMethod to take an InvocationMirror."
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14199 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 14:07:10 +00:00
lrn@google.com 0bcd2f4f7b Change signature of noSuchMethod to take an InvocationMirror.
Requires VM and dart2js/dart2dart changes to work.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14198 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 13:34:58 +00:00
ahe@google.com 8e2a6290ce Update co19 to r420.
Review URL: https://codereview.chromium.org//11342006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14186 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 11:52:14 +00:00
johnniwinther@google.com 529e06e147 Status updated
Review URL: https://codereview.chromium.org//11340008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14179 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 09:43:01 +00:00
johnniwinther@google.com 0036a13f27 Handle type variable in static member.
Review URL: https://codereview.chromium.org//11229002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14175 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 09:20:35 +00:00
karlklose@google.com 6fa99dab20 Make unmatched static call a runtime error.
The runtime error message will be constructed using NoSuchMethodError.toString(), which prints "incorrect number of arguments passed to method", which may be a bit confusing for calls where the named optional arguments do not match, but we can emit a more precise message in the resolver.

BUG=http://code.google.com/p/dart/issues/detail?id=6217

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14172 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 08:08:32 +00:00
scheglov@google.com dce51bf910 Using 'interface' and 'abstract' for methods should produce error
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14165 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-27 16:22:18 +00:00
scheglov@google.com dbec5629e8 Issue 4289. Separate optional positional and named parameters
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14164 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-27 04:02:36 +00:00
scheglov@google.com 20feff4f95 Getter with parameters is error.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14161 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 23:36:23 +00:00
hausner@google.com feff694279 More fixes for super[]
Extend the LoadIndexedNode to also handle super[] and super[]=

Make sure super []= returns the value.
Handle side effects in index expression correctly.
Defer operator function resolution to the flow graph build phase.
Review URL: https://codereview.chromium.org//11267027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14157 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 22:31:49 +00:00
antonm@google.com 5bc0795784 Update suppressions.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14148 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 18:23:07 +00:00
floitsch@google.com 7041a6bbf1 Make methods in Stopwatch getters and rename to be more consistent.
Includes:
- Stopwatch.frequency.
- Stopwatch.elapsedInMs() -> Stopwatch.elapsedMilliseconds
- Stopwatch.elapsedInUs() -> Stopwatch.elapsedMicroseconds
- Stopwatch.elapsed() -> Stopwatch.elapsedTicks

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14140 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 14:25:23 +00:00
ahe@google.com 6e45bb5d42 Update co19 status for windows.
Review URL: https://codereview.chromium.org//11312003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14139 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 14:20:01 +00:00
ahe@google.com d32ad15b45 Update co19 status.
Review URL: https://codereview.chromium.org//11313006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14134 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 13:14:10 +00:00
ahe@google.com 4dee42c798 Update analyzer co19 status.
Review URL: https://codereview.chromium.org//11315007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14133 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 13:06:45 +00:00
ahe@google.com f70b9c70b7 Upgrade co19 to r412.
Review URL: https://codereview.chromium.org//11306006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14128 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 11:52:52 +00:00