Commit Graph

3034 Commits

Author SHA1 Message Date
danrubel 7a5714ad0f Update compile_time_error_code_kernel_test
Change-Id: Idae979cfb48a3fce8db09802e90d48ce1daa1dad
Reviewed-on: https://dart-review.googlesource.com/62681
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-28 19:52:31 +00:00
Konstantin Shcheglov ec2f86b613 Fix for building FunctionElement(s) for closures in top-level variables and fields.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I177640ac1c002543bf2a0ac5110a0fa979151f64
Reviewed-on: https://dart-review.googlesource.com/62761
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-28 16:20:54 +00:00
Konstantin Shcheglov 5a47f4c9fa Apply resolution for ParameterElement metadata.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: Idad4abf3098afd0c604c6d0a03bbe2e082c8c35c
Reviewed-on: https://dart-review.googlesource.com/62731
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-28 14:31:11 +00:00
Aske Simon Christensen bd9aa5139a Error on cyclic constructor redirect.
Fixes https://github.com/dart-lang/sdk/issues/30856

Change-Id: Ib0cb851904fdcb12fff11bae92fe177739fe793f
Reviewed-on: https://dart-review.googlesource.com/60429
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-06-28 10:37:23 +00:00
Konstantin Shcheglov fc472e03da Don't store resolution for desugaring generated NotJudgment.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: Ic1eac64b6db300f1d7fbb29dee0abec85d411248
Reviewed-on: https://dart-review.googlesource.com/62712
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-28 00:13:03 +00:00
Konstantin Shcheglov 6f284b45f7 Fixes for applying resolution to InstanceCreationExpression.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I9ae9d8b7b8a75479e37583b85cd7043e2a828890
Reviewed-on: https://dart-review.googlesource.com/62709
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-27 22:58:22 +00:00
Konstantin Shcheglov bcacff49ba Ignore deferredCheck() in resolution storer.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I37add6aa72124b090e6b311aeeb83aefbf7d170b
Reviewed-on: https://dart-review.googlesource.com/62720
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 22:34:12 +00:00
Paul Berry d03210cdf4 Fix storage of types for local functions that are generic.
When a local function is generic, the front end gives us a type for it
that has fresh type parameters.  We need to map those type parameters
to the type parameters at the local declaration site.

Change-Id: I3d44dcacb9d627cbe8fa41405581ef717ed1bd03
Reviewed-on: https://dart-review.googlesource.com/62665
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 21:06:15 +00:00
Konstantin Shcheglov f0bc620143 Validate location in store().
Specifically, we should not try to store with location -1.
It is a signal that we either store something desugared, or forgot
to set the fileOffset for the corresponding Judgment, etc.

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

Change-Id: Ib4cb2aa4327ed053af71cc1eac6b1b0bd8d8a368
Reviewed-on: https://dart-review.googlesource.com/62700
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 20:50:10 +00:00
Kevin Moore cb4a19b5fc misc(pkg/analyzer): update to latest pkg:matcher API
Change-Id: I42a5c41394226f6ddc9c0608c6d688ae683ffdea
Reviewed-on: https://dart-review.googlesource.com/62680
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 19:29:20 +00:00
Konstantin Shcheglov 56cb7bac02 Fix for applying resolution to static field annotations.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I040f5401a80f77c61df0a52258a83109e4e9ea1a
Reviewed-on: https://dart-review.googlesource.com/62664
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 19:21:14 +00:00
Paul Berry b9dbe3a0be Fix analyzer/FE integration for is! expressions.
Change-Id: I2d2e3ccee5f0e5f8c6c3f270cd3a89ea4ada1641
Reviewed-on: https://dart-review.googlesource.com/62662
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-27 19:04:34 +00:00
Mike Fairhurst f5e8cc3517 Remove old code with incorrect instantiation to bounds on typedefs
Bug: 32114
Change-Id: I63a6f9baa6c06c1faf63a1e7102b85e33954944a
Reviewed-on: https://dart-review.googlesource.com/62483
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2018-06-27 18:23:06 +00:00
Konstantin Shcheglov 70087c349b Fixes for applying resolution to annotations.
There are still failing tests for static fields, it seems that we
don't record the class reference, as we do for prefixes. Will look next.

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

Change-Id: Ia869031a272f7c918e465b115fa24de261f9a4ab
Reviewed-on: https://dart-review.googlesource.com/62622
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 16:38:37 +00:00
Paul Berry 21b077a81c Fix incorrect handling of non-generic typedefs.
Currently a typedef is represented by two elements: an "outer" element
that points to the typedef and has type GenericTypeAliasElementImpl,
and an "inner" element that points to the RHS of the typedef and has
type GenericFunctionTypeElementImpl.  GenericTypeAliasElementImpl.type
is never used and handles generic parameters incorrectly;
GenericFunctionTypeElementImpl.type should always be used instead.

