Commit graph

22038 commits

Author SHA1 Message Date
Paul Berry b3af151325 Rework detection of uninstantiated bound errors.
We now determine whether a type is simply bounded in the summary
linker, so that we can take advantage of the linker's circularity
detection logic.

Fixes #34635.
Fixes #34636.

Change-Id: I6c5040dbaeb79957d8a84e3f76e6a51834b57f05
Reviewed-on: https://dart-review.googlesource.com/c/78867
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-10-09 22:07:02 +00:00
Konstantin Shcheglov f35465dafd Remove DynamicElementImpl.library property.
R=brianwilkerson@google.com

Change-Id: I2be6a79916639564605ef519a1b55475cb55a36e
Reviewed-on: https://dart-review.googlesource.com/c/78340
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-10-09 20:51:54 +00:00
Konstantin Shcheglov 9cde31ba1d Try interface candidates in reverse order.
R=brianwilkerson@google.com

Change-Id: I616cdc280299da321834140678d39c28e5ecb614
Reviewed-on: https://dart-review.googlesource.com/c/78711
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-10-09 20:12:46 +00:00
Dan Rubel 5561e69f4e Replace dartfix confirm apply changes with --force
Change-Id: I1d0777e90dd47b13463c3d063f668df859d7995e
Reviewed-on: https://dart-review.googlesource.com/c/78880
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 19:16:13 +00:00
Dan Rubel 619a06370e Update dartfix to only allow target directories
... and address comments in
* https://dart-review.googlesource.com/c/sdk/+/78720
* https://dart-review.googlesource.com/c/sdk/+/78721

Change-Id: I6c68c014743e45e231fd56f16d1b937a1e9a79f1
Reviewed-on: https://dart-review.googlesource.com/c/78722
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 19:16:13 +00:00
Brian Wilkerson 8fc80031ae Fix cast exception in OpTypeAstVisitor
Change-Id: I7fa9f9586a7d57ebc9707db3ee1532c462bbeccd
Reviewed-on: https://dart-review.googlesource.com/c/78712
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 18:40:19 +00:00
Brian Wilkerson 2cf6ba2996 Generate the right error message for type arguments on a named constructor
Change-Id: If6e9e943b71b00429c8fc5618f1337e8b7ac46b6
Reviewed-on: https://dart-review.googlesource.com/c/78560
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-10-09 18:38:39 +00:00
Paul Berry 5976fe373f Fix up InferredTypeTest_Driver to use InferredTypeMixin directly.
This prevents tests marked as failing in InferredTypeTest from being
inherited by InferredTypeTest_Driver.

Change-Id: I4a364cd951dbf2bdf73e0bdda4b5f2630c91ea55
Reviewed-on: https://dart-review.googlesource.com/c/78863
Commit-Queue: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 18:25:18 +00:00
Paul Berry 4400df4190 Convert strong_mode_test.dart to triple-slash comment style.
Change-Id: Iba3ca6bc14269b89e55d36b662f0fa46b6710c5b
Reviewed-on: https://dart-review.googlesource.com/c/78800
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 17:12:44 +00:00
Dan Rubel 920d75f2ea Cleanup dartfix driver context
Change-Id: If0527f9c45067f9dd977c0581c85fed41cfcfbc7
Reviewed-on: https://dart-review.googlesource.com/c/78721
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 15:48:08 +00:00
Dan Rubel 746034785d Update dartfix to separate targets from analysis roots
Change-Id: I6e6435df9ffe593d797c43723bd61701e204897a
Reviewed-on: https://dart-review.googlesource.com/c/78720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-09 15:48:08 +00:00
Danny Tuppeny 3d06427075 Fix MOVE_FILE test paths for Windows
- Wrap all paths with separators in convertPath() for Windows
- Ensure convertPathForImport does the right thing for relative paths
- Use the correct convertPath for imports/exports/parts

Change-Id: Ie95e41686479f175c9ba661180fdf5ad90b409e8
Reviewed-on: https://dart-review.googlesource.com/c/78740
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Danny Tuppeny <dantup@google.com>
2018-10-09 15:00:07 +00:00
Martin Kustermann 6c0b854477 [VM] Fix canonicalization of doubles: Two doubles are canonicalized to the same value if they are idencial()
Fixes https://github.com/dart-lang/sdk/issues/34730

