Commit Graph

725 Commits

Author SHA1 Message Date
brianwilkerson@google.com cdaf30bda9 Stop reporting an error in parts that contain a part of directive
Review URL: https://chromiumcodereview.appspot.com//10827453

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11092 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 20:19:10 +00:00
scheglov@google.com f2956adcad Support for inferring SelectElement from 'select' tag
R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11086 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:58:07 +00:00
scheglov@google.com cc287b555b Issue 4632. Resolve all units before using next phase.
http://code.google.com/p/dart/issues/detail?id=4632

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11085 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:55:08 +00:00
keertip@google.com b573f1a5ee fix build test failure (TBR)
Review URL: http://codereview.chromium.org//10825477

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11067 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:06:52 +00:00
keertip@google.com b937a0ee53 SystemLibraryManager refactor - to seperate package and sdk library functionality
Review URL: http://codereview.chromium.org//10828394

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11062 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:38:52 +00:00
scheglov@google.com 61f7296380 Enhance 'Create Method' Quick Fix.
1. Support for creating methods in classes, not just top-level functions.

2. Show suggestions for parameter names.

3. Show suggestions for parameter types.

R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10988 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 17:02:49 +00:00
brianwilkerson@google.com 105ab90354 Fix for issue 4470
Review URL: https://chromiumcodereview.appspot.com//10855247

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10983 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 15:52:28 +00:00
scheglov@google.com 97ad6c17e5 Set type for variables and type nodes
We need this information in several places of the Editor.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10966 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 14:10:44 +00:00
scheglov@google.com 7e21fbac25 Issue 4544. Report only unit URI, without URI of library.
http://code.google.com/p/dart/issues/detail?id=4544

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10921 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 20:35:24 +00:00
brianwilkerson@google.com ab73bc7a40 Add support for metadata annotation syntax (issue 4056)
Review URL: https://chromiumcodereview.appspot.com//10860012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10915 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 18:38:24 +00:00
scheglov@google.com acca1aaf61 Issue 4543. Use complete Resolver before constants analyzer
http://code.google.com/p/dart/issues/detail?id=4543

This allows us to use resolved Elements for all nodes, without duplicating Resolver functionality.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10902 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 15:58:11 +00:00
scheglov@google.com 3e8b779272 Issue 4289. Test that arguments are bound to positional, optional and named parameters.
It just works, no real changes in TypeAnalyzer required.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10900 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 14:32:55 +00:00
scheglov@google.com ca5e0d567c Issue 4553. Any constant is valid for 'case'.
Also check for 'operator =='.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10899 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 14:28:48 +00:00
scheglov@google.com e5ffdfa735 'Inline Method' refactoring
Support for methods/functions.
Support for bodies with several statements.