I plan to clean all this up as part of #33641, but this CL is
sufficient to get tests passing.

Change-Id: Ib2d9af9294f4f9d94bfbbeff9aaae711f8cdad1d
Reviewed-on: https://dart-review.googlesource.com/62540
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-27 16:26:59 +00:00
Konstantin Shcheglov 46167dfd88 It is OK to declare a const constructor in a class with a mixin, if it has no fields.
R=brianwilkerson@google.com

Change-Id: I76c427fe24b8f06711c3adcac8bacd45900240b1
Reviewed-on: https://dart-review.googlesource.com/62482
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 14:23:59 +00:00
Konstantin Shcheglov 88a88b03dc Fix token used for large negative integers.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I4625f76bb071888392510c1c5c85f1314832ffa3
Reviewed-on: https://dart-review.googlesource.com/62480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 14:21:29 +00:00
Konstantin Shcheglov 385cde3977 Resolve 'dynamic' element references.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I12414cd68a48a06940ad8a12ea1a34e22f4c72dc
Reviewed-on: https://dart-review.googlesource.com/62441
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-27 00:06:08 +00:00
Paul Berry 9179db84df Resynthesize typedef types properly from kernel.
I broke this functionality when I refactored FunctionTypeImpl into
lazy and strict variants; this CL restores it and simplifies it.

This CL also adds a new method to the analyzer API:
FunctionTypeAliasElement.instantiate(), to allow a client to supply
type arguments to a typedef (as one would at a site where the typedef
is used), to produce a type.  Putting the method in
FunctionTypeAliasElement helps move us toward an API that
distinguishes type "constructors" from types (a generic typedef
defines not just one type but a family of types; to obtain a type one
must instantiate the typedef by supplying type arguments).

Change-Id: I722db2befe2d54fd53d625ddba0dec856a555a7b
Reviewed-on: https://dart-review.googlesource.com/62282
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-26 23:32:48 +00:00
Konstantin Shcheglov cad8d4a741 Store instance creation information at arguments offset.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I6fcdcd40e8322a0f950cd039bb151ee620e389ec
Reviewed-on: https://dart-review.googlesource.com/62440
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-26 22:33:08 +00:00
Konstantin Shcheglov a1efbd326f Change FrontEndCompiler.getOutline() to return full kernels.
So, we still get annotations, default values, and initializers.

See also https://github.com/dart-lang/sdk/issues/33633 that
tracks the fact that we now perform body resolution twice.

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

Change-Id: Idbe628411512c24f73ff3ac4773c895a75cd0b28
Reviewed-on: https://dart-review.googlesource.com/62400
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-26 19:56:40 +00:00
Dan Rubel 966541bec9 Improve literal function recovery
This fixes a crash when parsing literal functions
and improves recovery.

Change-Id: I22e7793d08e772bd186e1fb8fd01e09fa72ea13e
Reviewed-on: https://dart-review.googlesource.com/62380
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-26 19:25:42 +00:00
Dan Rubel 386efb1e6a Improve type parameter recovery
This fixes another crash in the fasta parser
and improves the way it recovers when parsing type parameters
before a map or list literal.

Change-Id: Ic02513b98a31e9ed3f59c8391c260a2a214983ae
Reviewed-on: https://dart-review.googlesource.com/62340
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-26 19:24:28 +00:00
Mike Fairhurst 3640037164 Fix second half on #33343: disallow generic functions as type arguments.
There is a seeming parse error in typedefs, and an open question on the
issue (33343) about what to do when a generic function type is inferred.

Otherwise this seems ready to go.

Bug: 33343
Change-Id: I10d2ea9b6ca26ed2c6ff6b24ffe5008fc4797ef2
Reviewed-on: https://dart-review.googlesource.com/61109
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-25 18:02:04 +00:00
Mike Fairhurst 284b5cce55 Partial fix of #33343. Reject generic function types as bounds.
Does not handle the other half of #33343, rejecting generic function
types as type arguments.

This revealed a secondary minor issue which was easy enough to fix. Type
arguments were not resolved within bounds:

class C<T extends S Function<S>(S)> {}

this would report 'undefined class S' for the return and parameter types
`S`. I almost split this into a separate CL, but, these two CLs are tied
together inherently by the tests case. Easy to solve at once.

Bug: 33343
Change-Id: Ib34a04d90be08d8d6c6f21a9d485a452017585ba
Reviewed-on: https://dart-review.googlesource.com/61103
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-25 15:56:06 +00:00
Konstantin Shcheglov b24170259c Don't add parts without 'part of' as libraries.
See also https://github.com/dart-lang/sdk/issues/33587

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

