Konstantin Shcheglov
2db49488c1
CodeGen. Generate members of most leaf AstNodeImpl classes.
...
Every declaration annotated with `@generated` was generated. In the
current version there are `2180` such declarations. For comparison,
there are `2167` instances of `@override` in total, and `@generated +
@override` has `1576` instances, so we generate `72%` of all overrides.
The generator automatically formats and sorts `ast.dart` after applying
changes, so the result is nice and clean. We run a separate DAS instance
from the script to do this.
Things to improve in the future:
1. Generate for non-leaf classes.
2. Support for `DoNotGenerate`.
Change-Id: I05e6356c9aac68449d5117ad8fd533735f130c73
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427481
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2025-05-15 18:05:42 -07:00
Sam Rawlins
4ef2725654
Add an analyzer_testing package
...
We intend to publish and maintain this as a set of testing-related
utilities for the analyzer packages and for analyzer plugins.
Work towards https://github.com/dart-lang/sdk/issues/55660
See the doc: https://docs.google.com/document/d/1jRtd8B1ijPAP6Pz89HRnyIZXw2VMjaZx0vRZTpoNO84/edit?tab=t.0#heading=h.2sz41a544qhi
Change-Id: I2764b1357a932fa955060b26d78038997eaa9536
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425080
Reviewed-by: Slava Egorov <vegorov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2025-05-02 06:58:49 -07:00
Konstantin Shcheglov
becd91df17
Format analyzer/ with tall mode.
...
Change-Id: I410cd1cf63fbf00b868bbb3e060433cad3ac9e6c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423520
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2025-04-21 12:15:58 -07:00
Konstantin Shcheglov
5e80e70f7b
Start analyzer 8.0.0-dev
...
Change-Id: I4526b2dc715c35514d282f74caacf6f5119cd1c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/422840
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2025-04-17 11:15:11 -07:00
Konstantin Shcheglov
f839989302
Prepare to publish analyzer 7.4.1 and _fe_analyzer_shared 82.0.0
...
Change-Id: I8de884bb40d15df84fca0d3f20461a16bb15c1f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/422980
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-04-16 20:37:45 -07:00
Konstantin Shcheglov
1f4fddd023
Prepare to publish analyzer 7.4.0 and _fe_analyzer_shared 81.0.0
...
Change-Id: I1dcbcc686b956843c590b09a8c2078f909bd7639
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/422383
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2025-04-15 13:06:32 -07:00
Sigurd Meldgaard
2fe05bd568
Reland "Migrate to use pub workspace"
...
This is a reland of commit b9b77058a9
Original change's description:
> Migrate to use pub workspace
>
> Use `pub get` to generate `.dart_tool/package_config.json` on gclient sync.
>
> All pkg/ (and a few third_party) packages that are developed inside the sdk repo are included in the workspace from the root `pubspec.yaml`.
>
> All dependencies that are pulled in via DEPS are added as path dependencies via `dependency_overrides` in the root `pubspec.yaml`.
>
> Bug: https://github.com/dart-lang/sdk/issues/56220
> Change-Id: I38c12b608c68da54c57821116cf9aa6696936746
> Tested: relies on CQ of existing tests. Should have no effect on functionality
> CoreLibraryReviewExempt: only core library change is adding a `// ignore:` comment. Should have no influence on functionality
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397164
> Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
> Reviewed-by: Alexander Thomas <athom@google.com >
Bug: https://github.com/dart-lang/sdk/issues/56220
Change-Id: I29afabade2d2447dea05121cb87ff50bb21a4b76
Cq-Include-Trybots: luci.dart.try:flutter-linux-try,flutter-web-try
Tested: relies on CQ of existing tests. Should have no effect on functionality
CoreLibraryReviewExempt: only core library change is adding a `//
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415561
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-03-20 06:19:16 -07:00
Sigurd Meldgaard
6c4de1ab7e
Revert "Migrate to use pub workspace"
...
This reverts commit b9b77058a9 .
Revert "Add missing sample pubspec to workspace"
This reverts commit 892ea15ac7 .
These seem to break the engine.
Change-Id: Ieee26deb7928c3869a1b6265326c3ce568ffe731
Tested: this is a revert.
CoreLibraryReviewExempt: this is a revert
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415582
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-03-14 09:08:20 -07:00
Sigurd Meldgaard
b9b77058a9
Migrate to use pub workspace
...
Use `pub get` to generate `.dart_tool/package_config.json` on gclient sync.
All pkg/ (and a few third_party) packages that are developed inside the sdk repo are included in the workspace from the root `pubspec.yaml`.
All dependencies that are pulled in via DEPS are added as path dependencies via `dependency_overrides` in the root `pubspec.yaml`.
Bug: https://github.com/dart-lang/sdk/issues/56220
Change-Id: I38c12b608c68da54c57821116cf9aa6696936746
Tested: relies on CQ of existing tests. Should have no effect on functionality
CoreLibraryReviewExempt: only core library change is adding a `// ignore:` comment. Should have no influence on functionality
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397164
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-03-14 05:21:40 -07:00
Sigurd Meldgaard
9ab23d99b6
Bump language version for analyzer adjacent packages
...
Extracted from https://dart-review.googlesource.com/c/sdk/+/397164
Which migrates the sdk to resolve as a pub workspace
Pub workspaces requires a language version of 3.5.
Change-Id: I5d6246be676929ff95589a59d72613083735f70f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412042
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2025-03-11 08:42:53 -07:00
Konstantin Shcheglov
26b3e61ffe
Prepare to publish analyzer 7.3.0 and _fe_analyzer_shared 80.0.0
...
Change-Id: I5d35f23752d8dadfc118ae92a3f8fcf3928cc60e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408422
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2025-02-06 18:57:40 -08:00
Konstantin Shcheglov
b528b6e441
Macro. Remove most of the implementation.
...
Change-Id: Icd5966b91fb594a618dde38bb8b4c217ede75d9a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406724
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2025-01-30 14:58:41 -08:00
Konstantin Shcheglov
94707b6b85
Add 'flags' to FeatureSet.latestLanguageVersion()
...
Change-Id: Iebeaf74ff44c2079b319308638fa731a013fdb90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406221
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
2025-01-29 10:02:00 -08:00
Konstantin Shcheglov
5daaead4c0
Prepare to publish analyzer 7.2.0 and _fe_analyzer_shared 79.0.0
...
Change-Id: Id04050dac5db6d4d646ffd5649022452dadd0dce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404922
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-01-16 20:48:40 -08:00
Konstantin Shcheglov
8c270c4ac5
Elements. Add ElementDirective super-interface.
...
It is necessary to support source_gen with annotated directives,
e.g. to support `package:checks` code generator.
Change-Id: Ia6cf97ce7cf9a44158afb5e019805e13ffdbc96e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/402424
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2024-12-30 12:16:58 -08:00
Konstantin Shcheglov
01ab699be4
Prepare to publish analyzer 7.1.0 and _fe_analyzer_shared 78.0.0
...
Change-Id: I3fc650aca37b611ef53f50d53168b995445bd915
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399031
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-12-16 11:01:22 -08:00
Sam Rawlins
45c5424eaf
analyzer packages: Add dependency overrides and comments
...
Change-Id: I9f57df8ade46e851b73a7416e395a4d96e46ce69
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/398600
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2024-12-03 17:44:28 +00:00
Konstantin Shcheglov
004e115bc0
Prepare to publish analyzer 7.0.0 and _fe_analyzer_shared 77.0.0
...
Change-Id: Ib2510a9c8fe8055640522353fb2315f960ba9775
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396060
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2024-11-20 22:53:12 +00:00
Konstantin Shcheglov
cf1f2e53a3
Breaking changes for analyzer version 7.0.0
...
Change-Id: Id6e329c7665d1dca1920d744dd7d0e9722da768c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311461
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-10-21 21:32:28 +00:00
Konstantin Shcheglov
ddb81c1ad3
Prepare to publish analyzer 6.11.0 and _fe_analyzer_shared 76.0.0
...
Change-Id: I6ccb41385f74168891d8888db198ebda0a1716a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/389540
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2024-10-10 18:53:14 +00:00
Konstantin Shcheglov
3ef31903cc
Parts. Un-deprecate LibraryElement.exportedLibraries/importedLibraries
...
They are used mostly as dependency tracking, because without combinators we don't know specific elements exported/imported. But for such dependency purpose CompilationUnitElement level "dependencies" are useless, so we should keep them at LibraryElement, but not add to CompilationUnitElement.
Change-Id: I14aaf14debaf167f29740e86d82ff2c02e241569
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/389142
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-10-09 20:28:52 +00:00
Konstantin Shcheglov
6655f50989
Prepare to publish analyzer 6.10.0 and _fe_analyzer_shared 75.0.0
...
Change-Id: I05c4b308b8ca8f700cd4e135a999041db6271de8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388941
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-10-08 17:19:40 +00:00
Konstantin Shcheglov
4dba633c0c
Parts. Deprecate LibraryElement.accessibleExtensions
...
Change-Id: I59227d602d69949e49ed523285b5f77493f70299
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/384401
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-09-09 22:18:52 +00:00
Konstantin Shcheglov
5e609ee093
Prepare to publish analyzer 6.9.0 and _fe_analyzer_shared 74.0.0
...
Change-Id: I8e77a5ee3480ce56b6eceb50e002ca6a640e1ca9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/383721
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-09-05 16:48:51 +00:00
Jake Macdonald
5285faad67
add ParameterStyle enum and style getter to FormalParameter, closes https://github.com/dart-lang/sdk/issues/56593
...
add isConst to constructors, add const and factory keywords to augmentations, part of https://github.com/dart-lang/sdk/issues/56516
Change-Id: I424031e22636678da5c9c428099100bfac748daf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/382662
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
2024-09-04 20:16:11 +00:00
Paul Berry
43159ba5c8
Make NormalFormalParameter implement AnnotatedNode.
...
This makes sense since AnnotatedNode is the interface for AST nodes
that can be annotated with either a documentation comment, a list of
annotations (metadata), or both, and NormalFormalParameter matches
that description.
It is not 100% clear why NormalFormalParameter didn't previously
implement AnnotatedNode; my best guess is that when the class
hierarchy for the analyzer AST was first being designed, an effort was
made to make the "implements" hierarchy of the interface classes match
the "extends" hierarchy of the implementation classes, and since
`NormalFormalParameterImpl` extends `FormalParameterImpl` but not
`AnnotatedNodeImpl`, the decision was made for `NormalFormalParameter`
not to extend `AnnotatedNode`.
But there are already plenty of other cases where the "implements"
hierarchy of the interface classes doesn't match the "extends"
hierarchy of the implementation classes, and I'm not aware of this
causing any problems. For example, `AssertInitializer` implements both
`Assertion` and `ConstructorInitializer`, whereas
`AssertInitializerImpl` extends only
`ConstructorInitializerImpl`. Other AST interface classes that
implement multiple super-interfaces include `AssertStatement`,
`AssignmentExpression`, `BinaryExpression`, `CascadeExpression`,
`ConstructorReference`, `DartPattern`, `FunctionExpressionInvocation`,
`FunctionReference`, `Identifier`, `IndexExpression`,
`MethodInvocation`, `PostfixExpression`, `PrefixExpression`,
`PropertyAccess`, `RedirectingConstructorInvocation`,
`RestPatternElement`, `SuperConstructorInvocation`, and `TypeLiteral`.
This paves the way for fixing
https://github.com/dart-lang/sdk/issues/56313 , which concerns
inconsistencies in the behavior of `beginToken` between
`NormalFormalParameter` and the other `AnnotatedNode`s.
Change-Id: Id8216efea6ccbd7f02cbc6ad1b8bc8e4405b42fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/377260
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2024-07-26 16:05:57 +00:00
Konstantin Shcheglov
2c75819322
Prepare to publish analyzer 6.8.0 and _fe_analyzer_shared 73.0.0
...
Change-Id: Ie88af64e74499ba221acdc92dadd3ce1144a1f19
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/375743
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-07-15 21:34:10 +00:00
Konstantin Shcheglov
86e263f3d2
API. Add AnalysisContextCollection.dispose() to API.
...
Bug: https://github.com/dart-lang/sdk/issues/56102
Change-Id: I06a53805514655fa01e962bbc98255b5e70f3ed8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/375720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-07-15 16:57:45 +00:00
Konstantin Shcheglov
9933ca5a53
CQ. Switch to flattenedToList/ToSet from package:collection
...
Change-Id: I2cd0d4f1653ddc2701961d3b26990d1b1c5cfdc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/373604
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-06-28 22:10:41 +00:00
Konstantin Shcheglov
51ecf21356
Prepare to publish analyzer 6.7.0 and _fe_analyzer_shared 72.0.0
...
Change-Id: Idfac92660bac987a6e0576ef6418a5eadee3a98a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371800
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-06-16 17:51:49 +00:00
Konstantin Shcheglov
7ae9900059
CQ. Deprecate File.createSource()
...
Change-Id: I222989d1ef915f7f14d7a3f36eab614a163faec3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371501
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Sam Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-06-13 21:11:39 +00:00
Konstantin Shcheglov
02faed0a9a
Prepare to publish analyzer 6.6.0 and _fe_analyzer_shared 71.0.0
...
Bug: https://github.com/dart-lang/sdk/issues/55870
Change-Id: Ic06f4c0a2cc5dc5f07f72335dd172f203b948cb1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371261
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-06-13 19:56:30 +00:00
Konstantin Shcheglov
cc073a0782
Macro. Re-export package:_macros/src/executor/response_impls.dart from 'package:macros'.
...
Change-Id: I89e59cbac52edb5197e409e3000c5a3dedd80b3a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371421
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
2024-06-13 19:12:41 +00:00
Konstantin Shcheglov
31a9236cfb
Macro. Serialization for MacroExecutionResult(s).
...
Bug: https://github.com/dart-lang/language/issues/3877
Change-Id: I7897bdf27a17d004b810409ad9c2ac76bb8677b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369842
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2024-06-06 16:12:31 +00:00
Konstantin Shcheglov
b2329f92c0
CQ. Stop exporting src/file_system/file_system.dart
...
Change-Id: Idbd9f8ff36ebf339bf62e4a0c3d4d42009913d60
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368921
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-05-31 14:55:02 +00:00
Konstantin Shcheglov
106e639734
Prepare to publish analyzer 6.5.2 and _fe_analyzer_shared 70.0.0
...
After https://dart-review.googlesource.com/c/sdk/+/368424
Change-Id: I7523f96507c7cca0bb074ba67f9a53338bae350c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-05-30 17:38:39 +00:00
Simon Binder
ff6e1df848
[macros]: Remove type argument from StaticTypeImpl
...
This is a follow-up to the previous CL adding support for named static
types and instantiations to macros
(https://dart-review.googlesource.com/c/sdk/+/348920 ).
The type argument on `StaticTypeImpl` was not necessary so this CL
removes it.
Change-Id: I1e309c819be86f7f81ba4b7a418ed1f22ba7ac8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368424
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
2024-05-30 07:51:32 +00:00
Konstantin Shcheglov
cae5e3b4c3
Prepare to publish analyzer 6.5.1 and _fe_analyzer_shared 69.0.0
...
After https://dart-review.googlesource.com/c/sdk/+/368460
Change-Id: I9013bf67b820b3e47ab00c9607a043b254f588eb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368441
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2024-05-28 19:38:28 +00:00
Jake Macdonald
77490aacc7
update macros and _macros versions to reflect breaking change for implementations
...
Change-Id: Ia60631c494de0e5f8a286275c056ce0c3026410a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368460
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
Auto-Submit: Jake Macdonald <jakemac@google.com >
2024-05-28 14:40:29 +00:00
Sam Rawlins
8c85df6e6b
analyzer: enforce TargetKind.overridableMember and optionalParameter
...
Change-Id: Ic34e9df7ea10acd81e7280c4f77ec7b6b3ab86e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365680
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2024-05-07 20:45:33 +00:00
Konstantin Shcheglov
d787e48b45
Prepare to publish analyzer 6.5.0 and _fe_analyzer_shared 68.0.0
...
Change-Id: I86e157a6b7d0b5cbe757d1abb23946a6d1fbaeec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364968
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-04-30 17:56:22 +00:00
Sam Rawlins
e68eeec2eb
Analyzer: Support new meta TargetKinds
...
Change-Id: I0c0ad67fb30b91804dbdc4abaf329997cc2c1438
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/361242
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-04-08 16:20:52 +00:00
Konstantin Shcheglov
36c0788137
add package:_macros (SDK vendored) and package:macros (pub published)
...
add sdk_packages.yaml file (describes SDK vendored package locations)
delete old macro code in _fe_analyzer_shared, move tests/benchmarks
adds a top level `pkg` directory to the Dart SDK, which is where vendored packages live
BUG: https://github.com/dart-lang/sdk/issues/54976
Change-Id: Ib3503a27fb5644fa8a39ab5a3e5b568df330cfd6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/359040
Auto-Submit: Jake Macdonald <jakemac@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Jonas Termansen <sortie@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2024-03-26 18:40:00 +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
Paul Berry
9d39c79471
Change packages analyzer and _fe_analyzer_shared to use language version 3.2.
...
This will allow these packages to take advantage of private field
promotion.
Change-Id: I35dc57ecd7a0c3afde4713cd60aca86b479393a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/351162
Commit-Queue: Paul Berry <paulberry@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2024-02-09 14:19:30 +00:00
Konstantin Shcheglov
4b4834256a
Legacy. Deprecated LibraryElement.toLegacyTypeIfOptOut(), removed form TypeSystemImpl.
...
Change-Id: I556af588d8721e1f720fc86477f9b6c97cf90644
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/350000
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2024-02-02 21:10:30 +00:00
Danny Tuppeny
d6211dc141
[analyzer] Increase package:path constraint to 1.9.0
...
1.9.0 contains a fix for parsing file:// URIs with encoded colons that we can get from VS Code and is the version analyzer_plugin now requires.
Change-Id: I193ce4660116b2847a280516ba33f076f75494aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349741
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-02-01 18:36:41 +00:00
Konstantin Shcheglov
b3551c5168
Prepare to publish analyzer 6.4.1 and _fe_analyzer_shared 67.0.0
...
Change-Id: Id92537afdf8646fd5019c35e65117930dfbd64e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349300
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2024-01-30 18:01:12 +00:00
Daco Harkes
678b8e8746
[analyzer/ffi] Fix crash in ffi_verifier
...
Fixes a crash in the analyzer that was exercised via dartdoc in
https://dart-review.googlesource.com/c/sdk/+/342763 .
Landing the analyzer fix separately, so that it can be rolled first.
Bug: https://github.com/dart-lang/sdk/issues/54754
Change-Id: I40375374cb785c11e3f0b2f21a8a2c74b8f080c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349240
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Auto-Submit: Daco Harkes <dacoharkes@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-01-30 16:15:39 +00:00
Konstantin Shcheglov
d076d92f1a
Prepare to publish analyzer 6.4.0 and _fe_analyzer_shared 66.0.0
...
Change-Id: I9dc8c58d172dc580572b6c694ff77be7cd6ca883
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/347062
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2024-01-22 21:19:59 +00:00