Commit Graph

1047 Commits

Author SHA1 Message Date
scheglov@google.com 5bb176d2d1 Issue 8132. Suppress INFO problems in SDK.
http://code.google.com/p/dart/issues/detail?id=8132

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18362 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 01:08:14 +00:00
floitsch@google.com bbbe0c382d Allow ambiguous Expect and ExpectException imports.
This patch temporarily allows Expect to come from core and from any other library without (I wanted to make the CL public reporting an error (or warning).
Once everyone (including co19) has migrated I will revert this CL.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18318 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 17:59:52 +00:00
scheglov@google.com d4abbe1355 Getter and setter methods can share name.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18306 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 05:44:16 +00:00
scheglov@google.com c2b18c46b2 Issue 8426. Ignore depecated warnings in DartCompilerListenerTest.
http://code.google.com/p/dart/issues/detail?id=8426

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18257 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 16:09:08 +00:00
floitsch@google.com dd28b0e76a Disable tests for dartc.
Review URL: https://codereview.chromium.org//12223051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18246 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 11:42:06 +00:00
floitsch@google.com e1efa71761 Hide collection-dev library.
Committed: https://code.google.com/p/dart/source/detail?r=18167
Reverted: https://code.google.com/p/dart/source/detail?r=18169

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18172 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-06 15:11:47 +00:00
scheglov@google.com 5bf69f1a83 Ignore output folders.
R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17818 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 23:50:32 +00:00
scheglov@google.com 018e8cca32 Issue 8169. Type inferred from 'query' is 'inferred exact'.
http://code.google.com/p/dart/issues/detail?id=8169

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17795 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 18:37:17 +00:00
scheglov@google.com 368d8d1b5c Issue 8027. Disallow cyclic mixins.
http://code.google.com/p/dart/issues/detail?id=8027

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17664 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 22:47:10 +00:00
scheglov@google.com d9605fe9ef Issue 8051. Make extended exit codes optional.
http://code.google.com/p/dart/issues/detail?id=8051

Unfortunately testing framework expects exactly 0 and 1.
So, I've made 0/1/2 exit codes optional.

Phil, FYI

R=devoncarew@google.com,pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17629 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 04:11:12 +00:00
scheglov@google.com 312cb765fe Issue 8108. Don't record 'deprecated' warnings in integration test.
http://code.google.com/p/dart/issues/detail?id=8108

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17625 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 01:24:27 +00:00
scheglov@google.com be31b47690 Issue 8051. dart_analyzer return codes on errors
http://code.google.com/p/dart/issues/detail?id=8051

R=devoncarew@google.com,whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17622 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 00:47:48 +00:00
blois@google.com 3c4764e13b Tweaking analyzer test to ignore dart:html deprecation warnings.
I opened bug #8108 to track this.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17598 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 21:05:19 +00:00
scheglov@google.com 321bcf58e4 Issue 7597. Use foo= when setter requested, even if there is method foo().
http://code.google.com/p/dart/issues/detail?id=7597

Language/07_Classes/3_Setters_A04_t04
Language/07_Classes/4_Abstract_Instance_Members_A02_t01
are not changed because they are part of huge list of tests which promis to don't have static type errors, but have them.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17520 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 05:15:39 +00:00
scheglov@google.com cc4b22ea10 Issue 8059. Disallow mixing in classes that use 'super' from any member.
http://code.google.com/p/dart/issues/detail?id=8059

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17518 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 01:00:29 +00:00
scheglov@google.com 1bf84876fc Issue 7598. Skip metadata when parse directives for LibraryUnit.
http://code.google.com/p/dart/issues/detail?id=7598

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17485 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 18:08:47 +00:00
scheglov@google.com 06a378f5dd Issue 7605. Check separately getters and setter implementation when check for abstratc members.
http://code.google.com/p/dart/issues/detail?id=7605

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17482 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 17:56:19 +00:00
scheglov@google.com e61663d00e Issue 7633. Report error when instance field is accessed from factory constructor.
http://code.google.com/p/dart/issues/detail?id=7633

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17479 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 17:45:41 +00:00
scheglov@google.com b1bdb27a12 Issue 7802. Fix for redundant casts.
http://code.google.com/p/dart/issues/detail?id=7802

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17476 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 17:33:57 +00:00
scheglov@google.com b806f5f3f9 Issue 7884. Use UTF-8 for output.
http://code.google.com/p/dart/issues/detail?id=7884

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17475 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 17:31:47 +00:00
scheglov@google.com 761ea9993f Issue 8025. Disallow mixing in classes that have constructors.
http://code.google.com/p/dart/issues/detail?id=8025

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17473 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 17:26:46 +00:00
scheglov@google.com 76771f343e Issue 8006. Allow abstract modifier for typedef mixin applications.
http://code.google.com/p/dart/issues/detail?id=8006

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17429 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 22:39:32 +00:00
scheglov@google.com 23bf0056b3 Issue 8022. Report compile-time error when using mixing with not Object superclass.
http://code.google.com/p/dart/issues/detail?id=8022

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17428 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 22:28:42 +00:00
scheglov@google.com 804db39323 Issue 7980. Report problem when type 'dynamic' is shadowed.
http://code.google.com/p/dart/issues/detail?id=7980

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17425 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 21:12:12 +00:00
scheglov@google.com d8d842ffe1 Issue 8038. Don't report 'is not a function type' if class has 'noSuchMethod'.
http://code.google.com/p/dart/issues/detail?id=8038

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17424 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 21:09:28 +00:00
danrubel@google.com fd96d93fa9 fix http://code.google.com/p/dart/issues/detail?id=7999
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17364 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 16:55:12 +00:00
devoncarew@google.com 50d731bd00 Rev the version of apache ant in third_party to 1.8.4. This will fix an issue with
windows build failures not being reported correctly (older versions of ant didn't 
properly return process eit codes). It will also let us use some newer features of
ant.
Review URL: https://codereview.chromium.org//11973012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17228 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 17:56:34 +00:00
messick@google.com 16310f7a09 Add support for mixins to code completion.
Review URL: https://codereview.chromium.org//11824043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16890 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 22:06:14 +00:00
scheglov@google.com 82f1c72f92 Initial support for mixins in dartc.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16864 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 17:13:02 +00:00
scheglov@google.com 954a07bf60 Switch 'default' is allowed to have fall-through
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16740 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:37:49 +00:00
scheglov@google.com 24b0b71035 Issue 7671. Type of field accessed using inferred type has same type quality.
http://code.google.com/p/dart/issues/detail?id=7671

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16658 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 22:57:32 +00:00
scheglov@google.com 63d5737d74 Issue 6578. Move 'getter/setter static mismatch' into type problems
http://code.google.com/p/dart/issues/detail?id=6578

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16650 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 22:12:29 +00:00
scheglov@google.com 244a18ff6a Fix for renaming named constructor reference in 'super' invocation.
R=messick@google.com,pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16468 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-23 02:35:10 +00:00
scheglov@google.com 1b5865ea38 Fix for CCE when super() is used outside of constructor (and class at all)
From feedback error log.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16467 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-23 02:02:55 +00:00
scheglov@google.com 69eb9c8c9c Issue 7532. Fix for NPE in SemanticHighlightings
http://code.google.com/p/dart/issues/detail?id=7532

R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16465 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-22 02:02:15 +00:00
scheglov@google.com 642b8dfd3c Issue 3223. Don't report warning when call variable with not-function inferred type.
http://code.google.com/p/dart/issues/detail?id=3223

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16356 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 03:18:24 +00:00
devoncarew@google.com b5131437f5 Protect against concurrent modification exceptions in a new version of guava.
Review URL: https://codereview.chromium.org//11644028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16349 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 22:37:16 +00:00
devoncarew@google.com b2967054a7 Fix 2 failing tests on windows.
Remove 4 failing (and obsolete) tests on windows.
Enable proper reporting of junit test failures for windows.
Review URL: https://codereview.chromium.org//11638015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16333 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 18:21:38 +00:00
scheglov@google.com a3dcd4e8f8 Issue 7469. Report error if type appears in for extends and implements clauses
http://code.google.com/p/dart/issues/detail?id=7469

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16282 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:49:12 +00:00
scheglov@google.com 0abc92dae5 Tweak to support 'dart.core' as core library name.
Needed to commit again https://codereview.chromium.org/11419032/

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16278 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:11:20 +00:00
devoncarew@google.com 9743106bba Fix for a file encoding isuse in DartAnnotation.java.
https://code.google.com/p/dart/issues/detail?id=7431
Review URL: https://codereview.chromium.org//11606018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16264 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 17:30:58 +00:00
devoncarew@google.com e02e973635 Fix one more spaces in path problem with dart_analyzer.
Review URL: https://codereview.chromium.org//11572054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16216 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 17:40:59 +00:00
scheglov@google.com 2c93012cc4 Issue 6971. Don't report error for using built-in identifier as part of parameterized type.
http://code.google.com/p/dart/issues/detail?id=6971

It seems that this is official position of Gilad, so I just do what is he thinks is right.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16180 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 21:24:38 +00:00
devoncarew@google.com f1d18492de Fix a spaces-in-path problem with the dart_analyzer.bat script.
Add another place where we have to set target and source when compiling dart_analyzer.
Review URL: https://codereview.chromium.org//11583003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16178 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 19:31:28 +00:00
scheglov@google.com 47346c8fa4 Issue 7093. Support for inlining function references.
http://code.google.com/p/dart/issues/detail?id=7093

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16170 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 17:54:26 +00:00
devoncarew@google.com 592c46726f Ensure dart_analyzer is built to run on a 1.6+ VM.
Review URL: https://codereview.chromium.org//11570015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16147 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 02:06:32 +00:00
scheglov@google.com 7ed0ec0e3d Issue 7373. Fix for marking abstract methods as overriding themselves.
http://code.google.com/p/dart/issues/detail?id=7373

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16143 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 22:25:49 +00:00
scheglov@google.com 4d1840ce18 Issue 6974. Report warning when arguments are given for 'dynamic' or type variable.
http://code.google.com/p/dart/issues/detail?id=6974

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16135 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 19:12:39 +00:00
scheglov@google.com 694b17e439 Issue 6971. Fixes for using built-in identifier as import prefix.
http://code.google.com/p/dart/issues/detail?id=6971

Only first part of issue.
I don't agree that code like this is valid:
   abstract<dynamic> v;

I think "abstract" here is still type annotation, so error should be reported.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16086 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 01:16:41 +00:00
scheglov@google.com 3d808f8e63 Issue 7271. If class has method call() with type F, class should be considered as subtype of function type F
http://code.google.com/p/dart/issues/detail?id=7271

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16058 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 20:02:51 +00:00