Commit Graph

5468 Commits

Author SHA1 Message Date
asgerf@google.com 990e824303 dart2dart: Fix bad type annotation in backend_ast_emitter.
Issue: https://code.google.com/p/dart/issues/detail?id=22326

R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43592 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 12:38:20 +00:00
sigurdm@google.com 7b0bc3d220 Implementation of async-await transformation on js ast.
BUG=
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43591 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 12:02:52 +00:00
asgerf@google.com f72a18378b Revert "dart2js: Refactoring, documentation, and a few bugfixes in Namer class."
This reverts commit r43588.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43590 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 11:58:07 +00:00
asgerf@google.com c767597da3 dart2js: Refactoring, documentation, and a few bugfixes in Namer class.
See long doc comment in namer.dart.

BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43588 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 11:31:10 +00:00
pquitslund@google.com 5ca6eca321 Version bump pre dev pub push.
R=brianwilkerson@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43583 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 05:13:55 +00:00
pquitslund@google.com e3a0244b58 Tweak to error formatter to fix LINT display name.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43582 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-08 21:01:35 +00:00
danrubel@google.com 5194a2b1b4 filter static methods when showing instance completions
BUG=dartbug.com/22171
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43580 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-07 00:56:15 +00:00
scheglov@google.com 8cee600323 Don't propose fixes to update SDK sources.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43574 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 22:21:48 +00:00
scheglov@google.com 8d35890475 Convert refactoring tests to use 'await'.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43573 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 22:13:37 +00:00
scheglov@google.com 2593c00b36 Quick Fix for adding 'async' to fix invalid 'await'.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43571 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 21:10:11 +00:00
danrubel@google.com f43912dfce fix code completion in string literals
BUG=dartbug.com/22297
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43567 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 20:07:29 +00:00
scheglov@google.com bd8778a87b Quick Assist to add explicit types to formal parameters.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43566 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 20:03:39 +00:00
brianwilkerson@google.com f473ae15a3 Spec changes for issue 22254
Review URL: https://codereview.chromium.org//882643004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43565 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 19:35:40 +00:00
scheglov@google.com eac4b2e0a3 Discard pending notifications on the same source change.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43564 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 19:31:13 +00:00
brianwilkerson@google.com c2d3ff3b95 Handle exception and clean-up code
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43563 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 19:19:55 +00:00
scheglov@google.com 172b8bee6e Fix for the server version test.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43561 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 19:11:28 +00:00
brianwilkerson@google.com d682527d1e Fix a stack overflow
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43559 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 18:00:16 +00:00
brianwilkerson@google.com 4468038300 Rework requests in execution domain
R=paulberry@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43556 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 15:49:44 +00:00
johnniwinther@google.com b964042fcd Support instance methods in analyzer2dart.
BUG=
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43555 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 14:59:18 +00:00
zarah@google.com c839cece99 dart2js: add constructor for directly instatiated mixin classes in the new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43553 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 14:27:48 +00:00
karlklose@google.com 8175ce696b Fix merge error: Call visitExpression instead of visit.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43551 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 11:57:30 +00:00
herhut@google.com 44541ff62b Support [AssumeDynamic] and [TrustTypeAnnotations] in the inferrer.
BUG=
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43550 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 11:38:46 +00:00
karlklose@google.com 2b8950be87 cps-ir: Implement string concatenation.
R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43549 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 11:36:27 +00:00
karlklose@google.com 055f09c02b cps-ir: Correctly bailout on unresolved static calls.
This adds a better error message and the ability to fallback to the old backend when compiling code like this:
  main() { new foo(); }
and
  class C {}
  main() { C.foo(); }

R=asgerf@google.com, kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43548 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 10:36:04 +00:00
zarah@google.com c544068f6f dart2js: add common names to mangledGlobalNames in new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43545 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 08:52:15 +00:00
karlklose@google.com e45aaa58e4 Move matching of arguments/selector against signature out of buildStaticInvoke.
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43544 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 08:32:05 +00:00
danrubel@google.com 20b64a97a4 fix completion in for statement
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43541 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 04:58:11 +00:00
danrubel@google.com 84350e186c fix named param default value code completion
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43540 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 04:50:57 +00:00
danrubel@google.com dc95fd3689 use propogated type for completions
BUG=dartbug.com/21457
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43539 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 04:43:15 +00:00
danrubel@google.com fa0dc53f6f fix code completion in conditional expressions
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43538 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 04:33:07 +00:00
paulberry@google.com cb0f691bb6 Fix analyzer type checking of "await" expressions.
This requires implementing the "flatten()" rule defined in the spec;
this rule also needs to be applied to static type checking of return
types in async functions.

BUG=dartbug.com/22291, dartbug.com/22293
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43537 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 03:32:57 +00:00
brianwilkerson@google.com 95a9962be0 Use MemoryResourceProvider in server and execution domain tests
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43530 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 22:46:41 +00:00
pquitslund@google.com ac08a9a570 Async/await/yield[*] support for dart_fmt
R=brianwilkerson@google.com, paulberry@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43529 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 22:37:23 +00:00
scheglov@google.com 81ebd5fd77 Fix for extracting local variable in if-else-if statements.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43528 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 22:36:56 +00:00
scheglov@google.com 3713a9eed7 Invalidate hints instead of computing them in the incremental resolver.
So, we don't need to prepare all the library parts before incremental resolution.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43526 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 22:06:48 +00:00
danrubel@google.com e5a34c3c12 fix completions in indexed expression
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43523 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 21:42:43 +00:00
scheglov@google.com ae2e608ff9 Send notificatinos after no-op changes.
This should solve the problem when client remove some part of the code,
so removes also error markers for it, and then quickly restores it,
so for the server it looks as an empty/no-op change. But information is
lost, and the server should resend it to the client.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43521 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 20:42:17 +00:00
danrubel@google.com 2425d0c57c const rename and cleanup
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43520 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 19:50:42 +00:00
danrubel@google.com 8233434126 move relevance computation from client to server
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43519 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 19:36:19 +00:00
johnniwinther@google.com 9d9b462cc5 Add test annotations to package:expect
BUG=
R=floitsch@google.com, herhut@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43510 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 16:29:26 +00:00
karlklose@google.com ceb96ac0b7 Use type argument for abstract values.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43507 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 15:09:38 +00:00
karlklose@google.com 230f4bf5c8 Remove visit and override visitExpression instead to make sure we check that the code produced for subexpressions is not null.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43506 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 15:07:58 +00:00
karlklose@google.com 10ba25da95 Rename CspFunctionCompiler to CpsFunctionCompiler.
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43502 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 11:47:40 +00:00
johnniwinther@google.com ddc57facd6 Update yield warnings.
BUG=http://dartbug.com/22260
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43500 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 11:38:40 +00:00
zarah@google.com b052fa847d dart2js: fix method setup on mixin classes in the new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43499 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 10:59:31 +00:00
zarah@google.com 0eff3bbea5 dart2js: fix setter name in new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43498 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 10:51:25 +00:00
pquitslund@google.com f6da9b87c4 Enum handling for dart_fmt.
R=brianwilkerson@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43494 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 03:38:15 +00:00
brianwilkerson@google.com fcd7fdb93a Fix ambiguous description
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43493 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 01:31:09 +00:00
jwren@google.com a65a5b599b Have analysis.getLibraryDependencies wait for the server.onAnalysisComplete completer
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43489 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 22:06:50 +00:00
brianwilkerson@google.com 6ddc37a5cc Disable analysis in hidden directories (fix for issue 22170)
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43485 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 21:27:43 +00:00