Change-Id: I9f60c5f81ceb9bd31794efe20012a343dab748bb
Reviewed-on: https://dart-review.googlesource.com/c/78747
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2018-10-09 12:33:57 +00:00
Kevin Millikin 296c99632d Remove outdated information from pkg/kernel/README.md
Change-Id: I6cd2d5c2ea7cfd6934034efb42532203ad0a812b
Reviewed-on: https://dart-review.googlesource.com/c/78744
Reviewed-by: Jens Johansen <jensj@google.com>
2018-10-09 11:09:27 +00:00
Kevin Millikin 4e4e9ec74a Implement int-to-double literal conversion.
The implementation strategy is to replace int literals with double
literals during type inference, provided they occur in a double
context and can be represented exactly as a double.  This requires us
to keep integer literals larger than the 64-bit range until after type
inference and to keep the source text of 64-bit integers until after
type inference for error reporting.

We postpone the check for web int literals as well because the
expression generator that was performing it isn't otherwise needed.

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

Change-Id: Ia78c031565cad83961675fc4fb1cc871eaed01d3
Reviewed-on: https://dart-review.googlesource.com/c/78122
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-10-09 09:15:28 +00:00
Aske Simon Christensen 79e8b3d57f Make importing two libraries with the same name a warning
Bug: https://github.com/dart-lang/sdk/issues/34612
Change-Id: I2697b56fb02d6bee8ea3bc2d06329100e287ae34
Reviewed-on: https://dart-review.googlesource.com/c/78242
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2018-10-09 06:56:13 +00:00
Paul Berry 219dc1be87 Rework the class hierarchy of StrongModeStaticTypeAnalyzer2Test.
The tests are moved into a mixin,
StrongModeStaticTypeAnalyzer2TestCases, which both
StrongModeStaticTypeAnalyzer2Test and
StrongModeStaticTypeAnalyzer2Test_Driver apply separately.  This
allows tests to be marked as failing in
StrongModeStaticTypeAnalyzer2Test without affecting
StrongModeStaticTypeAnalyzer2Test_Driver.

Change-Id: Iabd641d5ecf03fd0481baf053e689d68a0e0e7a1
Reviewed-on: https://dart-review.googlesource.com/c/78705
Commit-Queue: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-10-09 00:45:10 +00:00
Konstantin Shcheglov dd7fec41ec Issue 34693. Use isOverrideSubtypeOf() to check that the implemented member is a valid override of the member from the super-constraint.
R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/34693
Change-Id: I5dcc576e7494c166cb4539d7694fea0209d49219
Reviewed-on: https://dart-review.googlesource.com/c/78680
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-10-09 00:22:20 +00:00
Mike Fairhurst 7f531b5112 Analyzer: Fix missing errors during (a)sync(*) yield of void.
Change-Id: Iff1d87862b2f684c0ce36b0f07620f62f2e49a85
Reviewed-on: https://dart-review.googlesource.com/c/78323
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-08 22:27:59 +00:00
Paul Berry 28780d34df Convert element.dart to triple-slash comment style.
Change-Id: I8af3b0fb06f10ffbc1b9fca6489d3e82ea77dcc6
Reviewed-on: https://dart-review.googlesource.com/c/78600
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-08 20:22:59 +00:00
Stephen Adams 2a3a5c88c7 [dart2js] Omit empty parts in --fast-startup
If all the components of a part-file are empty, the part file can be
removed.

On one app reduces number of parts from 710 to 599.

Related to https://github.com/dart-lang/sdk/issues/29686

Change-Id: I043d723645fd43c953536c82199ac41f43010c12
Reviewed-on: https://dart-review.googlesource.com/c/78190
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-08 19:25:33 +00:00
Alexander Markov f939503b50 [vm/aot] Make mixin deduplication transformation more robust wrt new mixins
Previously, mixin deduplication transformation expected that isAnonymousMixin
classes could occur only in a superclass position. After this change,
deduplication also handles (canonicalizes) isAnonymousMixin classes in
implementedTypes, as CFE uses isAnonymousMixin classes in implementedTypes
to represent superclass constraints for mixin declarations.
No other uses of isAnonymousMixin classes supported.

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

Change-Id: I8558ce53c4fb1e5a06f839fa5ec8022958d9dafd
Reviewed-on: https://dart-review.googlesource.com/c/78383
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Auto-Submit: Alexander Markov <alexmarkov@google.com>
2018-10-08 19:05:54 +00:00
Paul Berry 5ea1d2fb20 Convert idl.dart to triple-slash comment style.
Change-Id: If16a8ea5da0f2cd805d3360e1d70cd19be8066a8
Reviewed-on: https://dart-review.googlesource.com/c/78621
Commit-Queue: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-08 19:04:02 +00:00
Stephen Adams f96362ccfd [dart2js] Smaller code by caching values
- Move more that one assignment into var-list
- Move 'this' to a local variable
- Move repeated large 'fast' constants to local variable

Currently under flag --experiment-code-1


