Commit graph

99911 commits

Author SHA1 Message Date
Michael Thomsen bc21bcd663 Update breaking-changes.md
Closes https://github.com/dart-lang/sdk/pull/55019

GitOrigin-RevId: d063791d1e03e7adb59e30a320b920d224a70f01
Change-Id: I4ab4aa6895706308055bc086b419114bd4b80221
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354340
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
Reviewed-by: Marya Belanger <mbelanger@google.com>
Reviewed-by: Kevin Chisholm <kevinjchisholm@google.com>
2024-02-26 19:13:23 +00:00
Konstantin Shcheglov 5f664f7312 Enable language 3.3 in analyzer/ and analysis_server/.
Change-Id: I65a439be99cd4c75dba2fc68340e33b7d0dc8ebe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354341
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-26 19:05:20 +00:00
Konstantin Shcheglov 287d424339 Macro. Return List<ElementAnnotationImpl> from 'ElementImpl.metadata'
So, we can remove casts in a few places.

Change-Id: I3ffa0e081633560f51a72327fd8fdd9e02ac46ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354380
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-02-26 18:45:54 +00:00
Danny Tuppeny 8a62f4ac1a [analyzer] Add element display string for extension types
Fixes https://github.com/Dart-Code/Dart-Code/issues/5005

Change-Id: I8025576de57b5f459c54bd0f16fe05cf2d4fdb5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354300
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-02-26 18:44:23 +00:00
pq 39e240c484 bump package:linter language version to 3.3.0
Follow-up from https://dart-review.googlesource.com/c/sdk/+/354341

Change-Id: I24e6d952246e72c3fba76aaab926f76d6e072bfc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354360
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-02-26 18:29:53 +00:00
Konstantin Shcheglov fe41579bf6 Macro. Update JsonSerializable to use throw instead of invalid code.
Bug: https://github.com/dart-lang/sdk/issues/55005
Change-Id: I7ba716576ef5c4cb3aef1e4bd10c70824d39964a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354120
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2024-02-26 18:22:47 +00:00
dependabot[bot] d310d84f7f Bump actions/upload-artifact from 4.3.0 to 4.3.1
Closes https://github.com/dart-lang/sdk/pull/54881

GitOrigin-RevId: 0e19dc2cb23a9d2c055abfc348b60d7903e04151
Change-Id: Ic185f2f6de203b78b68170d7fb5ca6e0ff96854a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/351980
Reviewed-by: Alexander Thomas <athom@google.com>
2024-02-26 17:48:24 +00:00
Konstantin Shcheglov 421ffd331a Extension type. Issue 55006. An extension type with nullable suffix is nullable, for properties.
Bug: https://github.com/dart-lang/sdk/issues/55006
Change-Id: I5adf6029194b117470eb36f7bb62202ddc5ac92b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354180
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-26 16:48:49 +00:00
Ömer Sinan Ağacan 0ad3f77424 [dart2wasm] Start using VM's dead code elimination pass
Tested: existing tests
Change-Id: Idff55466336d53e4c20ab5c18efa6a7358bccbc0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354261
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2024-02-26 15:30:24 +00:00
Johnni Winther b673fb57ed [cfe] Support type parameters in macros api
+ report crash as a compile-time error

Change-Id: I78ba2d4689dcd73d1b35358e0d948a29d23ef22f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354024
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-02-26 15:06:19 +00:00
Martin Kustermann e07a14d590 [dart2wasm] Allow dartPrint function to intercept print()s from Dart
Instead of directly printing all `print()`s from Dart to the console,
we allow the prints to be intercepted - by specifying a `dartPrint()`
function.

=> This will fix our test infrastructure, which will now recognize
async tests as being asynchronous and waits until the async test
is actually done with testing.

=> This will also make the test infrastructure report all prints
of a test when the test fails (it reports DOM, prints, various other
events)

=> Test failure output of `tools/test.py -n dart2js-*-{firefox,chrome}`
will become actually useful, containing printed errors & stack traces.

This is similar to what dart2js does in

    sdk/lib/_internal/js_runtime/lib/js_primitives.dart

Related Issue: https://github.com/dart-lang/sdk/issues/54973

