Commit Graph

72 Commits

Author SHA1 Message Date
Konstantin Shcheglov 2ba489c65a Fix resynthesize tests for Windows.
Fixes #31832

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

Bug: https://github.com/dart-lang/sdk/issues/31832
Change-Id: Ie0b1dd9742415fe9cf97b3d3843eeaf3af878308
Reviewed-on: https://dart-review.googlesource.com/33982
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-01-10 20:24:39 +00:00
Konstantin Shcheglov 9f7af9963a Convert UNDEFINED_SUPER_METHOD errors.
We don't grab parsing errors with previewDart2 anymore, because the
same errors are reported during compilation.

R=brianwilkerson@google.com

Bug:
Change-Id: I58dc8c098fe4c8b2009c3adb9cbbbc334a748f61
Reviewed-on: https://dart-review.googlesource.com/32444
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-01-04 23:00:36 +00:00
Kevin Millikin 6fa813d818 Change handling of Kernel static errors
Before: Kernel static errors were represented by throwing a distinguished
error or else by calling a distinguished library const constructor.

Now: Kernel static errors are represented by InvalidExpression.  To support
error reporting, InvalidExpression has an optional message and a file
offset.  A back end can choose to signal these errors at any time; for
example, when deserializing the binary, or when compiling the procedure
containing the static error, or when the erroneous expression is evaluated
at run time.

InvalidStatement is removed because it can be encoded as ExpressionStatement
of InvalidExpression.

Future work:

* supporting static errors where an expression cannot appear in the AST
* allowing InvalidExpression to contain an Expression for error recovery
* adding a top-level list of static errors and warnings to the binary

Bug: https://github.com/dart-lang/sdk/issues/29840
Change-Id: Ifdfe9a76cee6cefed28061bf245be70531d2f413
Reviewed-on: https://dart-review.googlesource.com/31320
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-01-04 11:00:25 +00:00
Konstantin Shcheglov a0abc35f60 Resynthesize function types in constants.
R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/31554#issuecomment-354624024
Change-Id: Id5dc525f5d803c455e5336f460523d57ec832ace
Reviewed-on: https://dart-review.googlesource.com/32147
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-01-03 22:42:25 +00:00
Konstantin Shcheglov 6d5f2f09aa Apply resolution to function expression invocations.
Bug:
Change-Id: I895cf9765664f1e9608ec612e4b1897f42cb9d70
Reviewed-on: https://dart-review.googlesource.com/31881
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-01-02 19:34:23 +00:00
Konstantin Shcheglov fa6f91999c Resynthetize FunctionType(s) with synthetic element.
Use actual element for typedef(s).

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

Bug:
Change-Id: I01163de0a8a3c776e8bdd1bd0973962e687cfbac
Reviewed-on: https://dart-review.googlesource.com/31580
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-28 20:47:26 +00:00
Konstantin Shcheglov 88575a3f4c Fix resynthesis for 'dynamic op value' constant expressions.
1. Move error checking before.

2. Remove check for operator using resolution, because there is no
   resolution for dynamic target. _toBinaryOperatorTokenType() will
   throw if the operatorName is not actually the name of an operator.

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

Bug:
Change-Id: Iaa7d909ec8a6c13f306fd73122a10a0de170e7e1
Reviewed-on: https://dart-review.googlesource.com/29181
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-13 18:18:35 +00:00
Konstantin Shcheglov 7e22dbf1f9 Apply KernelType(s) based on function type alias.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I8cb26120cfc7d58f1d59e0034fbe0d94c7422478
Reviewed-on: https://dart-review.googlesource.com/27927
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-08 23:28:20 +00:00
Konstantin Shcheglov 15f317412d Support @factory prefix in resynthesizer.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ifaa8fc7f37b09c224d30928fb11478e025342d70
Reviewed-on: https://dart-review.googlesource.com/26422
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-06 06:08:08 +00:00
Peter von der Ahé e14726a3f4 Use absolute URIs instead of relative paths
We change the type of FileUriNode.fileUri from String to Uri, which in principle
doesn't change the binary format. However, we did notice that LibraryParts
weren't serialized as specified in binary.md, so we also fixed that.

