Commit graph

1850 commits

Author SHA1 Message Date
Konstantin Shcheglov 1699831282 Apply resolution to AdjacentStrings.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Iae09b39be41f1ddcd05a5a5ded554a1b7f9c09f3
Reviewed-on: https://dart-review.googlesource.com/25800
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-04 05:30:03 +00:00
Dan Rubel bc5b3f28e4 Fix syntheticPreviousToken
Change-Id: I985bdcf51ac78b510caf6f1400315c647a63b456
Reviewed-on: https://dart-review.googlesource.com/25762
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2017-12-03 18:31:23 +00:00
Brian Wilkerson 24562beebb Convert parseModifier to accept the last consumed token
Change-Id: I590b15070c1f507a89946982c2e3d3658b395a71
Reviewed-on: https://dart-review.googlesource.com/25761
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-12-03 18:20:44 +00:00
danrubel 0520d51fd9 Add more type reference recovery
Change-Id: Ia5e052d36abb48b8ec1881367639e6b83736a96c
Reviewed-on: https://dart-review.googlesource.com/24980
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2017-12-03 17:01:03 +00:00
Brian Wilkerson cf7584b5fd Changes to simplify converting parseModifier
Change-Id: I92f63cb839352ba53ff1c8a18830dabae5382bf7
Reviewed-on: https://dart-review.googlesource.com/25664
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-12-03 16:40:54 +00:00
Konstantin Shcheglov 21277a4df8 Apply resolution to 'this' and 'super'.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I905ea53aa1c39d789824e8c7061135a41b8f8cac
Reviewed-on: https://dart-review.googlesource.com/25663
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-12-03 00:13:42 +00:00
Brian Wilkerson b37e33cee7 Fix the highlighting of the error when an annotation is provided for an enum constant
Change-Id: I52c28facc2509c2104b37ea59127b93697c6e7fb
Reviewed-on: https://dart-review.googlesource.com/25700
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-12-02 16:35:05 +00:00
Brian Wilkerson bf531b66d6 Add a couple of tests based on some open issues
Change-Id: I02bc789e7278dd2a772d4a1799a7c59a978acff0
Reviewed-on: https://dart-review.googlesource.com/25582
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-12-02 16:34:56 +00:00
Konstantin Shcheglov 2804d6db9b Apply resolution to null-aware local variable assignment.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Ib7e4621169063b433ec9f52b7f293d909e3cae20
Reviewed-on: https://dart-review.googlesource.com/25509
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-12-02 03:55:53 +00:00
Paul Berry 1ff1efaf47 Fix ast_builder.status
This should fix a breakage in buildbots such as
https://build.chromium.org/p/client.dart/builders/vm-kernel-linux-release-x64-be
Change-Id: Idcdcdf841bab60b83675872a2ece385e2f4fd3b7
Reviewed-on: https://dart-review.googlesource.com/25513
Reviewed-by: Paul Berry <paulberry@google.com>
2017-12-01 23:46:46 +00:00
Paul Berry 7d65fec76e Reland "Route all messages through Loader."
This is the same as https://dart-review.googlesource.com/24481, but
with additional status file fixes.

Change-Id: Ic076c4dbf9c07e0fdf316298ca1ee1b6ce25002b
Reviewed-on: https://dart-review.googlesource.com/25508
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-12-01 22:47:06 +00:00
Konstantin Shcheglov 4740885c5a Apply resolution to ConditionalExpression.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I26bfba9d1e03fac01fbc84911de740b3c1435e6c
Reviewed-on: https://dart-review.googlesource.com/25683
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-01 22:39:12 +00:00
Konstantin Shcheglov b1beebeb8a Support for translating inferred FunctionType(s) of members.
The goal here is to create Analyzer FunctionType that remembers the
Element a function or a method it is associated with. We could just
translate Kernel FunctionType into a "detached" Analyzer FunctionType,
but that would be a breaking change.

Alternatively, we could accept that staticInvokeType in
InvocationExpression might be detached, and it the client needs the
exact element, it can be accessed using for example
MethodInvocation.methodName.staticElement. Practically, move closer
to the front-end way of dealing with types.

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

