Commit Graph

2071 Commits

Author SHA1 Message Date
sgjesse@google.com 264678ccf4 Update status file
Make correctly for both analyzers.

R=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29652 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 07:37:02 +00:00
sgjesse@google.com c38de04d0c Change dart:io Platform.script to return a Uri.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29651 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 07:29:01 +00:00
johnmccutchan@google.com 3f95f0894e Mark uint32x4_list as crashing on SIMMIPS
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29649 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 07:07:33 +00:00
sgjesse@google.com f97b697ff9 Update status file
Analyzer cannot deal with the fromEnvironment const constructors.

R=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29646 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 07:04:22 +00:00
johnmccutchan@google.com 8a0fd8ce4d Add Uint32x4List to typed_data
R=asiva@google.com, srdjan@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29639 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 04:57:38 +00:00
floitsch@google.com 7006de6f23 Remove deprecated parts of dart:async.
Attempt to fix most uses of the deprecated features.

R=floitsch@google.com, nweiz@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29628 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:24:29 +00:00
whesse@google.com 4f08151090 Revert "Change dart:io Platform.script to return a Uri."
This reverts r29619 and r29624.  The changes look fine on the buildbot,
but need review before adding to the repository.

BUG=

TBR=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29627 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:17:37 +00:00
regis@google.com 587e9186f1 Second attempt at fixing analyzer buildbot redness.
Review URL: https://codereview.chromium.org//50493013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29626 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 01:51:20 +00:00
whesse@google.com cb0110350a Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with the new value.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29619 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 01:08:11 +00:00
regis@google.com 3fa7a61efc Implement latest spec changes regarding malformed types (see issue 14006):
- a malformed type used in a is, as, or catch type test results in a dynamic
  type error being thrown.
- a malformed type is not mapped to dynamic anymore.

For now, this applies to type tests in checked mode as well, but discussion is
still on-going.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29608 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 23:30:32 +00:00
rmacnak@google.com 4f580969d8 Tests and docs for instanceMembers, staticMembers, toplevelMembers.
BUG=http://dartbug.com/14632
BUG=http://dartbug.com/14633
R=ahe@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29593 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 22:09:54 +00:00
scheglov@google.com 890aeb7afa Issue 14524. Support for function type alias as a type literal.
https://code.google.com/p/dart/issues/detail?id=14524

R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29585 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 20:57:50 +00:00
rmacnak@google.com de5ab09605 Implement ObjectMirror.[] the VM.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29578 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 19:02:46 +00:00
scheglov@google.com 9903368cef Issue 14580. Fix for extra type arguments applying.
https://code.google.com/p/dart/issues/detail?id=14580

R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29571 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 17:50:22 +00:00
zarah@google.com 537464fb50 Revert "Substitute types in generic superclasses and interfaces."
This reverts commit r29545.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29553 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 15:18:52 +00:00
ahe@google.com 36e2df1a1d Mirrors overhaul.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29551 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 14:58:58 +00:00
zarah@google.com ca06578fa2 Substitute types in generic superclasses and interfaces.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29545 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 14:01:28 +00:00
lrn@google.com 41ff075e31 Remove deprecated dart:utf library.
BUG= http://dartbug.com/12843
R=fschneider@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29537 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 12:25:02 +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
ajohnsen@google.com 94cd12a7eb Update analyzer status-file to match recent sdk fixes.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29523 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 09:55:29 +00:00
lrn@google.com 72e6685c6a Change and documentat how completer handles futures.
Completer.complete changes signature to accept 'var' and chain if the
argument is a future.
Completer.completeError throws if error is a future or null.
Documentation updated to match.
Fix error in implementation of completeError which dropped listeners when
chained. If the chained-to future is not a _Future, the listeners cannot
be forwarded.

BUG= http://dartbug.com/14211 http://dartbug.com/14212 http://dartbug.com/14435
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29518 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 09:22:29 +00:00
scheglov@google.com 6cbe42976e Issue 14580. Fix for Source in which problem is reported.
https://code.google.com/p/dart/issues/detail?id=14580

Now we correctly report problem in list.dart:331

R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29499 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 22:24:45 +00:00
rmacnak@google.com 0abc881d9e Mirror API removals: async invocations, mirrorSystemOf(port), Mirror.mirrors.
R=ahe@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29492 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 21:14:19 +00:00
rmacnak@google.com d836e018c4 Add missing coverage for generics properties of dynamic and void. Fix reflectType(dynamic) in dart2js.
R=ahe@google.com, gbracha@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29455 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 16:35:36 +00:00
lrn@google.com 17e3cc1928 Update some succeeding analyzer tests.
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29436 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 11:42:14 +00:00
whesse@google.com 3b54950144 Remove dart:platform library.
This reverts commits r29154, r29244, r29251, r29268, and r29272.
The dart:io Platform class will not be moved to a dart:platform library.

R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29435 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 11:33:34 +00:00
lrn@google.com c0bbe6e388 Expose the cancelOnError in the StreamController.addStream.
Type tests, so this would have been caught.