Since fileUris are stored as strings in a separate table, Uri.parse is only called
once per unique URI.

Fasta only uses relativizeUri when printing diagnostics, and URIs stored in
expectation files (golden files) are relativized using String.replaceAll.

Change-Id: Ib2dc1b80c03a0cdaf84e48b8b3ba73b16bdf8a40
Reviewed-on: https://dart-review.googlesource.com/25421
Commit-Queue: Peter von der Ahé <ahe@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-04 11:34:24 +00:00
Samir Jindel bf797e6507 [kernel] Re-land assert initializers.
This change updates Dart2js and DDC.
Thanks to johnniwinther@ for the Dart2js updates.

The original revision is in patchset 2.

Change-Id: I26db33312f003f88ccccb67b27998ef21a1f667f
Reviewed-on: https://dart-review.googlesource.com/25820
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Samir Jindel <sjindel@google.com>
2017-12-04 11:22:34 +00:00
Samir Jindel 48a927acb2 Revert "[kernel] Introduce assert initializers."
Reverting due to several test failures.

This reverts commit 67adfe741b.

Bug:
Change-Id: Idd1aa15d47df68f2938285468dfa3d5043d8dae2
Reviewed-on: https://dart-review.googlesource.com/25520
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-12-01 17:46:05 +00:00
Samir Jindel 67adfe741b [kernel] Introduce assert initializers.
Assert initializers in Dart may be compiled directly to this form of initializer,
rather than through local initializers as is done now.

Bug:
Change-Id: Ia149ea3d1df5d1dc18be5636801604ffaf7ca7d8
Reviewed-on: https://dart-review.googlesource.com/14760
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2017-12-01 14:04:06 +00:00
Brian Wilkerson afbcb4a1fc Convert kernel procedures
Change-Id: I746252cf2c9334ae1190dacf6cbe354aba1602c1
Reviewed-on: https://dart-review.googlesource.com/23200
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-11-22 20:55:14 +00:00
Konstantin Shcheglov e67cd0daab The very first CL for end-to-end integration of FrontEnd resolution into Analysis Server.
At this point KernelDriver is used only by Analyzer, so I don't include
anyone from the FrontEnd team. We will merge to get the same performance
benefits of the latest IKG approach, but later.

Only just enought integration is done - we can store and apply
types in the local variable declaration.

Everything is in disarray, I will follow up with improvements.


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

Bug:
Change-Id: Ie3434e26233b84fb019c50a7cc834a08d0dadbed
Reviewed-on: https://dart-review.googlesource.com/22202
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-11-20 22:42:09 +00:00
Konstantin Shcheglov 6a11149ef1 Rewrite KernelDriver to use outlines of direct dependencies.
For now only getKernel() uses the new compilation method.

There are several new failing tests because redirection factories
are not serialized/deserialized correctly yet (but I saw kernel
support comming for it), and outlines don't include private fields (
which we want to work around by storing just names).


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

Bug:
Change-Id: I0d964862066ac0ee9e7b5c7b1d3802171a874aef
Reviewed-on: https://dart-review.googlesource.com/19440
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-09 02:36:42 +00:00
Konstantin Shcheglov ccbed2d33c Parse metadata for part directives and resynthesize in Analyzer.
R=ahe@google.com, paulberry@google.com, sigmund@google.com

Bug: https://github.com/dart-lang/sdk/issues/30284
Change-Id: Id869144a6fce170dbc74b0595b545238595be84d
Reviewed-on: https://dart-review.googlesource.com/15983
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-10-24 19:40:08 +00:00
Konstantin Shcheglov 7b376a6a0f Store relative URIs in LibraryPart(s).
Fix Analyzer resynthesizer to handle these relative URIs.
I hope that this will fix the exception in the reverted CL.

