Commit Graph

84833 Commits

Author SHA1 Message Date
Devon Carew 47c011abd7 [infra] re-land work to auto-generate .dart_tool/package_config.json
Change-Id: I0ec833062bbffa5a3f01d6dc4152b29cf0461214
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239721
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-12 17:21:02 +00:00
Joshua Litt bd0391e66c [dart2js] Enable CFE constant evaluation.
Change-Id: Ib449906bbfd95b6510e701606c43ef4c4169313b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240601
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-04-12 16:57:16 +00:00
Paul Berry 30f0e0f4d5 Discard parens before deciding whether an invocation argument is a function literal.
This extends the fix for
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.) to cover situations where the function literal passed
to an invocation is enclosed in (unnecessary) parentheses.

Change-Id: I5eb40cf73336612e241a930122f8ae7b1c25bb2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241021
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-12 16:25:22 +00:00
Parker Lougheed 03fd724529 Minor fixes to file_system_entity docs
Bug: https://github.com/dart-lang/site-www/issues/3946
Change-Id: I1e706abad40846e90b0ddc092e72f788d9e5d7ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239180
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2022-04-12 16:01:16 +00:00
Paul Berry ff84166410 Ensure that deferred function literals are visited in source order during each type inference stage.
In theory, the order of resolving function literals during a type
inference stage shouldn't matter, because the only effect of visiting
a function literal during type inference is to capture writes, and
captured writes don't affect flow analysis in other function literals
due to the fact that a variable that's write captured anywhere is
already unpromotable in other closures.

However, to be on the safe side and to make the resolution process
deterministic, it seems better to resolve the function literals in
source order during each stage.

See https://github.com/dart-lang/language/issues/731 (improved
inference for fold etc.)

Change-Id: Iaecdfbd7e1eb89583a7d744371c40e2b904c7634
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241020
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-12 15:24:22 +00:00
pq 16b436151a migrate server to recommended lints
See: https://github.com/dart-lang/sdk/issues/48785

Change-Id: I1bec40cc0b52e5df5f07c35ec993e08c56a59cbe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240907
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-04-12 13:34:12 +00:00
Paul Berry ccb579070a Nomenclature change: closure -> function literal (for issue 731).
As Lasse pointed out in an internal review of the fix for
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.), what I've implemented actually doesn't apply to all
closures, just to function literals.  (Tearoffs of local functions are
also closures).  This change adjusts the nomenclature to consistently
use the term "function literal" rather than "closure".

Change-Id: I64f255955494f7f881a081c32c9220c41cdc7990
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240861
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-12 13:04:22 +00:00
Daco Harkes 5ca6eec782 [vm/ffi] Add Since annotations to dart:ffi
Closes: https://github.com/dart-lang/sdk/issues/48711

Change-Id: Iac0bcecdf81b02bcb2feb746aa94a1bef6caf600
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240045
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2022-04-12 11:06:21 +00:00
Paul Berry 02fc734b99 Rework InvocationInferrer.rawType.
Changed from a non-final field to a parameter, to avoid confusion when
the value changes.

Change-Id: If7190ed36d93b903f61a3ea41bfa438bc287b734
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240646
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-12 04:44:44 +00:00
Konstantin Shcheglov 6780963e39 Remove more 'pub' references from analyzer/ and analysis_server/.
Bug: https://github.com/dart-lang/sdk/issues/48682
Change-Id: If8821f92b10e7f65b590911fceedd79b54dfec08
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240940
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-12 03:59:11 +00:00
Paul Berry b7257ef58e Skip horizontal inference when unncessary due to explicit closure parameter types.
The purpose of horizontal inference is to allow the types of closure
parameters to be inferred based on the static type of other arguments
in the same invocation.  When the closure parameter in question
already has an explicit type, there is no benefit, and there are
potential drawbacks (because horizontal inference could infer too
narrow a type).

This change includes the explicitness/implicitness of closure
parameter types in the dependency analysis for
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.) so that we won't do horizontal inference when it's not
needed.

Change-Id: I33781877685867a8fcb40de54fc055f6348c21b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240505
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-12 03:27:32 +00:00
Konstantin Shcheglov 8f74289932 Add a fake test when MacrosEnvironment is not available.
Bug: https://buganizer.corp.google.com/issues/228869082
Change-Id: I0a5150e5e5edfed23e8cfa62ac822d151034b76c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240908
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-12 01:28:01 +00:00
pq e0d87b8f48 migrate analyzer to recommended lints
See: https://github.com/dart-lang/sdk/issues/48784