R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10866 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 00:48:51 +00:00
brianwilkerson@google.com a16f04fac2 Rename DartMetadata in preparation for supporting real metadata
Review URL: https://chromiumcodereview.appspot.com//10829362

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10862 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:47:18 +00:00
regis@google.com d9b0276a4c Require two type arguments for map literals (issue 4522).
Spec has been changed back.
VM temporarily accepts a single type argument and emits a warning.
Update tests, dart2js source, dartdoc, etc...
Disable failing co19 tests (issue 175 filed).
Review URL: https://chromiumcodereview.appspot.com//10854191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10861 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:44:32 +00:00
brianwilkerson@google.com a7e2599cfe Fix for issue 3550
Review URL: https://chromiumcodereview.appspot.com//10857041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10856 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:06:29 +00:00
brianwilkerson@google.com 5eb5f42a24 Support new optional parameter syntax (issue 4289)
Review URL: https://chromiumcodereview.appspot.com//10837286

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10832 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:38:40 +00:00
scheglov@google.com a7fec28e05 Issue 4518. Use inferred types to check if type of argumetn is assignable to the type of parameter
http://code.google.com/p/dart/issues/detail?id=4518

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10825 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 14:38:25 +00:00
scheglov@google.com 4b42faaa5f Issue 4394. Consider type arguments when build super types list
http://code.google.com/p/dart/issues/detail?id=4394

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10815 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 13:32:17 +00:00
scheglov@google.com 4a498a6981 Issue 4523. Analyzer should require two type arguments for map literals
http://code.google.com/p/dart/issues/detail?id=4523

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10814 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 13:30:55 +00:00
ager@google.com 37ae98110a Reapply "Sharing of sources for corelib date implementation between VM
and dart2js".

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10799 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 08:00:02 +00:00
scheglov@google.com 121ef9fdaa Issue 4048. Support for revised library/import syntax
http://code.google.com/p/dart/issues/detail?id=4048

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10775 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 22:39:39 +00:00
brianwilkerson@google.com 53b93f854b Support unary minus operator (issue 3767)
Review URL: https://chromiumcodereview.appspot.com//10834334

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10745 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 15:50:46 +00:00
scheglov@google.com 2d94944c8d Issue 4460. Mark inferred type variable in for-in loop as inferred
http://code.google.com/p/dart/issues/detail?id=4460

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10691 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 23:32:29 +00:00
brianwilkerson@google.com ee09a19368 Finalize support for new getter syntax, per issue 3607
Review URL: https://chromiumcodereview.appspot.com//10836252

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10682 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:03:30 +00:00
brianwilkerson@google.com d29d114054 Fix bugs in parser and update tests to use new directive syntax. Note that the changes in TypeAnalyzer exist to keep the tests running and are probably something you need to fix.
Review URL: https://chromiumcodereview.appspot.com//10825346

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10678 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 20:47:42 +00:00
scheglov@google.com a872467e43 Issue 4383. Calling field without setter should generate problem
http://code.google.com/p/dart/issues/detail?id=4383

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10649 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:25:22 +00:00
scheglov@google.com 5488dbbb0f Issue 4294. Const constructor cannot call methods
http://code.google.com/p/dart/issues/detail?id=4294

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10647 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:01:56 +00:00
scheglov@google.com b056277534 Issue 3562. Analyzer should not warn about shadowing
http://code.google.com/p/dart/issues/detail?id=3562

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10646 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:00:00 +00:00
brianwilkerson@google.com 9a34c8f5bd (TBR) Fix the build
Review URL: https://chromiumcodereview.appspot.com//10855130

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10601 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 20:20:10 +00:00
brianwilkerson@google.com 7692794a4a Initial parser changes for the new directive syntax
Review URL: https://chromiumcodereview.appspot.com//10832274

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10599 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 20:01:43 +00:00
scheglov@google.com b97168a038 Issue 4410. Infer types using 'assert' statement
http://code.google.com/p/dart/issues/detail?id=4410

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10579 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 14:56:40 +00:00
scheglov@google.com d10c9e8a2c Issue 4347. Report error if ++/-- is applied to final variable
http://code.google.com/p/dart/issues/detail?id=4374

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10578 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 14:55:08 +00:00
scheglov@google.com 20b1510e1d Fix for typo
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10577 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 14:46:49 +00:00
scheglov@google.com 929f158657 Issue 3800. Calling an undefined constructor via new is a warning, not an error
http://code.google.com/p/dart/issues/detail?id=3800

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10531 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 21:04:47 +00:00
brianwilkerson@google.com c395b13644 Fix for issue 4429 - remove #resource directive
Review URL: https://chromiumcodereview.appspot.com//10827286

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10530 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 21:03:36 +00:00
scheglov@google.com 89b6b69e9f Issue 3084. Generate warning, not error, for 'Unknown.unknown'
http://code.google.com/p/dart/issues/detail?id=3084

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10524 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 18:33:07 +00:00
brianwilkerson@google.com 28b3a4b574 Fix for issue 3756 - support new catch syntax
Review URL: https://chromiumcodereview.appspot.com//10854097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10521 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 18:18:09 +00:00
scheglov@google.com c3e678447d Issue 3078. Compiler error converted to warning in section 7.5.2: Factories
http://code.google.com/p/dart/issues/detail?id=3078

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10520 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 18:10:39 +00:00
scheglov@google.com c6849c48ca Initial implementation of 'Create Method' quick fix
- only top-level functions are supported;
 - argument suggestions are not bound to the linked nodes, just first suggestion is used.

2. Tweak for resolved AST access

R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10468 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 23:02:35 +00:00
scheglov@google.com cb9721599f Fix for inferred type warnings pref page
Finishes http://codereview.chromium.org/10829255/ fix.

R=devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10467 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 22:53:44 +00:00
nweiz@google.com 884404dca2 Add an OutputStream.closed getter.
BUG=3603

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10455 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:09:19 +00:00
scheglov@google.com 1977779c20 Issue 4400. Fix for using top-level field in instance field initializer
http://code.google.com/p/dart/issues/detail?id=4400

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10353 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:23:12 +00:00
scheglov@google.com 09c4bbafe9 'Split && condition' quick assist.
And clean ups, simplifications for other places.

R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10295 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 16:38:53 +00:00
scheglov@google.com c0e823e0f7 Don't infer non-final field types
We can not analyze universe and prove that field is not reassigned to have value of othe type.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10260 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 22:10:39 +00:00
devoncarew@google.com eec0cd7855 Fixed several compiler warnings.
Review URL: https://chromiumcodereview.appspot.com//10832144

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10256 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 22:01:40 +00:00
scheglov@google.com 48d5420f6c Issue 4354. Fix for NPE when switch/case has no expression
http://code.google.com/p/dart/issues/detail?id=4354

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10243 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 19:36:52 +00:00
scheglov@google.com 0b01ba645c Issue 4347. Fix for 'as' type cast parsing and nodes positions
http://code.google.com/p/dart/issues/detail?id=4347

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10241 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 18:56:52 +00:00
scheglov@google.com 099e23eb11 Issue 3847. Allow non-constant instance variable initializers
http://code.google.com/p/dart/issues/detail?id=3847

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10233 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 14:41:00 +00:00