R=ahe@google.com, paulberry@google.com, sigmund@google.com

Bug:
Change-Id: Icd5e2707a23fa294bac152da38a2340912814131
Reviewed-on: https://dart-review.googlesource.com/14620
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-10-18 15:05:35 +00:00
Konstantin Shcheglov 8bdac8155b Fix resynthesizing libraries for not existing URIs.
R=brianwilkerson@google.com

Bug:
Change-Id: I9706fa3a23d91531f7710aa11b78ba7b3bc9f282
Reviewed-on: https://dart-review.googlesource.com/11245
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-10-05 04:10:10 +00:00
Konstantin Shcheglov a4189d36fd Handle another variant of _ConstantExpressionError.
R=brianwilkerson@google.com

Bug:
Change-Id: I20d16ef0cffd91b32d6ed48a0f981f6542b0dc47
Reviewed-on: https://dart-review.googlesource.com/11120
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-10-04 19:06:09 +00:00
Konstantin Shcheglov 9bc267e66c Fix for exception during resynthesizing 'this' in default value.
R=brianwilkerson@google.com

Bug:
Change-Id: I4b866370383d9d4020c5a1b400da8a8b9cab8666
Reviewed-on: https://dart-review.googlesource.com/10841
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-10-04 16:29:32 +00:00
Konstantin Shcheglov 687ba3c7bc Fix for unresolved field initializer.
R=brianwilkerson@google.com

Bug:
Change-Id: Ib67167973b0cba708e83ee7852e010315d15409b
Reviewed-on: https://dart-review.googlesource.com/10823
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-10-04 15:51:53 +00:00
Konstantin Shcheglov 4b76d48935 Replace Kernel's InvalidType with Analyzer's UndefinedTypeImpl.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I84bf02c6287aa01f1b4ef831e87719507d2f0ec1
Reviewed-on: https://dart-review.googlesource.com/10202
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-10-03 16:39:10 +00:00
Konstantin Shcheglov 9d6a8c9d3b Fix resynthesizing typedef type literals from Kernel.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I7b16881e435b6ef5b77840a17807d897a15d980c
Reviewed-on: https://dart-review.googlesource.com/9746
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-09-29 19:55:33 +00:00
Konstantin Shcheglov d4dec4e1a4 Create GenericTypeAliasElement for both FunctionTypeAlias and GenericTypeAlias nodes.
Some pain points are:

1. It is a breaking change. I think I will break it even more by removing
   FunctionTypeAliasElement altogether.

2. We lose ability to keep track that this FunctionType is instantiation
   of a typedef. Just like in Kernel.

3. We sometimes have to look up to see if the GenericFunctionTypeElement
   is a function in a named GenericTypeAliasElement.

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

Bug:
Change-Id: Ib250cc446a0ed5b8969f16f7cc6293ef4acf01a8
Reviewed-on: https://dart-review.googlesource.com/9421
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-29 00:39:05 +00:00
Konstantin Shcheglov 7c3dbd0b5d Resynthesize LibraryElement.public/exportNamespace.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ie2a938759ae4a8b3db00b9ffdcf3af176a2e9c6f
Reviewed-on: https://dart-review.googlesource.com/8727
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-09-26 22:25:46 +00:00
Konstantin Shcheglov a48239f527 Update expectations for inferred synthetic functions.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ic1f805ffc935436c816223370b2aa4d5af499a4c
Reviewed-on: https://dart-review.googlesource.com/8726
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-09-26 22:15:35 +00:00
Konstantin Shcheglov 73447d0f24 Use NoneTarget with native enabled.
R=ahe@google.com, paulberry@google.com, sigmund@google.com

