Commit graph

64678 commits

Author SHA1 Message Date
Stephen Adams
1f02c10b9a Update language_2/const_map4_test for type inference
Change-Id: Id81d974b0889e7c469ed40c85955f9b18265c634
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107927
Auto-Submit: Stephen Adams <sra@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-02 19:23:18 +00:00
Brian Wilkerson
99ed4871b3 Fix a hint in analysis server
Change-Id: I2e6e56b144617d2f061fb1f2d22eb386d395d6c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107941
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-02 18:50:31 +00:00
Matthew Dempsky
c3c43689d5 [vm] Remove platform/math.h
It seems safe to assume that <math.h> works on all supported platforms
now.

Change-Id: Iffb6618f6035c8cc10657c55ccc3ca7cd5d9525c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107825
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Matthew Dempsky <mdempsky@google.com>
2019-07-02 18:22:58 +00:00
Jake Ehrlich
524fdc13a9 Reland "[llvm] Add initial scaffolding"
This is a reland of b71d2d9996

Original change's description:
> [llvm] Add initial scaffolding
>
> This change adds the gclient and GN changes needed to build
> an executable using LLVM in the Dart tree as well as a basic
> testing framework based on llvm-lit.
>
> Change-Id: I9009a98ff95043cc3754966f31697ba7f1712310
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106434
> Commit-Queue: Jake Ehrlich <jakehehrlich@google.com>
> Reviewed-by: Alexander Thomas <athom@google.com>
> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>

Change-Id: Ib3cd3299ed463133616c666285f9a58fa387b5bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107829
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Jake Ehrlich <jakehehrlich@google.com>
2019-07-02 18:04:24 +00:00
Zichang Guo
45a9815aff [vm/debugger] break on asyncfunction entry
In observatory, "Break <function name>" will add a breakpoint at the beginning of function. But it will reject if <function name> is an async function, as it is not debuggable.
Add checks for async function will allow breakpoint to set. Once async_op is compiled, breakpoint will be resolved correctly.

Bug: https://github.com/dart-lang/sdk/issues/28561
Change-Id: I37cf6a05c54b6a0062845926f4f3b85557dcc52a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107522
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-07-02 17:49:48 +00:00
danrubel
e0eeffaf9b update NodeBuilder parameter tracking when visiting executable declarations
This updates NodeBuilder so that when it visits a method declaration,
it does not count any parameters defined in body statements
as part of the parameters defined in the method signature.

Change-Id: I4da3989eb2bc65c422d94fa264885910850b0ed2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107921
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-07-02 17:39:33 +00:00
asiva
182a59cebb Skip all tests that use spawnUri when running in simulator mode as it makes no sense to run the CFE on the simulator.
Change-Id: Ie3457e67fe4ddb3170bf4654effdc5b21dff2450
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107942
Reviewed-by: Alexander Aprelev <aam@google.com>
2019-07-02 17:32:23 +00:00
danrubel
1427a218f3 update DecoratedType asserts
Once https://dart-review.googlesource.com/c/sdk/+/107901 lands
to implement FunctionTypes in conditional expressions,
this CL can land to updates the DecoratedType asserts

Change-Id: Ia9924859243e6621dcbbd61ac471bd013069e5a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107920
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-07-02 17:15:50 +00:00
Paul Berry
f4dc001729 Migration: begin adding support for LUB computations in conditional expressions.
A number of corner cases still need to be addressed, and I need to
generalize the logic to work for `??` expressions.

Change-Id: I6998058698c8b293f7d7b99f3c231a9173b9ff58
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107901
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-02 16:12:07 +00:00
asiva
585794ab75 Fix status file line.
Change-Id: Idf62118cda425ea0e56439dd78515a1e9de4d2bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107940
Auto-Submit: Siva Annamalai <asiva@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-07-02 15:49:15 +00:00
asiva
4a69ef4a50 Skip all spawnURI tests for the simulator architectures as these tests involve invoking the front end for compilation which would mean the front end has to run in simulated mode.
Change-Id: Idce29ff924fb88c909e0faf2dc1107506659dc6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107832
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-07-02 15:06:37 +00:00
Paul Berry
26f369eb8e Fix doc comment for NullabilityNode.forLUB
Change-Id: Ibc87629b81eea7d2e56dfe143d037d10e6cfbe32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107900
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-07-02 14:35:57 +00:00
Abhishek kanojia
9ed728ec7a Add: Example usage to fillRange method.
Closes #37313
https://github.com/dart-lang/sdk/pull/37313

