Commit graph

83284 commits

Author SHA1 Message Date
William Hesse 05b19a2218 Bump SDK version to 2.17
TEST=Standard CQ

Change-Id: I0eba9fa6eaa73bf9da8abdd93645a8e6eb8e601b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226691
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2022-01-10 11:05:10 +00:00
Jens Johansen cc2c87fce2 [CFE] Use map instead of list to avoid quadratic behavior
...for many implements.

https://github.com/dart-lang/sdk/issues/48011

Change-Id: Id654864a2929981f5771fe491fa811d123daabcd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226684
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-01-10 08:28:21 +00:00
Jens Johansen 8514a28ea4 [sdk/lib] Better presubmit check for libraries.{json,yaml}
Logical follow-up to https://dart-review.googlesource.com/c/sdk/+/226681

Change-Id: Ie35edd7931b3d19d8ef4e8134179ab7e58c7609c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226683
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-01-10 08:26:20 +00:00
Konstantin Shcheglov 7830dc91a1 Remove TODO from DefaultTypesBuilder.
A TypeParameterElement has node only when we are linking it.

Change-Id: Ib56ad8226aebab3b3376e8a85c5ac515ae87ab3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226965
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-08 21:02:07 +00:00
Alexander Aprelev cb64a64241 [vm/isolate_exit] Ensure ffi code exits if isolate is exiting.
When ffi code calls Dart code that requests the isolate to exit(via Isolate.exit, for example), we ensure that isolate indeed exits on return from ffi call.
This is implemented by introduction of new safepoint bit which, once set, forces ExitSafepoint to propagate unwind error.

TEST=isolate_exit_sandwich_test

Change-Id: I2e8f5ecec7f4e59ae5f99b9525cc566f20d4b6a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/219846
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2022-01-08 06:01:08 +00:00
Ben Konyi 5b4acc8879 [ package:dds ] Update DDS pubspec and CHANGELOG for 2.1.7 release
Fixes https://github.com/dart-lang/sdk/issues/47978

Change-Id: I7a84453643f4ded7a71780606b8496c579046abb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226282
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2022-01-07 22:14:56 +00:00
Alexander Markov 8ec91ff653 [vm] Support absent 'values' field in enum classes
VM queries the list of enum elements during class finalization
in order to be prepared for the future hot reload. This is done by
reading 'values' field. However, 'values' field can be missing if
running from a dill file which was tree-shaken. This change avoids
crash in that case and handles missing 'values' field as if it was
declared with an empty list.

TEST=Manually tested in g3.

Issue: https://github.com/dart-lang/sdk/issues/47861
Bug: b/213584901
Change-Id: Ic7271476ee115aa93a73a824af3a867784b820eb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226981
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-01-07 22:13:36 +00:00
Ben Konyi 4475267f70 [ VM / Service ] Add --log_service_response_sizes=<log.csv> debug option
Providing `--log_service_response_sizes` will cause the VM to log VM service
response sizes to the provided file in CSV format.

Also added `--service_response_sizes_directory` to the service test
runner to allow for collecting response size data for the entire service
test suite.

TEST=Local

Change-Id: I7aaf4ba936e2593e67d46ff9052e2130374ef461
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226805
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-01-07 21:22:56 +00:00
Konstantin Shcheglov 1982520d1f Deprecate AnalysisDriver.tmp1, switch to unnamed.
Change-Id: Icdbb11afdcf45c975b999590c7af85d3b049c2ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226961
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-07 20:37:36 +00:00
Konstantin Shcheglov 63ea320ceb Stop using special field elements for enums.
Change-Id: I777d2cb54c173036e1e032709c37411ac26ed30f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/223020
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-07 20:29:26 +00:00
Alexander Aprelev f40b06a8ac [dartdev] Make directory cleanup more resilient on Windows.
Processes on Windows can take longer to exit, taking longer for directories they use to become available for deletion. Accommodate this potentially lengthy by trying several times to delete temp directories before failing the test.

Fixes https://github.com/dart-lang/sdk/issues/47700
TEST=run_test on Windows

Change-Id: Id73d6ba3ff981ed59c89ab833f5775eff5375ae6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226980
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2022-01-07 19:12:56 +00:00
Konstantin Shcheglov 8ba6128378 Remove deprecated AnalysisDriver constructor.
Change-Id: Ida5366d5d6419944c0b654f67375bccd8ca507e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226804
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-07 18:44:36 +00:00
Konstantin Shcheglov 6041987d33 Index, search, rename for super-formal parameters.
Change-Id: Ic220a9011914a54a9b35e667edbe90af4257b860
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226803
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-07 18:18:56 +00:00
Johnni Winther 1bd5034ac8 [sdk] Update Isolate.debugName patch to match origin
Closes https://github.com/dart-lang/sdk/issues/48090