R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29434 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 11:28:29 +00:00
lrn@google.com 338c31bd6d Revert "Make Analyzer expect a compile time error where none exist."
Review URL: https://codereview.chromium.org//50143004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29432 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 10:38:40 +00:00
lrn@google.com fcd4ea1241 Make Analyzer expect a compile time error where none exist.
It seems most of the async library is suffering from this.

R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29427 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 10:06:07 +00:00
kustermann@google.com 0456d4136b Run the analyzer on dart files under sdk/ -- even in sdk/_internal, if not ending with _test.dart
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29420 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 09:02:14 +00:00
lrn@google.com 5b0ac43e80 Fix bugs in StreamController.addStream.
Add optional 'cancelOnError' to addStream method. It still defaults
to true.
Resume the added stream when adding a listener (14332).
Handle cancel-on-error correctly, so the future completes as well (14334).

BUG= http://dartbug.com/14332 http://dartbug.com/14334
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29419 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 08:59:52 +00:00
rmacnak@google.com 56ce946cbf Re-triage mirror test failures on the analyzer.
R=kustermann@google.com, regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29407 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 00:15:57 +00:00
rmacnak@google.com bcb8707fcd Test reflecting on an object that implements Function but has no call method.
BUG=http://dartbug.com/13957
R=asiva@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29374 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 17:25:47 +00:00
kustermann@google.com ce4f0aeab6 Mark analyze_library/lib/html/html_common/lists as flaky
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29363 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 15:04:17 +00:00
kustermann@google.com cf822a851a test.py: Run the analyzer on all dart files in the sdk.
BUG=http://dartbug.com/13024
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29362 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 14:45:59 +00:00
lrn@google.com 4e69511eac Make Stream.fromIterable only accept a single listen call.
BUG= http://dartbug.com/13722
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29357 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 12:18:00 +00:00
kustermann@google.com 94ebff2225 Bugfix in test.dart, adding of specialized test outcomes for analyzer
This CL will:
 - fix a bug in the legacy AnalyzerCommandOutputImpl class (in certain cases
   we did not report that the analyzer was missing a warning).
 - make the outcome of running the analyzer on a test be one of:
   * CompileTimeError
   * MissingCompileTimeError
   * StaticWarning
   * MissingStaticWarning
 - Make status file updates using the new Expectation markers
 - Remove support for '@static-clean':
     Previously running the analyer on a test could either result in
     'Pass' or in 'Fail'. The '@static-clean' annotation has been used
     as a (poor) mechanism to distinguish between errors and warnings.
     Having the 4 markers mentioned above means we can remove '@static-clean'
 - Remove 100 lines of rotted legacy code in our testing scripts.
 - Make a status file entry for every test that has analyzer errors or warnings

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29350 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 10:39:38 +00:00
vsm@google.com 00b5e9ae1f Fix uri_test status for win/dartium
TBR=whesse@google.com

BUG=14504

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29326 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-27 17:53:32 +00:00
rmacnak@google.com 28ff5031e9 Remove now-prohibited default values from optional parameters of redirecting constructors in mirror tests.
BUG=http://dartbug.com/14285
BUG=http://dartbug.com/14472
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29300 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 23:21:25 +00:00
regis@google.com e9b01ccf7b Disallow explicit parameter default values in redirecting factory (issue 13662).
Add language test.
Fix usage in core lib.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29298 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 23:02:48 +00:00
floitsch@google.com ffccd42cae Update status files.
Review URL: https://codereview.chromium.org//38563003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29285 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 20:47:52 +00:00
whesse@google.com d20c5a3f4c Deprecate dart:io Platform, replaced by dart:platform.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29272 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 19:30:56 +00:00
floitsch@google.com 6a72655d1b Very simple version of Isolates.
R=ajohnsen@google.com, iposva@google.com, kasperl@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29271 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 19:23:00 +00:00
whesse@google.com 251e56f299 dart:platform | Remove isWindows, isLinux, isAndroid, isMacOS from dart:platform.
BUG=
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29268 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 18:25:56 +00:00
rmacnak@google.com 5963f11d75 dart2js: The name of a library without a library declaration is the empty string.
BUG=http://dartbug.com/10580
R=gbracha@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29263 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 17:16:10 +00:00
rmacnak@google.com 8ee11af36f Add LibraryMirror.declarations and ClassMirror.declarations to the API and both implementations.
Fix bug where partially unmangled names were used in constructor names.

Fix bug where type variables were considered static.

R=gbracha@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29261 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 17:05:49 +00:00
scheglov@google.com ab4a7a15d1 New analyzer_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29260 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 16:55:54 +00:00
kmillikin@google.com 85f1190ebf Mark lib/mirrors/hierarchy_invariants_test as slow on drt.
BUG=https://code.google.com/p/dart/issues/detail?id=14449
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29257 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 15:58:21 +00:00
whesse@google.com b276dc3749 dart:platform | Fix isolate_test on Dartium.
Change lib/platform/isolate_test to use package:expect instead of package:unittest, so spawnFunction will work on Dartium.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29251 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 13:42:16 +00:00
floitsch@google.com 930cf81a5a Fix indentation.
Review URL: https://codereview.chromium.org//44113003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29250 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 13:08:43 +00:00