dart-sdk/pkg
Paul Berry 8566b772f7 Stop using AstNode.setProperty to store bodyContext.
AstNode.setProperty is expensive, since it causes a map to be
allocated for each AST node it's used with. It's more performant (and
IMHO clearer) to simply store a pointer to the bodyContext in the
FunctionBodyImpl.

Change-Id: I3e8856144a6428d408335f8c9b9c5b689e44fc92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/361041
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-04-04 17:57:29 +00:00
..
_fe_analyzer_shared Stop accepting null as a context in _fe_analyzer_shared. 2024-04-04 14:45:04 +00:00
_js_interop_checks
_macros
analysis_server Stop using AstNode.setProperty to store bodyContext. 2024-04-04 17:57:29 +00:00
analysis_server_client
analyzer Stop using AstNode.setProperty to store bodyContext. 2024-04-04 17:57:29 +00:00
analyzer_cli
analyzer_plugin DAS: Move two CorrectionUtils methods to DartEditBuilder 2024-04-03 20:57:51 +00:00
analyzer_utilities
async_helper
bisect_dart
build_integration
compiler
dart2js_info
dart2js_runtime_metrics
dart2js_tools
dart2native
dart2wasm [dart2wasm] Give names to closures in names section when possible 2024-04-04 17:46:08 +00:00
dart_internal
dart_service_protocol_shared
dartdev [CLI] Ensure that resident frontend compilers never try to compile kernel files or snapshots 2024-04-03 19:38:02 +00:00
dds Improve documentation for DDS and DTD 2024-04-04 15:50:02 +00:00
dds_service_extensions
dev_compiler [ddc] Enforce more null safety on js interop 2024-04-03 23:20:15 +00:00
dtd Improve documentation for DDS and DTD 2024-04-04 15:50:02 +00:00
dtd_impl Add UnifiedAnalytics service to the Dart Tooling Daemon. 2024-04-04 00:20:32 +00:00
expect
front_end [cfe] Adjust static type of conditionals in if-null desugarings 2024-04-04 09:14:30 +00:00
frontend_server [CFE] Fix test broken by introduction of package:macros. 2024-04-03 09:10:38 +00:00
heap_snapshot
js
js_ast
js_runtime
js_shared
kernel [kernel] Clarify AssertStatement offset fields 2024-04-03 08:56:37 +00:00
language_versioning_2_12_test
linter [linter] Add unintended_html_in_doc_comment lint. 2024-04-02 21:09:51 +00:00
macros
meta Add TargetKind.constructor to _DoNotSubmit. 2024-04-04 17:45:01 +00:00
mmap
modular_test
native_stack_traces
reload_test
scrape
server_plugin
smith [ddc] Add configuration to compile with asserts 2024-04-04 14:40:30 +00:00
sourcemap_testing
status_file
telemetry
test_runner [ddc] Add configuration to compile with asserts 2024-04-04 14:40:30 +00:00
testing
vm
vm_service
vm_service_interface
vm_service_protos
vm_snapshot_analysis
wasm_builder
.gitignore
analysis_options.yaml
BUILD.gn
OWNERS
pkg.dart
pkg.status
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