Change-Id: I18aa27ee73bbda2f4d4a0125084c9e9a041d7af6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226682
Reviewed-by: Lasse Nielsen <lrn@google.com>
2022-01-07 15:52:14 +00:00
Lasse R.H. Nielsen 7dcd2ba888 Reinstate accidentally removed CHANGELOG entry.
Change-Id: I348f07341600bb00f8878ab8d482a29b3a19d907
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226690
Auto-Submit: Lasse Nielsen <lrn@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2022-01-07 15:43:55 +00:00
William Hesse 47f537cdf7 [infra] Remove duplicate flutter analyze snippets step from script
The snippets analyze step in [flutter]/dev/bots/analyze.dart now uses our built SDK when analyzing the code snippets. The explicit duplicate command to analyze the snippets with our SDK can now be removed.

The temp directory created in the script is not in the builder cache
on swarming, so it is automatically deleted when the builder finishes.
So we remove the cleanup step, which was trapping signals. That trap
seems to have been responsible for these failures and exit code confusion.

Bug: https://github.com/dart-lang/sdk/issues/47881
Change-Id: I49406954af54a0fba1ceec230c3551f8ad14e8e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226685
Reviewed-by: Paul Berry <paulberry@google.com>
2022-01-07 14:39:20 +00:00
Lasse R.H. Nielsen 27130d84fc Remember Since annotations on new weak API.
Change-Id: I5285a0afffa4629c2ab3f26c0bd58d377375316d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226686
Auto-Submit: Lasse Nielsen <lrn@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2022-01-07 14:31:45 +00:00
Alexander Markov a09c585772 [vm/aot] Keep static type of a conditional expression when removing it in tree shaker
In order to make sure static types in kernel AST are still correct
after tree shaking, tree shaker needs to insert no-op unsafeCast calls
when removing conditional expressions, as ConditionalExpression nodes
have explicit 'staticType' which may be different from static types of
sub-expressions.

Otherwise we might end up with an untyped function call
(FunctionInvocation with FunctionAccessKind.Function)
performed from a receiver with a known function type.
That would violate VM's assumptions about static type of receiver
being checked by the front-end and trigger assertion in
pkg/vm/lib/transformations/call_site_annotator.dart.

TEST=runtime/tests/vm/dart/untyped_function_invocation_with_known_function_type_test.dart
TEST=pkg/vm/testcases/transformations/type_flow/transformer/null_test_elimination2_nnbd_strong.dart

Change-Id: I6bf201a979d1b71eb48ed04f154adf2b62dac922
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226741
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-01-07 14:22:26 +00:00
Lasse R.H. Nielsen d095700f13 Add WeakReference and Finalizer to dart:core.
This adds the abstract classes with external factory constructors,
and adds throwing constructors to all backed patch files.

Further implementation can add the functionality for the backends.

This addresses part of #47773, leaving the FFI class to the
FFI implementors.

Bug: https://github.com/47773
Change-Id: Id7ee0006b6ea5ed789867a143ee6266f6dbbef66
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221502
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2022-01-07 13:20:06 +00:00
Lasse R.H. Nielsen 0a8298d14c Add test of new enum features.
Change-Id: I3aece084b53a1a23c9c8d9ebaf40a8a7e4764a6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221081
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2022-01-07 13:14:17 +00:00
Konstantin Shcheglov edbf6300a1 Remove MIXIN_INFERENCE_NO_POSSIBLE_SUBSTITUTION.
When we cannot infer types, we leave `M<dynamic>` and report
other errors.

Change-Id: Ice6ebabf4bc844ee21aa1cc842e6496fcf8b3c11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226660
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-06 22:17:45 +00:00
Konstantin Shcheglov c997e57c99 A couple of tests for super-formal parameters.
Change-Id: I3c1232286fd7ab427465e5bb39331090e05969b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226800
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-06 21:50:05 +00:00
Konstantin Shcheglov dc4f576df9 Include 'field' into FieldFormalParameterElement(s) text.
Change-Id: I8d8da30510e79c28a27886377e113d021a6ee6ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226801
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-06 21:34:25 +00:00
Paul Berry 241ef0dfac Sort declarations in flow_analysis_test.dart
Change-Id: Ic7addf569b2fe734d3007b463ab602c5ebdc2e79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226760
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-01-06 21:29:15 +00:00
Stephen Adams 44ba8ecdb2 [js_runtime] Remove unused ES6 Map _LinkedHashMap implementation
If we were to use ES6 Maps, we should try to use a single one for
all 'identity' keys (numbers, strings, enums etc).