GitOrigin-RevId: a4c9e85a8f539f893e1049c1735584e3b4edb8bc
Change-Id: I11bc591746dde4444b69d3c97b8065fe14b422cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106724
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2019-07-02 14:17:47 +00:00
Paul Berry
fc7049ae7d Migration: implement support for user-definable prefix expressions.
Change-Id: Ie2316625d8ed6fd9ab3aee3b592ce5b82b0cb1e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107750
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-02 10:23:21 +00:00
Paul Berry
77aa5f0c02 Migration: Add support for function-typed formal parameters.
Change-Id: Iae4ba1c052e854bc832fdba7a2e2f53635d5033d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107749
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-02 10:23:21 +00:00
Paul Berry
326e970b81 Migration: handle method invocations that resolve to a getter.
Change-Id: I9a41190d883ee50a63d8cd60699da14084da09d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107748
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-02 07:41:45 +00:00
Stephen Adams
822de210b5 fix branch_canonicalization_test
Change-Id: Icd26e9edf3dbf513c614743a97c696ed88df00db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107570
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-07-02 06:15:02 +00:00
Paul Berry
a2e1434603 Breaking changes for analyzer version 0.37
Change-Id: I65a16ab2d2ca05de701c27f08300de85a6316b41
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99880
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-02 03:59:49 +00:00
Stephen Adams
6694aa821d [dart2js] new-rti: Temporary work-around for timeouts
We will remove this in a few weeks when more of the rti runtime is
correct.

TBR=fishythefish@google.com

Change-Id: I6cf9ff18398aa1a4c2dc1e38a9919165a816a145
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107833
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-02 02:23:31 +00:00
Stephen Adams
18ff5ce893 [dart2js] new-rti: Implement general As/Check methods
TBR=fishythefish@google.com

Change-Id: Ib2ac75dd3787401129a8b7420c60d59013d80f21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107824
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-02 00:49:20 +00:00
Stephen Adams
90c88d984e Fix large integer literals in dart2js_extra/round_constant_folding_test
Change-Id: Idf09515e7d31c1e778c8fa99c94d40e9939d286f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107831
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-02 00:14:40 +00:00
pq
9349f71721 bump linter to 0.1.93
Change-Id: Ib3e2fd9d35a3316551c59332b62736acde48e2ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107830
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-07-02 00:00:10 +00:00
Matthew Dempsky
c384212f9e [vm] Remove vestigial verified_memory_test.cc file
verified_memory.{cc,h} were removed in 2016 (commit 006bab2c), but
this file was accidentally left behind.

Change-Id: I7aca921ab402bc3ca8ee621be088f9a852d09eb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107828
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Matthew Dempsky <mdempsky@google.com>
2019-07-01 23:39:29 +00:00
Matthew Dempsky
f4824d332d [vm] Drop support for MSVC older than 2013
Google has required MSVC 2013 since Q2 2015, and Chromium has required
MSVC 2015 since Dec 2016. It seems safe for Dart to assume MSVC 2013.

Change-Id: I2ad2549d70b0a96085aa96e90ef15ad4c7b7acb8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107062
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Matthew Dempsky <mdempsky@google.com>
2019-07-01 23:38:10 +00:00
Liam Appelbe
bbb027aa2a [vm] Fix offset that was breaking bare_instructions_trampolines_test
This was the last remaining test that differed between simarm and
simarm_x64. All tests now produce the same results.

Bug: https://github.com/dart-lang/sdk/issues/36839
Change-Id: I98fef568c5eeee1391aa0e6299fb21890eebb396
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107827
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2019-07-01 21:54:39 +00:00
Stephen Adams
1db0b4436c [dart2js] new-rti: Implement type bounds check
TBR=fishythefish@google.com