Change-Id: I091cab47f498b4ec3759b9ed358bcc0f2e73fdb1
Reviewed-on: https://dart-review.googlesource.com/c/77025
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-08 17:40:19 +00:00
Konstantin Shcheglov ca8809fcfa Don't use variableElement.computeConstantValue() in ConstantVisitor.
...when we are using Analysis Driver.

This method causes switching to the task-model based way of computing
constants. And so filling  SdkAnalysisContext with data. And because
SDK instances are long-lived, we were keeping this data as well.

R=brianwilkerson@google.com

Change-Id: Ie6f4a4ce8a05238b9640aef961af394d64373573
Reviewed-on: https://dart-review.googlesource.com/c/78420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-10-08 16:34:04 +00:00
Kevin Millikin 9d150c6443 Avoid a downcast error
The field that we use to hold redirecting constructors is a Kernel
field, and not a ShadowField.

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

Change-Id: Iea2ce41f0229a7b9c2354bf3c6c3b586a3ffec33
Reviewed-on: https://dart-review.googlesource.com/c/78540
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Daniel Hillerström <hillerstrom@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2018-10-08 15:03:45 +00:00
Johnni Winther 127c3fed6c Handle data URIs in dart2js
Change-Id: Ifca03b51aa16e2b4676490c94dafe335e1a94171
Reviewed-on: https://dart-review.googlesource.com/c/76901
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2018-10-08 13:00:34 +00:00
Peter von der Ahé e4840ec239 Remove byte_store and performance_logger stubs
Change-Id: Ia64c6c42a8737a23d7f708bd6905088f9444951e
Reviewed-on: https://dart-review.googlesource.com/c/78200
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Auto-Submit: Peter von der Ahé <ahe@google.com>
2018-10-08 12:03:38 +00:00
Peter von der Ahé 935af1e77f Use unique package paths in incremental_load_from_dill_test.dart
Change-Id: I94cb9ddffa604bdb682af0da0df4810b7523954d
Reviewed-on: https://dart-review.googlesource.com/c/78462
Auto-Submit: Peter von der Ahé <ahe@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2018-10-08 10:09:25 +00:00
Johnni Winther 073f6e8623 Register type arguments on generic super invocations.
Closes #34701

Change-Id: Ib0e575213c87be915cbfaff101e4421352030e87
Reviewed-on: https://dart-review.googlesource.com/c/78360
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-05 22:25:57 +00:00
Alexander Aprelev 0dc54542d0 [vm/frontend_server] Revert 218d30e26, but add uri check to ensure we don't write out corelibs.
Bug: https://github.com/flutter/flutter/issues/22721
Change-Id: I65843ab36bb63ad6d31c05a7ad1f001e8d611a10
Reviewed-on: https://dart-review.googlesource.com/c/78320
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2018-10-05 21:53:48 +00:00
Konstantin Shcheglov ebf042d599 Null out Completer in _DiscoverAvailableFilesTask.
It might have caused a memory leak.
It is hard to say - there ware some references from Closure, from
other Closure, and eventually from the _completer.

R=brianwilkerson@google.com

Change-Id: I18c75f48e74e9ae04265170751224261f51ccf76
Reviewed-on: https://dart-review.googlesource.com/c/78322
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-10-05 20:35:12 +00:00
Mike Fairhurst 198b05279b Fix #33599 circular typedef stack overflow.
Fix #33599 stack overflow for recursive function type parameters

Bug: 33599
Change-Id: I31a14e9f941bfd6bb7c2dba09f671d887e535b2a
Reviewed-on: https://dart-review.googlesource.com/c/76040
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2018-10-05 15:59:42 +00:00
Dan Rubel 358b580941 more fasta parser tests
Change-Id: I41f45835ca36fc5752ae537e67dce55299493e43
Reviewed-on: https://dart-review.googlesource.com/c/78260
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-10-05 15:36:41 +00:00
Mike Fairhurst 765b8e2d66 More void cleanup
Change-Id: I21e23ab6dec654242d049935e2665389e61dd3d7
Reviewed-on: https://dart-review.googlesource.com/c/78189
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-10-05 15:34:31 +00:00
William Hesse 85833973ae Update status entries for renamed test (pkg/front_end hot_reload_e2e_test)
Bug: dartbug.com/31901
Change-Id: I2926e20de6438ef64979b41fdb121b77fab83066
Reviewed-on: https://dart-review.googlesource.com/c/78243
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-10-05 14:24:41 +00:00
Kevin Millikin 796d628ab6 Improve error reporting from Kernel scripts
* Ensure that we have a .dill file and it has the correct version before
  we start decoding it in dump.dart.

* Throw errors, not strings.  Ensure that they have a useful
  toString().