Bug:
Change-Id: I1de0b76c53f003dca837e714df4a9eee64c4ac9b
Reviewed-on: https://dart-review.googlesource.com/25280
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-12-01 21:18:22 +00:00
Ryan Macnak a646f51a5b Revert "Route all messages through Loader."
This reverts commit 8e4b0bda23.

Reason for revert: Failures on most kernel bots

Original change's description:
> Route all messages through Loader.
> 
> This ensures that all messages are passed to instrumentation.
> 
> Issues addressed in this CL:
> 
> * When I added addCompileTimeError, I forgot to remove addError.
> 
> * All messages now all arrive in a single location (Loader). SourceLoader adds instrumentation by overriding recordMessage.
> 
> * As I changed the type inferrer to use addCompileTimeError, I broke DDC. This is because the front_end API (generateKernelInternal in kernel_generator_impl.dart) returns null if there are any errors reported via addCompileTimeError (and this didn't happen with addError, that shouldn't have been there anyways).
> 
> * Due to the previous problem, I changed generateKernelInternal to ignore errors, but then I started getting missing compile-time errors. This turned out to be due to the the silent parameter used during outline- and diet-parsing.
> 
> * I've removed all the "silent" parameters. This didn't work reliably and have been confusing Brian, Dan, and me several times when making parser changes. Instead we detect duplicated messages and avoid reporting them more than once.
> 
> * Types in error messages got names that where using a global object (globalDebuggingNames in pkg/kernel/lib/text/ast_to_text.dart). This meant that the #lib prefix would vary depending on how many tests were run which affected the serialized error message in pkg/front_end/testcases/invalid_assignment.dart.strong.expect.
> 
> Change-Id: I3d89372d6593a6e7e50cce733f61eedb881e15ed
> Reviewed-on: https://dart-review.googlesource.com/24481
> Commit-Queue: Peter von der Ahé <ahe@google.com>
> Reviewed-by: Paul Berry <paulberry@google.com>
> Reviewed-by: Kevin Millikin <kmillikin@google.com>

TBR=paulberry@google.com,ahe@google.com,kmillikin@google.com

Change-Id: I9f7b345a8ff040fc7aa73c5cb605190e47fd284b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/25660
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2017-12-01 20:37:45 +00:00
Brian Wilkerson 7494ff92a0 Recover from semicolons in place of members in class bodies (issue 31078)
Change-Id: Ic6d064098a5d9d23f860c0fcd96ff33875808bb7
Reviewed-on: https://dart-review.googlesource.com/25460
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-12-01 19:50:09 +00:00
Konstantin Shcheglov e16df981c9 When applying types, treat UndefinedType as having required number of UndefinedType arguments.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Id2428967928a823cb55dcc4348b994af5c6674bf
Reviewed-on: https://dart-review.googlesource.com/25502
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-01 19:10:17 +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
Konstantin Shcheglov 22f5ce415d Translate types during ResolutionApplier.
This allows us update enclosing ExecutableElement as we enter/exit
local functions, and successfully translate references to type
parameters.

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

Bug:
Change-Id: I184123212b816740a586beee98796c28beadf6b2
Reviewed-on: https://dart-review.googlesource.com/25220
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-12-01 16:58:47 +00:00
Paul Berry ef25e491a2 Improve type inference for for-in statements.
Fixes #31440.

There is a minor change outside of type inference: the body builder
now stores the synthetic assignment (used for for-in loops that don't
declare their own variable) in ShadowForInStatement so that type
inference doesn't have to dig through the desugared kernel objects in
order to find it.

Change-Id: I6520695336560883e2aa07bb110378b7846c2e11
Reviewed-on: https://dart-review.googlesource.com/25040
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-12-01 16:53:47 +00:00
Kevin Millikin e1bf9c3e88 Remove void as an exported name from dart:core
`void` will be a reserved word in Dart 2.0 (it always was in Dart 1.x).
Remove it as an exported name from dart:core because it could be
accidentally hidden.

