Commit Graph

614 Commits

Author SHA1 Message Date
scheglov@google.com 1217a48d2a Issue 4719. Mark inferred List/Map literal types as inferred.
http://code.google.com/p/dart/issues/detail?id=4719

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11441 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 13:20:29 +00:00
scheglov@google.com 6ef7aa818d Issue 3904. Allow using class literal in expressions
http://code.google.com/p/dart/issues/detail?id=3904

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11440 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 13:16:21 +00:00
scheglov@google.com db083cfa5b Fix DartC build
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11424 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 23:16:42 +00:00
scheglov@google.com 618ff29a6d Issue 4713. Support for 'static const' field in interfaces
http://code.google.com/p/dart/issues/detail?id=4713

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11409 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 19:51:17 +00:00
brianwilkerson@google.com bfb595960a Syntactic support for redirecting factory constructors (issue 3968)
Review URL: https://chromiumcodereview.appspot.com//10872087

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11404 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 18:37:18 +00:00
scheglov@google.com b50c5df781 Issue 3989. Show warning if constructor name is same as member name
http://code.google.com/p/dart/issues/detail?id=3989

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11403 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 18:36:03 +00:00
messick@google.com 271e548aa5 Clean up some warnings.
Review URL: https://chromiumcodereview.appspot.com//10882061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11396 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 16:46:31 +00:00
devoncarew@google.com a8e48440d9 Change the compiler project's save actions settings to organize imports on save.
Review URL: https://chromiumcodereview.appspot.com//10882049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11395 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 16:41:29 +00:00
brianwilkerson@google.com c3c6c9e8fe Support argument definition test operator (issue 4264)
Review URL: https://chromiumcodereview.appspot.com//10879095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11392 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 15:36:20 +00:00
scheglov@google.com 3263abdf55 Issue 4681. Resolve @metadata for all possible targets
http://code.google.com/p/dart/issues/detail?id=4681

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11361 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-25 15:15:15 +00:00
scheglov@google.com e649da50a7 Infer type of List and Map literals
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11359 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-25 02:41:53 +00:00
brianwilkerson@google.com 300cebee39 Fix for 4700 - accept metadata in more places
Review URL: https://chromiumcodereview.appspot.com//10868078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11332 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 18:45:30 +00:00
scheglov@google.com 7e25ae610f Infer and merge variable types with multiple assignments in conditional statements
This covers also case of declaring variable without value and assignment later.
This is just special case of multiple assignments in the same basic block.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11324 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 16:47:29 +00:00
scheglov@google.com 181b93d75c Use intersection of types as type of conditional
This is actually preparation for type propagation in case of multiple assignments to variable.
For example when there are assignments in IfStatement, different types in "then" and "else" branches.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11319 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 15:06:40 +00:00
brianwilkerson@google.com 0aa3289f37 Convert getter and catch syntax in tests; fix resulting bugs
Review URL: https://chromiumcodereview.appspot.com//10872048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11316 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 14:51:08 +00:00
brianwilkerson@google.com ee0ebbc5bb Add warnings for use of obsolete getter and catch syntaxes
Review URL: https://chromiumcodereview.appspot.com//10875031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11234 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 15:05:38 +00:00
scheglov@google.com f8fa2dca5a Remove references to 'frog'
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11162 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:34:17 +00:00
scheglov@google.com d7fd7b9870 Issue 4641. Resolve 'part of' to LibraryElement
http://code.google.com/p/dart/issues/detail?id=4641

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11120 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 00:25:44 +00:00
scheglov@google.com 305f5adaa7 Issue 4539. Tweaks for old/new spec compatibility
Temporary disables check for underscore in named optional parameters.
There are not way to know if user means old or new syntax.

Also makes "final" and "const" local variables a constant expressions.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11117 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 00:11:38 +00:00
devoncarew@google.com cc32271cb2 Remove references to frog; rename our old json compilation server.
Review URL: https://chromiumcodereview.appspot.com//10832435

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11112 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 23:09:04 +00:00
keertip@google.com 0573730e02 fix build failure, rename refactor take 2
Review URL: http://codereview.chromium.org//10837369

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11104 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 22:22:49 +00:00
devoncarew@google.com ea4cb6dfa6 Remove some compiler warnings.
Review URL: https://chromiumcodereview.appspot.com//10866008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11103 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 21:55:15 +00:00
keertip@google.com 784d765bdd rename refactor SystemLibraryManager -> PackagelibraryManager SdkLibraryManager -> SystemLibraryManager
Review URL: http://codereview.chromium.org//10827457

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11101 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 21:36:44 +00:00
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
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