Change-Id: I69a2b6ef16159796e5fa405308438df62af6c826
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240905
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-04-11 22:47:41 +00:00
Konstantin Shcheglov 9fa681712f Issue 48682. Run 'dart pub' in PluginManager.
Bug: https://github.com/dart-lang/sdk/issues/48682
Change-Id: Ifc024b381bce23b914a6849c9d82cf89292706a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240901
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-11 20:11:11 +00:00
Konstantin Shcheglov 7e7b271586 Support for element model tests with macros.
Change-Id: Ief2397b79aec91ff975f15d731ef251be9d6e075
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237859
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-11 19:31:23 +00:00
Alexander Markov 9a8b63d6fa [vm/tests] Fix reachability of Finalizer in vm/dart/finalizer/finalizer_zone_run_gc_test
Finalizer is not guaranteed to run if it becomes unreachable.
The test vm/dart/finalizer/finalizer_zone_run_gc_test incorrectly
assumed that Finalizer stored in a local variable is still reachable
after the last use of variable, but that is not guaranteed.

(Previously, async functions captured local variables into the
context and objects stored in local variables in async functions were
reachable even after variables become unused.
With the new async/await implementation, local variables in async
functions are handled in the same way as in ordinary functions and
not stored into the context, so this test started failing as
Finalizer was garbage collected and not executed.)

TEST=vm/dart/finalizer/finalizer_zone_run_gc_test

Change-Id: Id025556c68c5fc1cf08b06d44cb9d5bbd21dd916
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239860
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-04-11 18:01:22 +00:00
Konstantin Shcheglov 425fb22638 Restore building types from macros.
Now that we can be async during linking, we can re-apply it.

Change-Id: I6a5bfb1881e4e04028fcaa75c43407699483d5d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240781
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-11 17:48:51 +00:00
Paul Berry cd005ecdd4 Rework ClosureDependencies to include all arguments in dependency analysis.
This change addresses a corner case discovered during internal testing
of the fix for https://github.com/dart-lang/language/issues/731
(improved inference for fold etc.): if there is no order dependency
forcing us to do a round of horizontal inference between visiting
non-closure arguments and closure arguments, then it's important that
we *don't* do a round of horizontal inference before visiting the
closure, because there is a risk of inferring too narrow a type.

The new algorithm includes all the invocation arguments in dependency
analysis, and the dependency rules are structured such that
non-closure arguments always wind up in stage 1.  If there is no
dependency between non-closure arguments and closure arguments, then
the closure arguments also wind up in stage 1, and no horizontal
inference occurs.  If there is a dependency, then closure arguments
wind up in stage 2 or later, and horizontal inference occurs between
stages.

Change-Id: Ida0b28da211f63191c9c9c39e6004893617507bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240442
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-04-11 16:51:01 +00:00
Oleh Prypin a3478da7fa Resolve clang-tidy warnings 'readability-redundant-smartptr-get'
4 instances of the following issue: redundant get() call on smart pointer

Tested: Only through CI. There are no changes in behavior, all possible problems would be found through a compilation failure.
Change-Id: Ib11432baef83d3daebd800b365183e1ea6621136
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240540
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Oleh Prypin <oprypin@google.com>
2022-04-11 15:42:01 +00:00
Chloe Stefantsova 3d27f5cb79 [cfe] Adjust nullability of FutureOr in ReplacementVisitor
This fix is analogous to that made in _TypeSubstitutor in
https://dart-review.googlesource.com/c/sdk/+/240049, but made for
ReplacementVisitor.

Closes https://github.com/dart-lang/sdk/issues/48768

Change-Id: Ie3ac8fe834210d1249cbd5bd3d68b416f9efc034
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240722
Auto-Submit: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-11 06:39:50 +00:00
Ahmed Ashour f2b5ba82ab Add a hint for final FieldFormalParameter and SuperFormalParameter
Fixes #48699

Change-Id: Ieb16648a52884588e406931f830e4655b120cb0c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-10 18:11:00 +00:00
Konstantin Shcheglov dafe470477 Update completion benchmarks to the new protocol.
Stop subscribing for AVAILABLE_SUGGESTION_SETS.

Change-Id: I93aa0f1227d766346a115327d1f79e95739a2435
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240761
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-10 17:35:30 +00:00
Brian Wilkerson 6a41e19376 Use constructor tear-offs for correction producers
Change-Id: Idc5eb82560c7be3fc52c81e48767545e6fcea2e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240760
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-10 15:57:02 +00:00
Brian Wilkerson 21446b16d6 Rework exception handling for legacy handlers
This is an attempt to make the change to exception handling that you
mentioned in a previous CL. Let me know if this doesn't resolve the
problem you saw.