Change-Id: Ibd935fd2d0b15d1b6e444214c4556a65034957dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354100
Reviewed-by: Ömer Ağacan <omersa@google.com>
2024-02-26 14:38:35 +00:00
Martin Kustermann c28f91401c [dart2wasm] Update timeout value for dart2wasm tests from 4 min to 1 min
Change-Id: I71bf1c9a6e6a2a0903359b4883f649cd33936e2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354026
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2024-02-26 13:57:19 +00:00
Martin Kustermann c05738f04f [dart2wasm] Use the vm's mixin deduplication pass in dart2wasm
It reduces FluteCounter
* 2.5% in unoptimized mode
* 0.8% in optimzed mode (and similar when gzip'ed)

Change-Id: If4852d66e8c214754f68e4d134960e8b622d20fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354023
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-02-26 11:24:51 +00:00
Martin Kustermann c625797f8a [dart2wasm] Implement dart:developer in dart2wasm
* We migrate the `dart:developer` implementation of dart2js to
static interop.

* We make dart2wasm use the same implementation as dart2js.

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

Change-Id: I7873edc7e804500c8eca878367d9045c98a1c2e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354101
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-02-26 11:23:29 +00:00
David Morgan e0758f98bd [CFE] Use UnsupportedError instead of unsupported in type_labeler.
`unsupported` brings in a lot of transitive deps, which is undesirable
here as `type_labeler` will become a dep of `package:vm` because it's
used in error reporting of the FFI transformations.

R=johnniwinther@google.com

Change-Id: Icf6eef6f57bb67c83a9d998cc800ed747b2682e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354220
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Auto-Submit: Morgan :) <davidmorgan@google.com>
2024-02-26 10:58:22 +00:00
Jonas Termansen 49667d71b3 Roll benchmarks-internal 175974d2b43d..a7c23b242249
a7c23b2422492dcc515d1ba4abe3609b50e2a139 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/6620

R=whesse@google.com

Change-Id: I4d26f24a01a6bb5d0da10b26d0689ed4e261962d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354241
Reviewed-by: William Hesse <whesse@google.com>
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2024-02-26 10:46:02 +00:00
Jonas Termansen fe202e60c3 [infra] Recognize c.googlers.com.
Change-Id: Ibec8a8dbe627b57253aaa0ec4a91f1c408fe282a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354240
Commit-Queue: Jonas Termansen <sortie@google.com>
Auto-Submit: Jonas Termansen <sortie@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2024-02-26 10:43:23 +00:00
Robert Nystrom e27fb499f8 Roll the latest dart_style into the SDK.
This fixes a serious (but somewhat rare) bug where a line comment in a
switch expression might eat subsequent cases. See:

https://github.com/dart-lang/dart_style/issues/1404

There are no other formatting changes.

Change-Id: I7a1cb751c76abcd0507113635aab3f866a798364
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354063
Commit-Queue: Alexander Thomas <athom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2024-02-26 09:24:07 +00:00
Nate Biggs c0304fa0c6 [dart2js] Add replacementImpact to conditional impacts.
Adds a conditional impact that represents that impact if the replacement node is added to the kernel AST. This is a soundness fix for conditional impacts as the replacement node might have a different set of impacts than the "source".

It's worth noting that the only way this could lead to an incorrect compilation for protobufs is if *every* metadata field was erased. The impact of each "source" is a superset of the impact for every "replacement" node.

This code is new and behind a flag so this bug certainly won't have been visible to anyone.

Change-Id: Ifa3cb7d6b9aa46221c736a1566aa79d73f99917c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353940
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2024-02-24 06:36:42 +00:00
Sam Rawlins 02614d88ef dds: prepare for stricter implementation_imports check
As an oversight, this lint rule doesn't currently check non-lib directories. It
will in https://dart-review.googlesource.com/c/sdk/+/351160.

Change-Id: I9b96dace68ff6025ec14ab70ef7a7d9a2ab1b99e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353224
Commit-Queue: Ben Konyi <bkonyi@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-02-23 23:51:15 +00:00
Konstantin Shcheglov e5817b6945 Legacy. Remove uses of star types in tests, #2.
Change-Id: Icabef092ce55f981bc6a21819e3733340f037155
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354043
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-02-23 23:09:23 +00:00
Konstantin Shcheglov 93b4bfcfff Macro. Invoke typeDeclarationOf() for all TypeDeclaration(s).
Also include 'stackTrace' for all MacroImplementationExceptionImpl.

I reverted the same instance for type alias, we don't do it in general.
These instances do change as we run macros, e.g. append annotations.

