Commit Graph

70 Commits

Author SHA1 Message Date
johnniwinther@google.com 1f1ecff14d Handle @proxy classes in type checker.
BUG=http://dartbug.com/15049
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31011 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 09:34:25 +00:00
kustermann@google.com a943ae0ed3 Remove status file entries refering to non-existent files
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30989 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 15:18:24 +00:00
scheglov@google.com fb66f5d516 New analyzer snapshot.
Mainly to add support for the new options.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30960 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 19:43:15 +00:00
scheglov@google.com 0cd8cd4006 New analyzer snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30862 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 17:57:44 +00:00
scheglov@google.com 83a9ab7fcb Fix analyzer language status files.
TBR

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30209 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 21:29:27 +00:00
scheglov@google.com 9d8ce37bfe New analyzer snapshot.
Also insert empty lines between class and unit members.
Remove some more extra parentheses.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30203 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 19:33:57 +00:00
johnniwinther@google.com 43d31a5a78 Update status+test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29901 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 12:52:07 +00:00
johnniwinther@google.com 4b297d0819 Make test of malformed types a dynamic type error.
BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29897 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 12:28:39 +00:00
kasperl@google.com 7cd5977b62 Re-land "Search for main in the exported names of the main library, not in the library itself."
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29812 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 15:40:57 +00:00
kasperl@google.com 306f78c12b Revert "Re-land "Search for main in the exported names of the main library, not in the library itself.""
This reverts commit 2323a2ca0c702657021f0cb2b532402eafd13d49.

R=johnniwinther@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29810 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 15:27:51 +00:00
kasperl@google.com 660e5e5f15 Re-land "Search for main in the exported names of the main library, not in the library itself."
BUG=
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29809 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 14:48:52 +00:00
hausner@google.com c96bc29ab5 Compile time error if name is used before variable is declared
Implement proper semantics if a name has been referenced in a
block and later a variable with that same name is declared.

Fix library code that was wrong.

Add new language test, delete a couple of tests that are
outdated, file co19 bug 649.

Dart2js and dart2dart are not yet implementing these compile-time
errors.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29770 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 21:28:31 +00:00
scheglov@google.com d4359631f7 New analyzer snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29765 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 19:24:33 +00:00
rmacnak@google.com 9a41994d31 Handle metadata with qualified identifiers.
BUG=http://dartbug.com/11857
BUG=http://dartbug.com/14652
R=gbracha@google.com, hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29720 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 01:19:31 +00:00
kasperl@google.com d897d356a9 Update metadata syntax test to check for non-existing constants and type literals (see issue 14647).
R=bak@google.com, hausner@google.com, scheglov@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29667 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 12:57:32 +00:00
lrn@google.com c00d3584d2 Remove implicit_setter_test.
Implicit throwing setters for final fields were reverted from the spec.

R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29660 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 10:22:11 +00:00
johnniwinther@google.com 7efd78204a Fix the more specific relation.
BUG=http://dartbug.com/14358,http://dartbug.com/14362,http://dartbug.com/14364
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29446 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 13:19:08 +00:00
scheglov@google.com 9039835b60 New analyzer snapshot.
R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29384 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 19:46:48 +00:00
kustermann@google.com c76242a7b7 Remove passing tests in the status file for the analyzer in --checked mode
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29353 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 11:56:35 +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
johnniwinther@google.com 12acea6f99 Check const expressions for malformed types.
BUG=http://dartbug.com/14299
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29080 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 13:01:30 +00:00
hausner@google.com e7255e091a Do not generate a compile-time error if there is more than one catch-all clause
This includes catch clauses with malformed types, which are essentially
catch-all clauses.

The spec does not mandate such a compile-time error. (It probably did a long
time ago.)

Fixes issue 8601, 12159, 13019

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28999 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 15:44:28 +00:00
scheglov@google.com 9a411f83f0 Don't evaluate << because of possible overflow.
Applied same change to Dart version to fix crash.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28873 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 19:37:56 +00:00
scheglov@google.com 581b368515 New analyzer_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28831 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 22:14:19 +00:00
rmacnak@google.com 9a5bccfbe1 Also mark test for type variable name conflicts as failing on the analyzer.
Review URL: https://codereview.chromium.org//26755002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28414 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 20:20:48 +00:00
scheglov@google.com 59fd8f58c8 New analyzer_experimental snapshot.
1. "catch (Exception e)" is translated into "on JavaException catch (e)".
2. Java exceptions now extend JavaException.
3. MemberMap moved into resolver, because it is not a generic collection and has references to elements.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28296 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-06 05:11:15 +00:00
regis@google.com 5e817c182b It is not an error anymore to leave an instance final field uninitialized.
Fix issues 11054 and 12157.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28289 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-04 22:56:53 +00:00
hausner@google.com 942966ced4 Fix dartanalyzer status
Review URL: https://codereview.chromium.org//25908002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28236 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 18:36:37 +00:00
johnniwinther@google.com 2a375ea84f Update handling of exports.
BUG=http://dartbug.com/13750
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28214 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 12:47:53 +00:00
hausner@google.com 1ea4547a96 Disallow double in case clauses and const map literal keys
Implements the latest Spec decisions and clarifications.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28104 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 17:22:39 +00:00
scheglov@google.com 61abfa0ca9 Support for --no-hints in analyzer_experimental.
I did one more snapshot to pick up your latest changes.
I have to extract ErrorCode variables because of type model difference in Java vs. Dart.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28016 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 16:54:38 +00:00
scheglov@google.com 7ce03ef926 New analyzer_experimental snapshot.
There are couple small changes in analyzer itself:

1. AnalysisCache.entrySet() to return Collection instead of Set - it is expensive to fill actual Set in Dart - hash code, equals, etc. We know there are no duplicates.

2. Matcher in TODO scrapper - there are no start(i) in Dart, I have to change implementation to translate it accurately.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27889 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 16:02:19 +00:00
sgjesse@google.com a2865875f2 Update language.status
Add some more issue numbers. Rewrite some tests

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27193 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 12:37:31 +00:00
lrn@google.com 0b6479cdaf Change language/number_identifier_test to be correct.
Also make it more comprehensive.

BUG: http://dartbug.com/13014 http://dartbug.com/13015

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27187 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 10:28:29 +00:00
sgjesse@google.com 1f2051f88a Merge two static_final_field tests and rewrite a negative test to a multi-test
Removed negative static_final_field_negative_test.dart and created a
multi-test in static_final_field2_test.dart.

Changed throw7_negative_test.dart into a multi-test throw7_test.dart

More Expect.equals cleanup in scope_variable_test.dart.

Add more issue numbers as well.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27123 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 13:26:32 +00:00
sgjesse@google.com 0c6d6fb90e Update the tests testing the use of built in identifiers
Updated the actual list of built in identifiers as of the current spec (0.51).

Changed the names of the tests from pseudo_kw_* to built_in_identifier_*

Try to track the actual identifiers which are not working in dart2js.

R=ahe@google.com, kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27117 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 12:09:32 +00:00
sgjesse@google.com 6a02eca2d3 Merge two language/scope_ tests
R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27108 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 10:17:01 +00:00
sgjesse@google.com 4155070fe0 Rewrite negative test number_identifier_negative_test.dart to multi-test
R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27105 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 09:39:49 +00:00
sgjesse@google.com 3306b4ac10 Update language.status and rewrite some tests
Changed a number of negative tests to multi-tests

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27062 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 14:54:12 +00:00
scheglov@google.com 5f27a4f4ad java2dart improvements and new analyzer_experimental snapshot.
1. All enums extend Enum class.
2. Remove more unneeded parentheses.
3. Remove type arugments for types with all wildcards.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27020 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 19:01:22 +00:00
sgjesse@google.com fede338905 Update language.status and rewrite two tests
Added issue numbers

Changed two negative tests into mulit-tests.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26914 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 13:44:48 +00:00
scheglov@google.com 663530693f New analysis_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26876 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 16:30:24 +00:00
sgjesse@google.com af51aef20e Update a language test
Added expected static type warning for abstract method in concrete class

R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26869 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 14:17:25 +00:00
sgjesse@google.com 38f14476c1 Update language.status with issue numbers
Changed one test into a multi-test to inducate the actual failing lines.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26853 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 10:54:20 +00:00
sgjesse@google.com 90aaa28b99 Rewrite test language/constructor_negative_test to a multi-test
R=ahe@google.com
BUG=http://dartbug.org/11586

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26686 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 06:38:17 +00:00
sgjesse@google.com 550f3ab7f4 Add issue numbers to language tests status files
Moved VM specific tests to a separate directory

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26596 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 11:31:25 +00:00
sgjesse@google.com cf33b82c6c Update more test for assignment to final variables
This is a follow-up to
https://code.google.com/p/dart/source/detail?r=26519, as there where
more tests checking assignments to final variables. Changed the
negative tests to multi-tests for running with the analyzer(s).

The latest spec (0.51) says:

Attempting to assign to a final variable anywhere except in its
declaration or in a constructor header will cause a runtime error to
be thrown as discussed below. The assignment will also give rise to a
static warning.

R=ricow@google.com
BUG=7062, 11591, 12184

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26583 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 08:14:57 +00:00
kustermann@google.com 3f148045fb Removed status file entries refering to non-existent multitests
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26525 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 14:29:36 +00:00
sgjesse@google.com bab2500197 Update test for assignment to final variables
The latest spec (0.51) says:

Attempting to assign to a final variable anywhere except in its
declaration or in a constructor header will cause a runtime error to
be thrown as discussed below. The assignment will also give rise to a
static warning.

R=ahe@google.com
BUG=7062, 11591

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26519 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 13:15:19 +00:00
kustermann@google.com bc051d0a91 Remove entries in status refering to non-existent files
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26438 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 16:40:40 +00:00