Also, this changes the number of responses and notifications found in a
poorly written test. I don't know whether it will change the behavior
that clients see, and if so whether that will cause problems, but it's
a little concerning. Interested to hear your thoughts.

Change-Id: I135e96bea5bd6e5e673dcdddd1b421e4c2011f89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240647
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-10 15:47:43 +00:00
Konstantin Shcheglov 531cb9784a Add ExecutableElementImpl.invokesSuperSelf, fix getter / setter matching.
Bug: https://github.com/dart-lang/sdk/issues/48352
Change-Id: I443df48885eebadbe85d82ff06474aef4db6e422
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240652
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-09 19:12:39 +00:00
Konstantin Shcheglov 178a147d0a Store 'exportedReferences' in 'LibraryElementImpl'.
With async access to LibraryElement(s) it seems that there are
more ways for partially initialized elements to become invalidated.

Bug: https://github.com/dart-lang/sdk/issues/48770
Change-Id: I5578c7a11b6870245473357bde17120b181f3f33
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240649
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-09 18:29:49 +00:00
Stephen Adams 30413a1c5f [dart2js] Require SDK 2.16
Change-Id: I1594cb85c40feae1508ec31a5b4740eb6ca72816
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240600
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-04-09 04:15:20 +00:00
Sigmund Cherem d2d810a8e8 [modular_test] Remove uses of .packages altogether.
Embed in the modules.yaml any extra paths needed for package dependencies
instead.

This is one step to help towards https://github.com/dart-lang/sdk/issues/48275

Change-Id: I22ef02b2b2327a0c798f2fea73d59c758a8bb0bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240651
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2022-04-09 00:35:13 +00:00
Sigmund Cherem 441a762352 [modular_test] no longer generate .packages within modular test suites
Since the null-safety test migration we've been generating both a .packages file
and a package_config.json file. This deletes the use of the old .packages file
and updates all references to use the new file.

Change-Id: Iecef64ac8ed8579338795ad5327765118d643236
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240650
Reviewed-by: Joshua Litt <joshualitt@google.com>
2022-04-09 00:35:13 +00:00
Nate Biggs dbc91a01ad [dart2js] Skip lowering async functions with await...for loops.
These loops introduce control flow that is more complex and harder to represent with Futures.

Tests are back to their state prior to the start of the async/await lowering changes. (The one failing test was already timing out)

Change-Id: Ia65f1a11bd73f2a30e7a186d69c34774c9e361a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240381
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-04-08 21:47:29 +00:00
Konstantin Shcheglov df0ebab22b Fix BulkFixesTest on Windows.
Change-Id: I8ff97c7a7cc94f7d7bd762b113db65cbf5321625
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240648
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-08 20:30:09 +00:00
Stephen Adams 3384f458e4 [dart2js] Missed file clamped to 2.10
Change-Id: I7eb820d6326572c106633a2632d77e22bcff7ae7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240740
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-04-08 19:17:39 +00:00
Erik Ernst b71bd25a97 Add test about evaluation order
This CL adds a test of the evaluation order in the case where a function
invocation `g(a)` or `r.g(a)` involves the invocation of a getter `g` that
returns a function object, and that function object is invoked with an
actual argument `a`.

The expectation in the test is that evaluation occurs left-to-right in
every case, with one exception: when `g` is a class instance getter (this
does not apply to extension instance getters) the actual argument list
is evaluated before the getter. This is the actually implemented behavior,
and the specification is being updated to specify this behavior
(cf. https://github.com/dart-lang/language/pull/2182).

------- Old description:

A piece of technical debt which has been around for several years is the
fact that the specified left-to-right evaluation order isn't implemented
everywhere.

In particular, with an ordinary invocation like `r.m(a)` where `m` is a
getter that returns a function, the argument is evaluated before the
getter is called, which is not a left-to-right ordering.

This CL adds a test (with 2 libraries) where the evaluation order is
detected, such that we can decide how to proceed.

Change-Id: Ia2619fe6b4c4cf4cec63bac9c9f834306bdefe52
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238903
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2022-04-08 17:44:18 +00:00
Joshua Litt ca59d05807 [dart2js] Eliminate a use of a tree node in impact data(2).
This CL moves the handling of the runtime type use hint to when we build
impact data.

Change-Id: I2807f05f604103809f8b62da55f43dd89029e7ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239845
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-04-08 17:41:18 +00:00
Konstantin Shcheglov c224d21880 Migrate edit domain tests to PubPackageAnalysisServerTest.
Change-Id: Ia8d2bb4b5739f3b666c842fa318fc0101858905d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240644
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-08 16:23:08 +00:00
Johnni Winther b566ba1fdb [cfe] Run incremental macro tests in separate incremental compilers
The way constants are printed using ast-to-text depend on which
libraries are available in the component. Because the incremental
compiler (by default) only returns the libraries that have been
recompiled, the first compilation contains more libraries than the
subsequent compilations. Using the same incremental compiler throughout
the incremental macro test made the output depend on the order in which
the tests were run, which in turn was dependent on the file order in
the directory.

To avoid this, and to support running individual tests with a stable
output, each test is now using its own increment compiler for all the
incremental steps within the test.

Closes https://github.com/dart-lang/sdk/issues/48558

Change-Id: I37946ed0f940b6644c5efb2b7d167b2a5717f2f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240721
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-08 15:57:48 +00:00
Paul Berry a17bd9e9bc Add a FormalParameter.isExplicitlyTyped getter.
This is needed for my work on
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.) because I want to use slightly different heuristics
when the closure passed to `fold` has explicitly parameter types.