Change-Id: I109c76c88483c6b9459fe94b372c71bec8b2d6bf
Reviewed-on: https://dart-review.googlesource.com/61962
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-22 19:52:25 +00:00
danrubel fea8cb1473 Revise order of type variable declaration events
As of this CL, events for type variable declarations occur
in the following order:

* beginTypeVariables
* beginTypeVariable for each type variable in the declaration
* handleTypeVariablesDefined
* endTypeVariable for eah type variable in the declaration
* endTypeVariables

Revising the order of events facilitate removing the hack
in BodyBuilder.beginTypeVariables in a future CL.

This is another slice of https://dart-review.googlesource.com/c/sdk/+/57661
so that it can be landed in a more incremental fashion.

Change-Id: Ief0ad766c12f1ca9d53a8ec8d3c08b41166b2897
Reviewed-on: https://dart-review.googlesource.com/61940
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-22 19:47:46 +00:00
Konstantin Shcheglov 4ebdb31646 Separate getOutline() and getResolution() in FrontEndCompiler.
This will allow us later switch from applying resolution to parsed
AST to directly generating resolved AST, when we get to this.

New failing tests are because of absence of annotations, constant
values (initializers, default values), and constructor initializers
in outlines.

We also don't get errors for constant value computing, hence some
tests are now passing, but not by the reason we intended to test.

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

Change-Id: I5b45da592563af02c45e8cda160ccd24487c3591
Reviewed-on: https://dart-review.googlesource.com/61743
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-22 04:04:33 +00:00
Kevin Millikin f2eaf6aae7 Remove type parameters from the Fasta BodyBuilder
We are pivoting our implementation of FE/Analyzer integration a little
bit, and so the BodyBuilder will not be parameterized in exactly the
same way.  Remove the existing parameterization from it and all the
supporting classes.  This requires specializing the BodyBuilder to the
front end's instantiation of it and deleting the corresponding code in
the Analyzer.

Fixes https://github.com/dart-lang/sdk/issues/33503

Change-Id: I3ddcd2c5f5ebd8f2ff95f2ec8d4c7b98b70a0b0a
Reviewed-on: https://dart-review.googlesource.com/61502
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2018-06-21 14:53:43 +00:00
Devon Carew dce00bc836 - fix a strong mode type error
- mark a test as slow

Change-Id: I124c711e54b4bb4e3c7d68fb3a3f35be34be9151
Reviewed-on: https://dart-review.googlesource.com/61401
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-06-20 21:56:17 +00:00
Alexandre Ardhuin b343d0a80d trigger error for const A(B()) if B non-const
To unblock dart-lang/linter#995

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

GitOrigin-RevId: 9a6d3ca6775aceeb56836cc4e0c948be9b1c78c3
Change-Id: Ie8d627c031489bbaa606063b0a43c6696e45c2f1
Reviewed-on: https://dart-review.googlesource.com/61220
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-20 20:58:37 +00:00
Paul Berry 591cf85c76 Re-enable the old analyzer/FE integration logic.
This gets the tests running again.  I'll follow this up with CLs that
reshape the ResolutionStorer API to match the Factory API we're
building, and then after that we can transition the code over to
calling the Factory API directly.

Fixes #33504
Fixes #32258

Change-Id: I105841ed5b2ed1198ec5e3e7387f694c61d36ca7
Reviewed-on: https://dart-review.googlesource.com/61101
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-06-20 14:35:31 +00:00
danrubel ddde9820a9 Improve fasta parser parameter list recovery
... and update more Analyzer fasta tests.

Change-Id: Ia6e9e08cca1a1c81528767e5c0b2f18435cd8ea9
Reviewed-on: https://dart-review.googlesource.com/61000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-19 17:55:46 +00:00
danrubel c9af309cbf Fix fasta parsing of ?. in cascade expression
... and fix more Analyzer fasta parser tests

Change-Id: I42e6f25784dbc62bca620b1ab522c07350f53aff
Reviewed-on: https://dart-review.googlesource.com/60721
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-18 21:25:41 +00:00
danrubel 741ed336f1 Improve AstBuilder int literal recovery
... and fix more Analyzer fasta parser tests

Change-Id: Ic051369580311e0ee1be09210d34a6654d90c023
Reviewed-on: https://dart-review.googlesource.com/60720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-18 20:00:13 +00:00
Leaf Petersen 8e9e8e1da0 Fix various bugs and regularize behavior of returns statements in
various kinds of functions.