* Do not print usage except when the command is invoked
  incorrectly (wrong number of arguments).  Once we get into the
  command it's less likely that it's been invoked incorrectly and more
  likely that something else has gone wrong.

  Because these utilities are invoked from other scripts (like the
  fasta command), printing their usage for problems other than
  invoking them correctly doesn't match the way that they were invoked
  and it's confusing.

Change-Id: I7832383594d2b3719a0a7a7392ba4685717a79d2
Reviewed-on: https://dart-review.googlesource.com/c/78206
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2018-10-05 12:19:01 +00:00
Dan Rubel b6a8e31492 Improve error message when var is used as a type name
... and Address comments in
https://dart-review.googlesource.com/c/sdk/+/78101

Change-Id: I8b3bc9888185d9802a389baa3f197f9b29927b7f
Reviewed-on: https://dart-review.googlesource.com/c/78103
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-10-05 11:56:26 +00:00
Dan Rubel 1472053545 Add fasta regress test for 34563
Change-Id: Ic5971e44e1853215f8e841d589ea9ef12bdef179
Reviewed-on: https://dart-review.googlesource.com/c/78100
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-10-05 10:39:21 +00:00
Stephen Adams 7e77c29989 Revert "Test necessity of dart2js function name-setting code"
Change-Id: I2ffa8aa6dcba5753ac5feea41f2fcc840fd349e0
Reviewed-on: https://dart-review.googlesource.com/c/78191
Reviewed-by: Stephen Adams <sra@google.com>
2018-10-05 03:01:42 +00:00
Stephen Adams 1c2f15f9e3 Test necessity of dart2js function name-setting code
This is a probe CL to see if some code can be removed on IE11.

Change-Id: I506c95c6325ecf3ce2a39f03e5d8bc50e61289ec
Reviewed-on: https://dart-review.googlesource.com/c/78151
Reviewed-by: Stephen Adams <sra@google.com>
2018-10-05 02:30:28 +00:00
pq 3dcb5d13fd normalize pubspec paths
Change-Id: Ic56b9e305714e2c9e716b79b26aaf42e37e2a7a3
Reviewed-on: https://dart-review.googlesource.com/c/78144
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2018-10-04 22:08:00 +00:00
Brian Wilkerson 0e1ddfb0f2 Disable completions for runtime expressions
Change-Id: I675c2c724e4b3ad987ef7d52c80786379e443781
Reviewed-on: https://dart-review.googlesource.com/c/78145
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-10-04 21:34:20 +00:00
Alexander Markov 9db63ee729 [vm/bytecode] Set 'TypeEnvironment.thisType' when generating bytecode
This is needed for Expression.getStaticType() to work in certain
cases and improves recognition of int operations.

Change-Id: I80073a797a39ab5d6b3715940961a231e0a8ab10
Reviewed-on: https://dart-review.googlesource.com/c/78142
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2018-10-04 19:14:33 +00:00
danrubel 9c75ab7aa9 More common fasta/analyzer parser error codes
Change-Id: I49128f2721eac1a96c15a96c823a31376f098126
Reviewed-on: https://dart-review.googlesource.com/c/78102
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-10-04 18:54:55 +00:00
danrubel a712a910cf Revise class and mixin header recovery
This updates the fasta parser to use the "incorrect" keyword
when "extend" or "on" is used instead of "extends" in a class declaration and
when "extend" or "extends" is used instead of "on" in a mixin declaration.

Change-Id: I6bef3f897e24c3c0100180d2bf9f4d2ec7608eef
Reviewed-on: https://dart-review.googlesource.com/c/78101
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-10-04 18:51:44 +00:00
pq 588b0d1222 make pubspec file path to absolute
Change-Id: I952c201e9319fd78969429c8e7a5a9d7b59d59e6
Reviewed-on: https://dart-review.googlesource.com/c/78143
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2018-10-04 17:59:40 +00:00
Brian Wilkerson 291f8abff8 More hint cleanup in analyzer
Change-Id: I44c3d8bc0295cc9dfd760fde26843831378f6c20
Reviewed-on: https://dart-review.googlesource.com/c/78140
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-10-04 16:44:11 +00:00
Brian Wilkerson 0cc7993ee3 Clean up a couple of hints in analyzer code
Change-Id: Ifd87f31f1441016d043fb2741ccf9dcd61ce0f0f
Reviewed-on: https://dart-review.googlesource.com/c/77674
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-10-04 14:54:28 +00:00
danrubel def9d4c405 Cleanup endMethod and endFactoryMethod parameter recovery
This CL moves missing parameter recovery code out of the AstBuilder into
the parser, and adds guard code in the AstBuilder to assert that param is not null.

Change-Id: I8e68194ad3de4b8a4be755f8fa2943344393267a
Reviewed-on: https://dart-review.googlesource.com/c/78000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-10-04 14:06:27 +00:00