Bug: https://github.com/dart-lang/sdk/issues/30839
Change-Id: I7ad415f42022eab784de1c53d4bb9afe67b78b2f
Reviewed-on: https://dart-review.googlesource.com/8404
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-26 20:27:44 +00:00
Konstantin Shcheglov 748eb3d4c6 Make the whole expression #invalidConst if a part of it is invalid.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I39c3eba2011bb3f2f3254f7a9ba1cb79d47645c3
Reviewed-on: https://dart-review.googlesource.com/8320
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-09-25 22:22:39 +00:00
Konstantin Shcheglov 556920dec3 Fix for resynthesizing libraries with unresovled URIs.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I23da60fede6539f1b154a8ed3b73506926126889
Reviewed-on: https://dart-review.googlesource.com/7484
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-25 22:22:19 +00:00
Konstantin Shcheglov e32b446640 Rework getElement() in resynthesizer.
So that it is not recursive anymore.

This also fixes a bug with private classes.
There is no library URI qualifier for classes, even if they are private.

R=brianwilkerson@google.com

Bug:
Change-Id: I3c5c3d56e7f895940192fcee692043aaef25d2dc
Reviewed-on: https://dart-review.googlesource.com/8163
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-25 17:08:03 +00:00
Konstantin Shcheglov a3f287a0a3 Move TypeProvider creation into KernelResynthesizer and create loadLibrary functions.
R=brianwilkerson@google.com

Bug:
Change-Id: If2a873ea70133ae7f2c21d356adccc1a9653377d
Reviewed-on: https://dart-review.googlesource.com/8161
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-09-25 17:05:33 +00:00
Konstantin Shcheglov daa7ba1205 Return SimpleIdentifier or PrefixedIdentifier from _buildIdentifier().
R=brianwilkerson@google.com

Bug:
Change-Id: I0de65eb662b5ae3c69ab8c216d013a473b1f9299
Reviewed-on: https://dart-review.googlesource.com/8160
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-09-25 16:55:44 +00:00
Konstantin Shcheglov d7232d280f Resynthesize invalid constants as #invalidConst identifiers.
Just `null` almost works, but is not good for default values of
formal parameters. We need a node. In order to unify Kernel and
summary resynthesizers, we now resynthesize to #invalidConst in
both cases.


R=brianwilkerson@google.com

Bug:
Change-Id: Ib353ef51b9393dafaec719ce3f5ca018d73c0f18
Reviewed-on: https://dart-review.googlesource.com/7720
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-23 02:28:30 +00:00
Konstantin Shcheglov d553a55af5 Understand _ConstantExpressionError and don't resynthesize corresponding constant expressions.
I think it should not matter whether we resynthesize unresolved AST
or no AST at all in element model. If constant evaluator knows that
no AST means an error.

With summaries we store unresolved AST and detect that something
cannot be resolved during resynthesis. Hm... Maybe we should stop
in this case and return null, as we do now for Kernel.

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

Bug:
Change-Id: Ie1b5dc3b8910e89087f579145337b900a9e481c7
Reviewed-on: https://dart-review.googlesource.com/7637
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-21 21:41:15 +00:00
Peter von der Ahé 9baee97ea2 Revert "Add NamedNode.nameOffset, fill it for constructors, and use in Analyzer."
This reverts commit 9a8621b60a.

Revert "Rework getElement() in resynthesizer."

This reverts commit e4fa080f69.

Revert "Create (empty) initializers for parameters resynthesized from Kernel."

This reverts commit 8df6c79b9d.

Revert "Run NonErrorResolverTest in strong mode. Extract not strong tests."

This reverts commit 9bdda4b1d3.

Revert "Move TypeProvider creation into KernelResynthesizer and create loadLibrary functions."

This reverts commit c59eaf1788.

Revert "Return SimpleIdentifier or PrefixedIdentifier from _buildIdentifier()."

This reverts commit 6d0515f9ca.