Bug: https://github.com/dart-lang/sdk/issues/31480
Change-Id: Id804cccbc144f3c8ba2fc9898a3b5c79e238ab36
Reviewed-on: https://dart-review.googlesource.com/24940
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2017-12-01 16:28:16 +00:00
Brian Wilkerson 78bf0b6498 Convert three methods to accept the last consumed token
Change-Id: Ie324e0bc91fa9c311be19b6c95690ed85a3aab75
Reviewed-on: https://dart-review.googlesource.com/25100
Reviewed-by: Dan Rubel <danrubel@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-12-01 14:29:18 +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
Peter von der Ahé 632bba54b9 Start building incremental test suite
Change-Id: I38e969e494c671982ec2cba96d2657a836dd0d49
Reviewed-on: https://dart-review.googlesource.com/24122
Commit-Queue: Peter von der Ahé <ahe@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-12-01 13:03:16 +00:00
Peter von der Ahé 8e4b0bda23 Route all messages through Loader.
This ensures that all messages are passed to instrumentation.

Issues addressed in this CL:

* When I added addCompileTimeError, I forgot to remove addError.

* All messages now all arrive in a single location (Loader). SourceLoader adds instrumentation by overriding recordMessage.

* As I changed the type inferrer to use addCompileTimeError, I broke DDC. This is because the front_end API (generateKernelInternal in kernel_generator_impl.dart) returns null if there are any errors reported via addCompileTimeError (and this didn't happen with addError, that shouldn't have been there anyways).

* Due to the previous problem, I changed generateKernelInternal to ignore errors, but then I started getting missing compile-time errors. This turned out to be due to the the silent parameter used during outline- and diet-parsing.

* I've removed all the "silent" parameters. This didn't work reliably and have been confusing Brian, Dan, and me several times when making parser changes. Instead we detect duplicated messages and avoid reporting them more than once.

* Types in error messages got names that where using a global object (globalDebuggingNames in pkg/kernel/lib/text/ast_to_text.dart). This meant that the #lib prefix would vary depending on how many tests were run which affected the serialized error message in pkg/front_end/testcases/invalid_assignment.dart.strong.expect.

Change-Id: I3d89372d6593a6e7e50cce733f61eedb881e15ed
Reviewed-on: https://dart-review.googlesource.com/24481
Commit-Queue: Peter von der Ahé <ahe@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2017-12-01 11:38:26 +00:00
Jens Johansen 22d0696d91 [CFE] Move front-end API under src/
This CL deprecates the front-end API and moves it into src/api_prototype.

For now all usages have been updated to point to the new location,
but they should be updated to use custom-client invocations instead (e.g.
one specific way for DDC, another for dart2js etc.)

Bug:
Change-Id: I9b4f41f6ebf55d42510fd35240d942d1dc7292d6
Reviewed-on: https://dart-review.googlesource.com/24822
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2017-12-01 08:42:16 +00:00
Brian Wilkerson 8aa3a91307 Convert six methods to accept the last consumed token
Change-Id: Ia6ba6eecdbf4f8c740792f2b028130f65528d81d
Reviewed-on: https://dart-review.googlesource.com/25020
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-11-30 19:35:54 +00:00
Brian Wilkerson 0d09e918fe Recover from a stack overflow
Change-Id: I2f4634f1706f366ec20749961ee41550e2944c72
Reviewed-on: https://dart-review.googlesource.com/24500
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-11-30 18:48:55 +00:00
Brian Wilkerson 18b9fd95c9 Recover from missing semicolon when skipping a function body
Change-Id: I1645317fc0707bb1e61550031eae680fb602089d
Reviewed-on: https://dart-review.googlesource.com/24280
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-11-30 17:56:04 +00:00
Kevin Millikin 6cfc0558ec Stop running global transformations as build transformations
Kernel transformations are categorized as 'modular' or 'global'.

Modular transformations are run at a granularity finer than a whole program
(e.g., a library, a class, or even a method).  They cannot make closed-world
assumptions.  One can think of them as running at 'compile time'.