Closes-bug: #31887
Closes-bug: #30638
Closes-bug: #32233
Closes-bug: #32881
Closes-bug: #31278
Change-Id: I4ebd7e71096d611e189b571ba5de2998dd11c98b
Reviewed-on: https://dart-review.googlesource.com/60300
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Leaf Petersen <leafp@google.com>
2018-06-15 16:07:44 +00:00
Dan Rubel 8f0106e490 Update more Analyzer fasta tests
Change-Id: I1b39eebaf11882bd1524335a7dcbba86f2d26cfb
Reviewed-on: https://dart-review.googlesource.com/60362
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-15 00:38:53 +00:00
Dan Rubel 53c2a6f9d5 Cleanup remaining unescape string call sites
Change-Id: Iaf4ac9d9c48c6cca7bd2ada2d370e0253fcaa963
Reviewed-on: https://dart-review.googlesource.com/60361
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-15 00:38:13 +00:00
Dan Rubel c015e8d303 Improve invalid string literal error recovery
Change-Id: Ic7d5d3f19e97a0004254377170bcc91efc7bfb08
Reviewed-on: https://dart-review.googlesource.com/60360
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-14 22:53:34 +00:00
Brian Wilkerson bd956620fe Remove code that is causing a couple of hints
Change-Id: Ie0f575da1d5b5638f8ea55bf8f423c8f2cba85e8
Reviewed-on: https://dart-review.googlesource.com/60281
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-14 16:43:29 +00:00
Paul Berry 41a8b79475 Use the inferred type of const lists/maps to for constant evaluation.
This addresses one of the root causes of #33304.  Note that when a
constant list or map is recorded in a summary, we don't encode enough
information in the summary to resynthesize its inferred type
correctly, so this only fixes cases where the constant is used in the
same build unit as its declaration.

Change-Id: Id0034f481cb82f18c77bbe2ee8ebec7e8b244caa
Reviewed-on: https://dart-review.googlesource.com/60203
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-14 14:08:54 +00:00
danrubel 695aa1fc00 Improve recovery of missing method parameters
... and consolidate insertion of synthetic parenthesis

Change-Id: I08a3ce04bd11fc6201862c9ee101ca9c8538c14c
Reviewed-on: https://dart-review.googlesource.com/60040
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-13 17:41:20 +00:00
danrubel ec58802ea4 Update Analyzer/fasta async* and sync* error message tests
Change-Id: I5aea43305a65797d279ca132764c34b33f19ca41
Reviewed-on: https://dart-review.googlesource.com/59980
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-13 13:02:50 +00:00
danrubel 5df04a89b7 Update more Analyzer tests
Change-Id: I23ca56867eb33c9d8983648be9305b82e6441934
Reviewed-on: https://dart-review.googlesource.com/59920
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-13 12:34:20 +00:00
Leaf Petersen ebc30fd0da Move void to top of type hierarchy
Fixes #33341

Change-Id: Ib2b7b5542b702a04b38dee5261fc80664a7fcc18
Reviewed-on: https://dart-review.googlesource.com/59822
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2018-06-11 22:40:44 +00:00
Konstantin Shcheglov bdbf872079 Issue 33373. Support for annotations for enum constants.
R=brianwilkerson@google.com

Fixes https://github.com/dart-lang/sdk/issues/33373
Fixes https://github.com/dart-lang/sdk/issues/33375

Change-Id: I917458b38ed7d6c83351f87387d6854e5311ddf2
Reviewed-on: https://dart-review.googlesource.com/59440
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-06-08 18:15:00 +00:00
Brian Wilkerson f368037126 Remove uses of mockito because they are causing problems in dart2
Change-Id: Ife57033ede3abdd1e609e1361fb688d96de4dcbf
Reviewed-on: https://dart-review.googlesource.com/59141
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-07 18:59:19 +00:00
Kevin Millikin 292b9037e1 Update a pair of analyzer tests
The static type of invocations of methods from class Object on
receivers with static type dynamic has changed.  Clean up a pair of
analyzer tests that expected the previous behavior and were expected
to fail because the analyzer already implemented the intended
behavior.

Change-Id: I7a65fa4e46a0da51bcf1c183a7c30f0976baaef5
Reviewed-on: https://dart-review.googlesource.com/58205
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2018-06-07 13:24:41 +00:00
Brian Wilkerson 9c5d54cc7e Fix the generation of labels
Change-Id: I486e5a23d31bc85ad534b072867db883f5d60c33
Reviewed-on: https://dart-review.googlesource.com/58981
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-07 13:22:55 +00:00
Peter von der Ahé 656ed8491e Follow up to previous CL
This addresses comments from
https://dart-review.googlesource.com/c/sdk/+/58201.

Change-Id: I59fd5ea06fbd644a7ba5e6be842ce20cfaee7536
Reviewed-on: https://dart-review.googlesource.com/59060
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-06-07 09:33:52 +00:00