Change-Id: I5a9f03722ba19ef5a4aada88fb044779327305bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354064
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-02-23 23:08:48 +00:00
Konstantin Shcheglov e5520938b1 Macro. Support for TypeAliasDeclaration in typeDeclarationOf().
This covers a failure in language/macros/json/json_serializable_diagnostics_test.dart

Change-Id: I751a58db6316ef2d9bb42533e279ab5fa49d1fd0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354042
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-23 21:56:59 +00:00
Konstantin Shcheglov c3637183de Legacy. Remove uses of star types in tests, #1.
Change-Id: Ie2acaf17b4333bf02fa02996b14f3398b8836039
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354041
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-02-23 21:10:48 +00:00
Konstantin Shcheglov 9018d41706 Macro. Support for TypeAliasDeclaration.
Change-Id: I4b85cfaf154591434729ba9ad5f94a6cfc2d1033
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354060
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2024-02-23 19:55:10 +00:00
Mayank Patke 9fa1c16029 [dart2js] Convert some collections of const ints to enums
Change-Id: Ib1f5c686c97f8f097fa21a435e684af86f2b569c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352975
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2024-02-23 19:52:50 +00:00
Mayank Patke 62e5a482e4 [dart2js] Convert some classes to enhanced enums
Change-Id: Ic1cb02d587e100cefb5e6ee409693cfea1b0cfed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352969
Reviewed-by: Nate Biggs <natebiggs@google.com>
2024-02-23 19:52:50 +00:00
Mayank Patke fcbf5eb56d [dart2js] Convert PragmaAnnotation to enum
Change-Id: I31a9cf2ab9874aef2ccfb329327c49302ab79f66
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353503
Reviewed-by: Stephen Adams <sra@google.com>
2024-02-23 19:52:50 +00:00
Brian Wilkerson cc711c3839 Add support for macros in implements information
Change-Id: I0406d928625adc5c7e34635d0a89592ec4cafa34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353808
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-02-23 17:50:20 +00:00
Brian Wilkerson f49e298d2e Add a failing test for a code completion issue
Change-Id: I6cc784d94e2056b4300d5529993005ba32ba72fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354040
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2024-02-23 17:30:10 +00:00
Martin Kustermann 854b68f04a [dart2wasm] Fix incorrect elimination of type argument checks.
The change in [0] was somewhat finishing RTT checks but didn't
fix that part correctly. A later fix to that code in [1] also
didn't fix the underlying issue.

[0] https://dart-review.googlesource.com/c/sdk/+/249641/22/pkg/dart2wasm/lib/types.dart#471
[1] https://dart-review.googlesource.com/c/sdk/+/292881 (which got
relanded)

Closes https://github.com/dart-lang/sdk/issues/54994
Issue https://github.com/dart-lang/sdk/issues/54998

Change-Id: I507070514e98cb66a57f4f7f08906a32993265d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353900
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2024-02-23 14:16:01 +00:00
Martin Kustermann 67d6c452b2 [dart2wasm] Avoid printing polyfill message about WebAssembly.String to console
Closes https://github.com/dart-lang/sdk/issues/54989

Change-Id: Iafd02dd866ddfd20266ccb6bbc59205d3ac75d44
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353962
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2024-02-23 12:50:01 +00:00
David Morgan dd828b4be5 [test_runner] Fix expectations on Windows when there are import loops.
The checking for loops did not normalize the first entry, causing the
expectation to be read twice in case of a loop, and the test to fail.

Simplify a little by checking when adding to the "already seen" set.

R=brianwilkerson@google.com

Change-Id: I1862f98051fc5e4f867fdf0d9b1b0884b99610ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353681
Reviewed-by: William Hesse <whesse@google.com>
Auto-Submit: Morgan :) <davidmorgan@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2024-02-23 12:10:18 +00:00
Johnni Winther 449d73697c [cfe] Use generateKernelInternal in BatchCompiler
Closes #54924

Change-Id: Ie7b12722b9ee5ff360345faab774e840117ee9d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353266
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2024-02-23 10:14:43 +00:00
Jake Macdonald 79bba81cd8 Use bit mask to serialize boolean fields on objects which have more than one.
Today, each boolean requires 1 byte. With this implementation all booleans on a class combined require between one and three bytes, depending on which ones are set.

This may or may not actually be worthwhile, please push back if you think it's not :). I can't tell much difference running real macros.

Change-Id: Ie9fac0497f0d4571c5f1314009ec9d7c474b073c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352562
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Morgan :) <davidmorgan@google.com>
2024-02-23 09:56:52 +00:00
Sergey G. Grekhov fe4ae77b22 [co19] In AOT mode turn-off tests that uses mirrors
`dart:mirrors` is not supported in AOT mode.