Global transformations are run on a whole (closed) program.  They should be
optimizations only, not required for the implementation correctness of the
back end, because they are not guaranteed to be performed.  A simple linker
might just concatenate .dill files.  One can think of them as running at
'link time'.

The front end was applying global transformations to (open) bundles of
libraries, which violates the closed-world assumptions that these
transformations are allowed to make.  We no longer do that.

Bug:
Change-Id: If50faa78c3cfbcd8a3bc2f45b922c90d11761117
Reviewed-on: https://dart-review.googlesource.com/24740
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2017-11-30 14:08:25 +00:00
Brian Wilkerson d3aeb1cd1f Re-work parseType to make it possible to convert several methods invoked in it
Change-Id: Ifc2b8f1f6f2d958daef763e357feaf006a8ebe38
Reviewed-on: https://dart-review.googlesource.com/24680
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-11-30 13:37:25 +00:00
Jens Johansen b65d63e8b8 [kernel] Add position to catch
Bug:
Change-Id: Ie4a931ab55e923a3ed2bbf247535bc151c766272
Reviewed-on: https://dart-review.googlesource.com/23671
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2017-11-30 09:50:01 +00:00
Brian Wilkerson e98519a5c9 Gardening: Update ast_builder status file (TBR)
Change-Id: I51b94d71d898c10592fc733109a7c6636a1ac50e
Reviewed-on: https://dart-review.googlesource.com/24702
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2017-11-30 00:55:50 +00:00
Jacob MacDonald 15148dde93 compile and ship the front_end blaze worker entrypoint as a snapshot
Bug:
Change-Id: Id8611e484df73a1ffb36baca5c529327bbb336cb
Reviewed-on: https://dart-review.googlesource.com/24560
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
2017-11-29 23:40:35 +00:00
Konstantin Shcheglov 87fba233dd Apply resolution to AsExpression.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I47ccdcd837cee613076a3ce23cdab3f91abb17b1
Reviewed-on: https://dart-review.googlesource.com/24641
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 23:32:31 +00:00
Paul Berry f01b2217ac Create special type inference listener methods for invocations of Function.call.
This makes it possible to tighten up the types for the methods that
don't deal with Function.call.

Fixes #31435.

Change-Id: Iadde3e57bdb5e836a3561953531f111ca7f661ab
Reviewed-on: https://dart-review.googlesource.com/24640
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-11-29 23:18:00 +00:00
Konstantin Shcheglov 5dc85f380d Apply resolution to IsExpression.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I9919645507e7ba699b9ed2944613d8a69e815560
Reviewed-on: https://dart-review.googlesource.com/24625
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 23:05:40 +00:00
Konstantin Shcheglov 21d3790b48 Skip the type of synthetic Not in a != b.
R=brianwilkerson@google.com