Change-Id: Idc600b7cb48b58a074fd4c9bb6205d544f86dbc1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226540
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-01-06 19:57:31 +00:00
Konstantin Shcheglov 794a42074d Code completion for super-formal parameters.
Change-Id: I52b0786f7db8e8ec0181b5e4d7eb352b157856b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226606
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-06 19:46:15 +00:00
Nicholas Shahan 9bfb74e681 [io] Fix typo in doc for Directory.rename()
"an FileSystemException" -> "a FileSystemException"

Change-Id: Ic184ec0a2b7788c3ff04ff3d3db0b57a7316fa36
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226740
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2022-01-06 19:08:35 +00:00
Konstantin Shcheglov 3adbfcf6a5 Suggest SUPER if Feature.super_parameters is enabled.
Change-Id: I9d6393a412e5f5016359c89cf85fd910b0ac9357
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226608
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-06 19:07:55 +00:00
Ryan Macnak afe3c12b25 [vm] Move handles for the no-callbacks and unwind-in-progress errors to the VM isolate so there is no Dart allocation and no handle allocation during these errors.
TEST=ci
Change-Id: I0567cf8a9b4361df312cb4958fc7438296b65604
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226605
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-01-06 18:38:28 +00:00
Johnni Winther 179468706b [cfe] Add presubmit check for libraries_specification
This adds a presubmit check for the consistency between
libraries_specification.yaml and libraries_specification.json.

Change-Id: Iea23952c92516317b179f7dbb7ba343779325a89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226681
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-01-06 18:36:55 +00:00
Konstantin Shcheglov ac5ec0a63f Use ParameterElement.hasDefaultValue to report MISSING_DEFAULT_VALUE_FOR_PARAMETER.
Initial: https://dart-review.googlesource.com/c/sdk/+/226400
Reverted: https://dart-review.googlesource.com/c/sdk/+/226602

Looks green internally.
https://fusion2.corp.google.com/presubmit/tap/419952547/OCL:419952547:BASE:419969482:1641448369977:10910c62

Change-Id: Iacd51befb027533eaae8086a3153542835fdc300
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226604
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-06 18:15:36 +00:00
Danny Tuppeny 1096a554c6 [dds] Respond to launchRequest earlier, remove enableAsserts, fix test file name
Change-Id: I5182cb517476af05bfb9b0a9ca89c027cf9d1e04
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/224529
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-01-06 18:07:55 +00:00
Ben Konyi 91a496e5db Reland "[ VM / Service ] Omit private fields from service responses by default"
This reverts commit 7d39d2dd51.

TEST=N/A

Change-Id: I2119c841719c77be5380857ce209532ed036bd0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226322
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-01-06 18:05:36 +00:00
Lasse R.H. Nielsen cd0606e425 Simplify asyncExpectThrows and enhance Expect.throws.
For `asyncExpectThrows`, instead of taking a function,
then checking if that function can be called with zero arguments,
and then immediately calling it and checking that it returns a future,
just take the future as argument.

Since synchronus errors from calling the function were not caught
anyway, doing the entire `Future` computation directly shouldn't
change behavior.

Also make `asyncExpectThrows` and `Expect.throws` return the caught error,
so that you can use normal `Expect.something` checks on it afterwards,
instead of doing that in the `check` function.
That basically makes the `check` function unnecessary (but hard to remove
with the existing test corpus using it heavily).

This makes some uses of the `asyncExpectThrows` function slightly more
complicated, those that have no other way to create a future than calling
the argument function anyway, but other uses become simpler
when they can avoid adding the function wrapper.

TEST= Refactoring. If the tests keep running, it's successful.

Change-Id: I983eb65ea4805760339073fabc27f78c57f9a471
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226102
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2022-01-06 17:06:47 +00:00
Alexander Markov 540dde6329 [vm] Replace synthetic expression evaluation classes with real classes in types
When loading and compiling a function for expression evaluation
we might reference synthetic class of that function in types
(e.g. receiver type). However, that class is not registered
(so it could be garbage collected) and it has kIllegalCid.
Types constructed using such class are not very useful and
may crash if class is queried (for example if type is finalized).

This change attempts to replace such synthetic classes with
real classes in types constructed during loading.

TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/48024
Change-Id: I6c5c1b1d20ac2ce4c43e5a7e456d5a8756a43727
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226603
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-01-06 16:12:55 +00:00
Johnni Winther ba98ca1be1 [cfe] Add measurement for patterns
This CL adds an initial framework for testing performance of programming
patterns. Included is a test of the pattern used to choose
implementation based on a runtime type, using either an if-then-else
sequence, dynamic dispatch on the runtime object, or visitor pattern.

The test framework runs the patterns on a range of inputs using a
predefined set of scenarios and outputs a table of the measurements which
can be copied into Google Sheets to visualize the results.

Further work is to use statistics to quantify the results, and expand
the framework to be used to detect asymptotic performance of algorithms
used in the compiler itself.

