dart-sdk/pkg
Kallen Tu 8095cb32c6 [cfe] Formal parameter wildcards are non-binding.
This CL changes the following:
- Formal parameter wildcards can have duplicate declarations.
- Formal parameter wildcards will produce an error when used.

Most of this CL is still needed even if we want to keep these parameters in scope. I'm working on that so I'll put this out in the meantime. The tech debt is small compared to getting a move forward on the functionality of wildcards.

Bug: https://github.com/dart-lang/sdk/issues/55655
Change-Id: I5a8b6a8081ea6deb4cfd4bf2626280c6e8c98989
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370761
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2024-06-12 14:42:51 +00:00
..
_fe_analyzer_shared Reland "[dart2wasm] Check import/export pragmas in user code" 2024-06-11 13:12:27 +00:00
_js_interop_checks Reland "[dart2wasm] Check import/export pragmas in user code" 2024-06-11 13:12:27 +00:00
_macros Track async microtasks scheduled by macros, and ensure they have all completed before a macro returns. 2024-06-11 21:02:29 +00:00
analysis_server [analyzer] Generate multiple cases in missing cases fix 2024-06-12 12:45:09 +00:00
analysis_server_client
analysis_server_plugin DAS: Support Parse-only correction producers 2024-06-03 23:13:18 +00:00
analyzer [analyzer] Generate multiple cases in missing cases fix 2024-06-12 12:45:09 +00:00
analyzer_cli CQ. Make FileSource API, move to lib/source. 2024-06-03 00:36:59 +00:00
analyzer_plugin CQ. Deprecate exports from package:analyzer/src/source/source.dart 2024-06-11 22:49:51 +00:00
analyzer_utilities meta: add TargetKind to @factory 2024-06-06 15:39:56 +00:00
async_helper
bisect_dart
build_integration
compiler [cfe] Remove isNonNullableByDefault from class hierarchy 2024-06-03 06:42:54 +00:00
dart2js_info
dart2js_runtime_metrics
dart2js_tools
dart2native [dartdev] Add --depfile option to dart compile 2024-05-23 12:58:29 +00:00
dart2wasm [dart2wasm] Faster search in RTT supers data structure 2024-06-12 10:42:22 +00:00
dart_internal
dart_service_protocol_shared
dartdev [ DDS ] Update DDS launch sites to assume DDS process closes stderr 2024-06-11 18:41:01 +00:00
dds [ DDS ] Update DDS launch sites to assume DDS process closes stderr 2024-06-11 18:41:01 +00:00
dds_service_extensions
dev_compiler [ddc] Rename variable used to store late value 2024-06-05 20:50:49 +00:00
dtd
dtd_impl
expect
front_end [cfe] Formal parameter wildcards are non-binding. 2024-06-12 14:42:51 +00:00
frontend_server [pkg/vm] Consolidate kernel compilation options to an object 2024-06-10 22:56:50 +00:00
heap_snapshot
js
js_ast
js_runtime
js_shared
json package:json - drop vendored packages, prep to release 2024-05-24 15:41:05 +00:00
kernel [kernel] Add isWildcard flag to VariableDeclaration. 2024-06-10 19:33:39 +00:00
language_versioning_2_12_test
linter linter: move avoid_js_rounded_ints tests 2024-06-12 08:38:35 +00:00
macros Track async microtasks scheduled by macros, and ensure they have all completed before a macro returns. 2024-06-11 21:02:29 +00:00
meta [pkg:meta] Add topics to pubspec.yaml 2024-06-10 10:27:36 +00:00
mmap
modular_test
native_stack_traces
reload_test
scrape
server_plugin
smith
sourcemap_testing Bump collection to c90b19f07b48391f3b1b4c39dd06ef0177f8e07c 2024-06-11 17:27:21 +00:00
status_file [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
telemetry
test_runner [dart2wasm] Add dart2wasm-asserts-* configurations 2024-06-10 14:24:12 +00:00
testing
vm [pkg/vm] Consolidate kernel compilation options to an object 2024-06-10 22:56:50 +00:00
vm_service [vm] RecordCoverageInstr isn't dead code 2024-06-10 13:02:28 +00:00
vm_service_interface
vm_service_protos
vm_snapshot_analysis
wasm_builder [wasm_builder] Update incorrect docs, some minor refactoring 2024-05-15 09:49:02 +00:00
.gitignore
analysis_options.yaml
BUILD.gn
OWNERS
pkg.dart
pkg.status [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
README.md

Package validation

The packages in pkg/ are automatically validated on the LUCI CI bots. The validation is largely done by the tools/package_deps package; it can be tested locally via:

dart tools/package_deps/bin/package_deps.dart

Packages which are published

There are several packages developed in pkg/ which are published to pub. Validation of these packages is particularly important because the pub tools are not used for these packages during development; we get our dependency versions from the DEPS file. It's very easy for the dependencies specified in a package's pubspec file to get out of date wrt the packages and versions actually used.

In order to better ensure we're publishing correct packages, we validate some properties of the pubspec files on our CI system. These validations include:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that we don't use relative path deps to pkg/ or third_party/ packages

Packages which are not published

For packages in pkg/ which we do not intend to be published, we put the following comment in the pubspec.yaml file:

# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none

These pubspecs are still validated by the package validation tool. The contents are more informational as the pubspecs for these packages are not consumed by the pub tool or ecosystem.

We validate:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that a reference to a pkg/ package is done via a relative path dependency