Bug: https://github.com/dart-lang/co19/issues/2546
Change-Id: I2b0d42df911c6f185e72239f4786a87c535de535
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353522
Reviewed-by: Siva Annamalai <asiva@google.com>
Auto-Submit: Sergey Grekhov <sgrekhov22@gmail.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2024-02-23 08:01:59 +00:00
Alexander Aprelev 34213ba605 [win/unwinding] Remove Windows7 handling of unwinding records API.
Bug: https://github.com/dart-lang/sdk/issues/54509
Change-Id: Ic88c864a1d9c0ef571576b4d39119ba3d0384135
TEST=ci
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353783
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2024-02-23 04:13:39 +00:00
Konstantin Shcheglov a9b50e1df9 Macro. Report MacroExecutionResult.exception
We don't implement typedef declarations, but it was silent.
It took me some time to discover why JsonSerializable just did not work.

Change-Id: I76d26ad90267d9a2b0e4df772158b04dab2342fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353860
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-23 01:52:18 +00:00
Marya b251d14e06 Typo always_specify_types lint
Closes https://github.com/dart-lang/sdk/pull/54992

GitOrigin-RevId: c0a791d05ad0aee995aa593ed193ac299d5159ad
Change-Id: I46223abb1a6084a2ba14b79a28afdf2c2d314d64
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353807
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2024-02-23 01:36:29 +00:00
Jonas Termansen 2f05659b62 [vm_service] Bump vm_service language version to 3.3.
Fixes: b/318347018
Change-Id: I55ad1e6b30dceef32ab32a5b70b0b9072bfc02d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344023
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-02-23 00:29:58 +00:00
Ryan Macnak 74baf5e75a [build] Set minimum version for Windows to 10.
Bug: https://github.com/dart-lang/sdk/issues/54509
Change-Id: Ia52415c7eeea031dd0e8a27b6840b1e59b2baf6a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353786
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-02-23 00:22:25 +00:00
Konstantin Shcheglov 15b6a2acbb Macro. Support for ElementAnnotationMacroDiagnosticTarget.
Change-Id: I75578cb606e7e9b3d03e42eaeab161a08ce740be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353787
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-22 23:03:15 +00:00
Martin Kustermann a21fec815a [dart2wasm] Improve cases where we use cid-based range checks for is/as
This removes an expensive type check for `is GlobalKey` in flutter code
where the `GlobalKey` has non-trivial bound.

  abstract class GlobalKey<T extends State<StatefulWidget>> { ... }

Change-Id: Ia685c0b528fdfe93d7a50685d2ba38b216277e15
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353740
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-02-22 22:15:17 +00:00
Keerti Parthasarathy 19d11a70af Add expectations for rename test.
Change-Id: I95c067030bb836416844f5334982eab152624214
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353785
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-02-22 22:09:37 +00:00
Konstantin Shcheglov 8b543efc1f Macro. Update JsonSerializable example.
Change-Id: If4a04ea29037fdc3a7c5a85eb626f54eeeb6bf4b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353801
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-22 20:52:26 +00:00
Konstantin Shcheglov 3699d8b8d1 Macro. Add 'textContains' to ExpectedContextMessage.
Similarly, use patterns for element text printer.
This makes the test a little more declarative.

Change-Id: I179973c3e226b19409665bf4f738e6ba36b42467
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353803
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-22 20:43:11 +00:00
Konstantin Shcheglov bd38fbada4 CQ. ErrorReporter, use atOffset() instead of reportErrorForOffset()
Change-Id: I506f71d1e7aa95f1c62fca1746e4a86c78720336
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353782
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2024-02-22 19:51:39 +00:00
Keerti Parthasarathy 167c0a1b78 Add tests for rename with macro code.
Change-Id: Ifa0d5245918c06fa3eda1532560523263682bd43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353780
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2024-02-22 19:22:57 +00:00
Brian Wilkerson 5eeaf42939 Add support for macros in override information
Change-Id: I308fd21becac53a6ad535b508749a119f8816709
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353781
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-02-22 19:04:51 +00:00
Konstantin Shcheglov 26e8244c2a Use File for ExpectedContextMessage.
Change-Id: I0d3eb26a9b0f5896b3aca64c75b37a0930b7a92a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353800
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-22 18:57:49 +00:00