Change-Id: Ic99588d13adead309715957e1bc0aa6def46c9dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226104
Reviewed-by: Jens Johansen <jensj@google.com>
2022-01-06 15:15:58 +00:00
Aske Simon Christensen aa99cf181d [cfe] Name synthetic setter parameter for late field lowering
The TFA assumes that all parameters have a name, so in order to use the
TFA together with late field lowering in dart2wasm, the synthetic
parameter produced by late field lowering must be given a name.

Change-Id: If8d9aeee815ef4deebdd12b3ff9dbd820c0e282b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/224527
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2022-01-06 14:52:36 +00:00
Vyacheslav Egorov 47328d209e [gardening] Update Inliner_List_generate test expectations.
6daf74f845 has eliminated the boxing
operation on 32-bit platforms.

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

TEST=ci

Fixed: 48083
Cq-Include-Trybots: luci.dart.try:vm-kernel-linux-release-simarm-try
Change-Id: I69f716edb97cf565910dc71da85af0d9ac5cf3a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226680
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2022-01-06 10:47:30 +00:00
Stephen Adams 8bdd732e08 [dart2js] Add --utf8 canary option
Change-Id: I98078be0fe07b1037d0bb70986be8769e170708a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/225520
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-01-06 05:24:25 +00:00
Stephen Adams d8c8474387 [benchmark] Add MapCopy benchmark
Change-Id: I8684dc9c79f9194999f89de1587a72067ec72426
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/225880
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-01-06 03:32:34 +00:00
Konstantin Shcheglov 2f222990dc Rewrite remaining named argument tests to checks.
Change-Id: Iedab51f44bf17512f5aa7d7270a5f7f880cba90c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226600
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-01-05 22:16:51 +00:00
Ryan Macnak 0ec95bf5ee [vm] Define kFpuRegisterSize based on the target architecture, not the host architecture.
TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/47802
Change-Id: Icf4522df4109dd653727aa988ba4dccd8f939ae2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226420
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-01-05 22:03:44 +00:00
Konstantin Shcheglov 7c3f5234a5 Revert "Use ParameterElement.hasDefaultValue to report MISSING_DEFAULT_VALUE_FOR_PARAMETER."
This reverts commit 21171640e0.

Reason for revert: breaks google3

Original change's description:
> Use ParameterElement.hasDefaultValue to report MISSING_DEFAULT_VALUE_FOR_PARAMETER.
>
> Change-Id: I70426d536fec6411dfd539900438f971516d766f
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226400
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
> Reviewed-by: Samuel Rawlins <srawlins@google.com>

TBR=scheglov@google.com,brianwilkerson@google.com,srawlins@google.com

Change-Id: Ia677b1fc3c4320e85e530b226c2ad917701010e0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226602
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-05 21:48:17 +00:00
Jaime Wren c548470d26 Dart Analysis Server change to the code completion getSuggestions2 protocol, adding completionMode and invocationCount.
Change-Id: I6095cda72943a52de211cf758fbf45fe98d6f0d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/225620
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2022-01-05 21:15:50 +00:00
Konstantin Shcheglov b8be03a23a Report an error when a super-formal parameter duplicates an existing explicit named argument.
Change-Id: I9999bb85c42e20fdd130e7a604aa841d32aa2f43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226500
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-01-05 21:09:50 +00:00
Konstantin Shcheglov aeb50d4e6f Make CompletionSuggestionKind a required parameter.
Change-Id: Icd69f9d2853b5acfe8dbf9a5f75ba5437a881bc1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226562
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-01-05 20:19:04 +00:00
Jake Macdonald 062bfc17cc temporarily remove conditional import of isolate_mirrors_executor.dart
this will unblock the SDK roll while we wait for a fix for https://github.com/dart-lang/sdk/issues/48057

Change-Id: I2876e298f828d45f233fbdb4738b5fe23a3c9758
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226560
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-01-05 19:29:00 +00:00
Brian Wilkerson f795340952 Add required keyword when fields are non-nullable
Fixes https://github.com/dart-lang/sdk/issues/48021

Change-Id: I75062fba435d56beaea26b93178d24030a98fb32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226482
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-01-05 18:08:46 +00:00
Nate Bosch af7d1cb693 Update to the latest package:http
Change-Id: I8f215f4d7f41dc85d1c5124bf86f4d1b811e9e67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226440
Reviewed-by: Jake Macdonald <jakemac@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2022-01-05 18:08:37 +00:00
Sam Rawlins a1d5eba2ae analyzer: do not use leading underscores in local variable names
This is not yet enforced in analysis_options.yaml due to a just-closed
bug in linter.

Change-Id: I450ed2a24f1de7657b2f535a1dcdabdb1f9afbbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226321
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-01-05 18:00:44 +00:00