Bug:
Change-Id: I9beacc690aafd9a0367934800ae472dfe4fc5b9a
Reviewed-on: https://dart-review.googlesource.com/24503
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 22:25:30 +00:00
Paul Berry 327adac235 Insert implicit downcasts for function expressions.
Note that there are currently some inconsistencies between how
function expressions are inferred depending whether they are defined
using `{}` or `=>` (see issue #31436).  This CL preserves the existing
inconsistencies.  Once we decide how we want to resolve issue #31436,
I'll revisit this code to ensure that it is still correct.

Change-Id: I3926a4b3dc51155d8f03adaae380b50aab39ca60
Reviewed-on: https://dart-review.googlesource.com/24622
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-11-29 22:24:31 +00:00
Konstantin Shcheglov 8fd8819748 Support for local variables/parameters of nested local functions.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: Iec6b55c93467e77fb9077b21cd07668c9283b05b
Reviewed-on: https://dart-review.googlesource.com/24600
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 21:47:15 +00:00
Konstantin Shcheglov b0ace18fbb Apply resolution to PrefixExpression.
Not test for `!`, I will get back to the previous CL once this lands.

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

Bug:
Change-Id: I4d5d107e3f3544b1daae8ed4327a1c165467f589
Reviewed-on: https://dart-review.googlesource.com/24505
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 20:17:30 +00:00
Paul Berry d358897ab2 Insert implicit downcasts for for-in loops.
Note that this CL makes a minor change outside of type inference: it
changes the BodyBuilder so that when it desugars a for-in loop that
assigns to a variable declared elsewhere, the desugared assignment is
expressed using shadow objects; this is necessary to ensure that the
type inference engine can walk the desugared assignment and insert an
implicit downcast if necessary.

Change-Id: I4d87f83b8a4b3b72e7ba8042ccd711f0d012fac0
Reviewed-on: https://dart-review.googlesource.com/24340
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 19:20:31 +00:00
Konstantin Shcheglov 3b3537a35c Skip empty strings while applying resolution to StringInterpolation.
This is not related to the failing VM test as far I see.

R=brianwilkerson@google.com

Bug:
Change-Id: Id5799b4b55e75da021c64a949d4084c44689a175
Reviewed-on: https://dart-review.googlesource.com/24502
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 19:20:11 +00:00
Konstantin Shcheglov fe3de034fb Apply resolution to PrefixExpression.
R=brianwilkerson@google.com

Bug:
Change-Id: Ib8bfac731751ede8ce1c34e1457b13505148d344
Reviewed-on: https://dart-review.googlesource.com/24360
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 15:01:01 +00:00
Brian Wilkerson bcf190978e Recover from missing required arguments
Change-Id: I4c5affa760221663466583fc70c37b0ec71f46f7
Reviewed-on: https://dart-review.googlesource.com/24281
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-11-29 14:28:11 +00:00
Peter von der Ahé fabd675b4e Convert Dartino tests to individual files.
Change-Id: I0e3d637a43ba3d71a71fa1b7a3e2162c247abf49
Reviewed-on: https://dart-review.googlesource.com/24111
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2017-11-29 10:37:01 +00:00
Peter von der Ahé 7e8666daf5 Move documentation to README.md
Change-Id: I20613a98e25d32aede47ca14a879387af30d0fd4
Reviewed-on: https://dart-review.googlesource.com/24108
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2017-11-29 10:09:33 +00:00
Konstantin Shcheglov 69d1301388 Apply resolution for IndexExpression, read/write.
This also changes the order of information for invocations:
1. Target / receiver.
2. Reference to the procedure.
3. The actual type of the procedure.
4. The type of the returned result.
5. Arguments.

  This makes reading and assigning by index consistent.

  Unfortunately we need to provide the offset associate with the
defered returned result in methodInvocationBeforeArgs(), where we
don't have access to Arguments yet. So, I have to implement replacing
offsets with _replaceType().

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

Bug:
Change-Id: Ib86c57efce8fa194b11a6979633243054c8ab7c9
Reviewed-on: https://dart-review.googlesource.com/24221
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-11-29 00:31:49 +00:00
Paul Berry 2b567c53d4 Insert implicit downcasts for parameter default values.
No language_2 tests are added to validate this behavior yet, because
we are still deciding what we want the semantics to be.  I will follow
up with language_2 tests once the semantics have been decided upon.

Tests that have begun failing due to this change are marked with a
reference to issue #31402.

Change-Id: Ia24c9789220d09682b4b3ade9374d279ff2a4b6e
Reviewed-on: https://dart-review.googlesource.com/24320
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-11-29 00:00:09 +00:00
Konstantin Shcheglov a4e619a63f Apply resolution for compound assignments.
R=brianwilkerson@google.com, paulberry@google.com

Bug:
Change-Id: I9d22dd8317babc0ce26cc54b2c5e974e547733a2
Reviewed-on: https://dart-review.googlesource.com/24220
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-11-28 22:07:04 +00:00
Brian Wilkerson 725c3fad49 Update front_end and kernel before publishing
Change-Id: Ifea9db1f41e232136afe0c0eacdcc7c1a430e69d
Reviewed-on: https://dart-review.googlesource.com/24200
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2017-11-28 19:28:24 +00:00