Change-Id: I7567df620e22bb53fcdb0f5cd8ceadf0c58c2126
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240504
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-08 14:47:39 +00:00
Sam Rawlins a1257544e0 analyzer: skip CodeChecker for null safe libraries
In some profiling, I saw that CodeChecker accounted for ~10% of the time
spent in `LibraryAnalyzer._computeVerifyErrors`.

The only errors which are reported any longer in CodeChecker are
pre-null safe errors, and the TOP_LEVEL_CYCLE error, which is moved to
resolution.

Change-Id: I9ad38a1c76490a95cbb8464465e37a07622b4f97
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240643
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-04-08 14:27:48 +00:00
Martin Kustermann 20bb5acf8b [gardening] Mark vm/dart{,_2}/regress47472_test as slow
The test throws 1 million exceptions which can, especially in debug mode
can take very long.

This addresses flaky timeouts of this test in debug mode.

TEST=ci

Change-Id: Ibfa9108d49303d62aa4267c07e03499d0a831292
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240700
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2022-04-08 12:23:18 +00:00
Johnni Winther 08b776ac47 [cfe] Remove language version from extensions tests
Change-Id: Ie380dda35cbf449669eb06d18cef284915dc748e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239305
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-08 11:20:08 +00:00
Johnni Winther f5831de5b1 [cfe] Support arguments in macro applications
Change-Id: I87281598b18443778bdfe8444b455cd80da5155a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240544
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-08 09:18:08 +00:00
Jens Johansen 2a3d3eba34 [CFE] Fuzz pass that splits files
Change-Id: I03a16cca748a9a81a6f34f847e08c4ad38e86e6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239668
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-04-08 08:45:29 +00:00
Alexander Thomas 8033f609ff [release] Bump version to 2.18
Tested: Default CQ run; Dart VM changes were generated.
Change-Id: If0ea7b9fd2bb0de8459c9d4b39b9cc91cec73e23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240542
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2022-04-08 08:25:33 +00:00
Konstantin Shcheglov 1377e006fb Switch analysis_server to 2.15
So, we can use constructor tear-offs :-)

Change-Id: Ib819da7715e49496b01defa9dc3837bd70019134
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240642
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-08 06:29:48 +00:00
Konstantin Shcheglov 6b6e6da943 Include 'invokesSuperSelf' flag into unlinked API signature.
We will add this flag as a property of MethodElement. So, it will
affect the semantics, and should be a part of unlinked signature.

Change-Id: If24b09fcd000364a2ddb3737baa69af3d1c6fbd5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240641
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-08 05:28:58 +00:00
Brian Wilkerson 7f8bf79ad8 Remove three more handlers
Change-Id: I5c79fbc2867780811c5703b8619d0eac89e94aab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240602
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-08 04:23:28 +00:00
Konstantin Shcheglov 4b7cb553e8 Drop 'link2' import suffix.
Change-Id: I44ccf9d3ca18c662732a3852b66682b7d79a8580
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240640
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-08 03:41:58 +00:00
Konstantin Shcheglov 34c8898d87 Rename link2() to link(), deprecate link2().
Change-Id: Ib1709af2f01e8f0231891ff9790d0c33bf5d27b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240503
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-08 01:19:00 +00:00
Ryan Macnak 44c1a24f90 [vm, compiler] Fix ARM64 TSAN.
TEST=local
Change-Id: If7501a69c89763d9e62a5d0eab865e47c38f88cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240322
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-04-08 00:51:18 +00:00
Konstantin Shcheglov 34c29599ae Add granular enum / extension member signatures, tests.
Change-Id: If50b860f194b1ee9bbda7132933176cdd3169bb4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240480
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-07 23:57:38 +00:00