Change-Id: Id6978b8453de639fa403436487edb849e4074206
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107681
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-01 20:52:59 +00:00
danrubel
686742585a Migration: add a more robust assertion to the DecoratedType constructor
This CL takes https://dart-review.googlesource.com/c/sdk/+/107740
and add the following condition so that all the current tests pass.

  if (positionalParameters.length <= positionalParameterCount) {
    // TODO(danrubel): Track down why this happens
    // and remove this if statement
  } else {
    ...

My next task is to track down and fix the underlying issue
then remove the temporary code above from the asserts.

Change-Id: I683beac46835ed7b8c1a7b856804db84a74142f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107860
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-07-01 20:41:49 +00:00
danrubel
2fd4ca570b set DecoratedType.returnType for FunctionType
This CL updates creation of DecoratedType to ensure that the return type
is set if the DecoratedType's type is FunctionType.

Change-Id: I9fd031693f5fd07ea5f0e6e16723b7c9659410ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107702
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-07-01 19:49:49 +00:00
Stephen Adams
ca4b6e533a [dart2js] new-rti: Implement basic is-test
Also add a few more type literal tests.

TBR=fishythefish@google.co,

Change-Id: Iab5ca4a5f8d224f67deaf1fe391e17ece46bde59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107600
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-07-01 19:12:20 +00:00
Konstantin Shcheglov
39b71253ce Fix for curly_braces_in_flow_control_structures lint.
Quick assist for converting single line statements to blocks and
vice-versa is also sometimes useful, but separate.

R=brianwilkerson@google.com, pquitslund@google.com

Bug: https://github.com/dart-lang/sdk/issues/37084
Change-Id: I9c6b2f7c063bc339a57d991e4d675b87e1910413
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103721
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-01 18:50:49 +00:00
Konstantin Shcheglov
b6c3b2c98c Enable 'Surround with XYZ' only for Statement(s) in Block(s).
R=brianwilkerson@google.com

Change-Id: I6488bd699bb2375de3aed1171f89def23068ae17
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107781
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-01 17:50:53 +00:00
Lorenz Nickel
79e478e50e Fixed some links
**I fixed some links and some other minor flaws.**

I also found the following outdated links, which I didn't fix:

- [This link](https://github.com/dart-lang/pool/tree/zone.strong) in [this file](https://github.com/dart-lang/sdk/blob/master/docs/newsletter/20170728.md) (didn't fix because don't know new location and this is some sort of archive so the link should probably stay the original)
- [This link](https://www.dartlang.org/tools/analyzer) in [this file](https://github.com/dart-lang/sdk/blob/master/pkg/analyzer_cli/lib/src/options.dart) (didn't fix since the link is still working, it just gets redirected and the link is part of the programm, I don't want to break anything by changing it, all other links are in comments)
- [This link](https://github.com/domokit/mojo/issues/728) in [this file](https://github.com/dart-lang/sdk/blob/master/build/config/compiler/BUILD.gn) (didn't fix since probably has no new location and is part of TODO, which I don't want to change)

While doing all this I also noticed that [these tests](https://github.com/dart-lang/sdk/tree/master/tests/compiler/dart2js_extra) contain a lot of other inconsistencies in their comments and the location of the import-statements (I only fixed one which was not link-related), could be target of another PR.

Closes #36927
https://github.com/dart-lang/sdk/pull/36927

GitOrigin-RevId: 71d05d0b52d8ec5b92d077a070e066d1fdd4bbfa
Change-Id: Ide4b2424fccad8ae2e06c788efd4443dc0de997b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102222
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2019-07-01 16:21:41 +00:00
Jacob MacDonald
279c1da42d Use absolute paths as canonical paths for inputs digest maps
Change-Id: I9a6c5efe22d4ef1f46393e2983084fe0b8a4652b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107682
Reviewed-by: David Morgan <davidmorgan@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
2019-07-01 16:02:14 +00:00
Konstantin Shcheglov
cbf9cff19f Infer types of field formals before all fields.
It will not happen strictly before, it happens together, because we
set _FunctionElementForLink_Initializer for fields, which will perform
field type inference when requested.

Found this while running over google3.

R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I360dff7e815ba997680c4a719a3e82827368db42
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107780
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-01 15:53:15 +00:00
Paul Berry
0c6b3d1277 Migration: do better function type formatting in DecoratedType.toString.
We now wrap named argument types in `{}` and optional positional
argument types in `[]`.

A few unit tests have been added to verify this functionality; I
didn't exhaustively test the implementation of DecoratedType though.

Change-Id: I1e3135adc3abc966f8a41d90c1c6e95e9c7c1eda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107747
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-07-01 15:36:14 +00:00
Paul Berry
a76c459239 Migration: Remove unnecessary duplicate type test
Change-Id: Ia99aabee8e5aa40ac301786d5b0b129a932209fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107744
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-07-01 14:14:32 +00:00
Daco Harkes
a515a0c256 Reland "[vm/ffi] SimDBC on Arm64 Android"
This reverts commit 0abff7b2bb and fixes the assembly file.

Change-Id: Ibef58c932c843aebb4de227ac5fc7664d463173f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107746
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Samir Jindel <sjindel@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2019-07-01 13:55:02 +00:00
Konstantin Shcheglov
0baf81e7d6 Tests for Never and potential nullable / non-nullable.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: Iad0f455f67a9593ebca20b97a91369fc59023c87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107701
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-07-01 00:10:58 +00:00
Konstantin Shcheglov
26d308aad3 Use flow analysis for reporting use sites of not assigned locals during resolution.
Correspondingly, I moved tests for definite assigned from unit-like
tests to the corresponding error reporting tests suite.

R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I6d286a8b5335e88fe9f7376ed3c829a1e5c39019
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107561
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-07-01 00:06:48 +00:00
Paul Berry
79f276e07d Migration: handle field formal parameters.
Change-Id: I15fb64a2cb7ed9bc56593fc8b27170aaa34af8a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107743
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
c8c3572ca9 Migration: standardize method names in EdgeBuilderTest.
Two methods had names beginning with "visit", to reflect the name of
the visitor method they tested.  But this was inconsistent with the
rest of the methods in EdgeBuilderTest, which are simply named after
the structure whose visitor method they test.

Change-Id: I4616eeff959f4ef84fc8a5da3263ab9c88d8fba2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107742
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
c0c15c1283 Migration: build nullability node for default type parameter bounds directly.
Change-Id: I29e9aa8004641a3ef24e44e13b8ee233d8ffb521
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107741
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
b57ff85906 Migration: clean up and test implicit dynamic return type of Function() syntax.
Change-Id: I6a010f5aa32cee4ece094188992ba472444293c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107519
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
0f2eda8644 Migration: add support for function expression invocations.
Change-Id: Icf92c81f677421b00f023c02ce784122dd570e87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107518
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
a200980da0 Migration: add support for variable and field type inference.
Change-Id: Iae66992d4f9734438776af34b68aabf20f5c15d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107517
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
ca25f56883 Migration: add support for type inference of function types.
Change-Id: Ic0ebbc4d412e7273127564089431ebe9058ee790
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107516
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
a436c0621f Migration: fix DecoratedType.toString to support named function parameters.
Change-Id: Ia49e4b381de5928d26be16fe4a9ab45fe8a64678
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107515
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
9dee307bdb Migration: update nullability graph debug dump to support union edges.
Change-Id: Ic9b85656b1e0d81468c73c89a08bfac611060534
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107514
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 16:39:17 +00:00
Paul Berry
b60dcdbf73 Migration: Remove the create parameter from Variables.decoratedElementType.
We can tell whether a decorated type needs to be created based on
whether the library is being migrated.

Change-Id: I440c9a310ad103c800de6409d717492bc539b838
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107660
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-06-30 10:43:45 +00:00
Paul Berry
18c21ee9d1 Migration: add support for generic instance creation.
Change-Id: I46d24159a58b7e889cdfa54a9dbb8a94b6c13410
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107645
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-06-30 10:43:45 +00:00