Commit Graph

628 Commits

Author SHA1 Message Date
brianwilkerson@google.com 042c0d0da2 Visit metadata everywhere (issue 4825)
Review URL: https://chromiumcodereview.appspot.com//10916012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11620 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 15:23:57 +00:00
scheglov@google.com 054559e596 Issue 4810. In case of import conflict explicitly report which library, with which prefix imported which conflicting libraries
http://code.google.com/p/dart/issues/detail?id=4810

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11618 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 14:54:25 +00:00
ajohnsen@google.com 3cf5d6531d Move core and coreimpl from corelib/ to lib/core and lib/coreimpl.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11606 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:45:40 +00:00
scheglov@google.com 0289204ca5 Issue 4778. Fix for resolving type of unqualifed field access
http://code.google.com/p/dart/issues/detail?id=4778

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11546 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 20:36:39 +00:00
scheglov@google.com 528a69c6eb Issue 4795. Fix for if-as-then-assign-else
http://code.google.com/p/dart/issues/detail?id=4795

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11545 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 20:31:48 +00:00
scheglov@google.com 0bc69215d6 Issue 4792. Infer multi-assign types usin raw types and the least specific arguments
http://code.google.com/p/dart/issues/detail?id=4792

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11536 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 19:17:29 +00:00
scheglov@google.com f7c12fb27e Issue 4785. Fix for resolving label for block in switch/case
http://code.google.com/p/dart/issues/detail?id=4785

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11535 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 19:14:07 +00:00
scheglov@google.com 37f95f01e5 Issue 3968. Support for redirecting factory constructors
http://code.google.com/p/dart/issues/detail?id=3968

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11532 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 17:06:11 +00:00
keertip@google.com 0bd83f744f add a class to read and parse libraries.dart file
Review URL: http://codereview.chromium.org//10875079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11525 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 16:17:52 +00:00
brianwilkerson@google.com 1c28aaf33e Fix for issue 4776
Review URL: https://chromiumcodereview.appspot.com//10889010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11479 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 21:41:46 +00:00
brianwilkerson@google.com c1dfd26292 Fix for issue 4776
Review URL: https://chromiumcodereview.appspot.com//10887011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11473 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 19:30:39 +00:00
scheglov@google.com 6861f4c447 Issue 4764. Rollback List/Map literals type inference
http://code.google.com/p/dart/issues/detail?id=4764

I give up.
That was wrong idea.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11472 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 18:44:58 +00:00
brianwilkerson@google.com 3a0861f80c Fix for final local variables whose type has a prefix (issue 4670)
Review URL: https://chromiumcodereview.appspot.com//10885007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11455 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 15:39:48 +00:00
scheglov@google.com be8f07e2c2 Issue 4770. Infer type only constant List/Map literals
http://code.google.com/p/dart/issues/detail?id=4770

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11449 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 14:51:46 +00:00
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