Change-Id: I1099ca715ce6287ab56808b7cc3abe0589e939c1
Reviewed-on: https://dart-review.googlesource.com/7550
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-21 12:19:47 +00:00
Konstantin Shcheglov 6d0515f9ca Return SimpleIdentifier or PrefixedIdentifier from _buildIdentifier().
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ifaecb13e6869166deb10c6211cf075761c185100
Reviewed-on: https://dart-review.googlesource.com/7449
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-20 21:31:20 +00:00
Konstantin Shcheglov c59eaf1788 Move TypeProvider creation into KernelResynthesizer and create loadLibrary functions.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Idabf9baa72de55d9a501a9b91317aad004dcf5dc
Reviewed-on: https://dart-review.googlesource.com/7447
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-20 20:48:50 +00:00
Konstantin Shcheglov e4fa080f69 Rework getElement() in resynthesizer.
So that it is not recursive anymore.

This also fixes a bug with private classes.
There is no library URI qualifier for classes, even if they are private.

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

Bug:
Change-Id: Ibeb8bd18fed9b116a40b2f2ff357f97283bc7b0d
Reviewed-on: https://dart-review.googlesource.com/7382
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-20 17:59:57 +00:00
Konstantin Shcheglov f2ff362c71 Fix for resynthesizing FutureOr in not strong mode.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I239bb013cb04c6e1ab07d644e3cca16119885321
Reviewed-on: https://dart-review.googlesource.com/6743
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-18 20:26:38 +00:00
Konstantin Shcheglov feb02ba034 Resynthesize types of function typed formal parameters.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I1afb45879afc67806dfb3d6fe18b172fd2b3c01a
Reviewed-on: https://dart-review.googlesource.com/6645
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-18 19:36:30 +00:00
Konstantin Shcheglov 50c964b819 Add option for AnalysisDriver to use KernelDriver and KernelResynthesizer.
Run NonErrorResolverTest_Driver tests with this option enabled.
We fail 163 out of 478 tests, or 35%.

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

Bug:
Change-Id: Iac6154a14a1357fe239b0140f9f66de792825693
Reviewed-on: https://dart-review.googlesource.com/6340
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-09-18 02:09:14 +00:00
Konstantin Shcheglov 9665f39e51 Resynthesize InvalidType as dynamic. Triage some tests.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I011e76f6243a1ff51884d2beb1a4f1d3f0e2251d
Reviewed-on: https://dart-review.googlesource.com/5891
Reviewed-by: Paul Berry <paulberry@google.com>
2017-09-14 21:11:03 +00:00
Konstantin Shcheglov d1988c9c7f Fix for using enums as InterfaceType(s) when resynthesize from Kernel.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review-Url: https://codereview.chromium.org/3006983002 .
2017-08-31 14:06:48 -07:00
Konstantin Shcheglov b617cde778 Resynthesize references to type parameters in default expressions from Kernel.
Update the related tests to take into account the fact that front-end
infers type arguments, but the summaries linker does not.

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

Review-Url: https://codereview.chromium.org/3009933002 .
2017-08-31 12:37:26 -07:00
Konstantin Shcheglov d704073f40 Resynthesize ?? expressions from Kernel.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review-Url: https://codereview.chromium.org/3006973002 .
2017-08-31 12:18:22 -07:00
Konstantin Shcheglov 46f0940a0a Resynthesize assert constructor initializers and parameter references.
R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/3002633002 .
2017-08-23 10:06:49 -07:00
Konstantin Shcheglov 936569da6d Add implicit dart:core import when resynthsize from Kernel.
R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/3000913002 .
2017-08-23 09:50:25 -07:00
Brian Wilkerson 01b024c006 Replace comment style generic method syntax with real syntax
Review-Url: https://codereview.chromium.org/2997593002 .
2017-08-08 10:34:09 -07:00
Konstantin Shcheglov 4ef7fd14c1 Record Typedef reference into Kernel FunctionType and resynthesyze typedefs in Analyzer.
R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/2986393002 .
2017-08-04 12:02:26 -07:00