dart-sdk/pkg
Paul Berry 1d38fc4bf2 Add command-line tool to invoke type inference logging.
Type inference logging may be used to examine details of the
analyzer's type inference algorithm. It may be invoked as follows:

  dart pkg/analyzer/tool/type_inference_log.dart <file_to_analyze>

The log is printed to standard output.

Change-Id: I687e4a343e2ea11c6a757066c4375fd6a411e1af
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/372720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-06-21 21:15:29 +00:00
..
_fe_analyzer_shared Avoid setting node.staticType twice in PostfixExpressionResolver. 2024-06-21 15:44:33 +00:00
_js_interop_checks [cfe] Move fasta/codes/ to src/ and rename to cfe_codes* 2024-06-20 09:36:39 +00:00
_macros add type parameters when creating augmentations 2024-06-21 07:57:33 +00:00
analysis_server [analysis_server] Include types in closure completions when always_specify_types is enabled 2024-06-21 20:43:37 +00:00
analysis_server_client
analysis_server_plugin
analyzer Add command-line tool to invoke type inference logging. 2024-06-21 21:15:29 +00:00
analyzer_cli
analyzer_plugin Expose CommentToken as analyzer public API 2024-06-18 17:34:27 +00:00
analyzer_utilities Use shared mock packages in linter 2024-06-19 14:07:19 +00:00
async_helper
bisect_dart
build_integration
compiler [dart2js] Use patterns for HIndex simplifications 2024-06-18 23:19:28 +00:00
dart2js_info
dart2js_runtime_metrics
dart2js_tools
dart2native
dart2wasm [dart2wasm] Remove runtime blob to/from js string helpers, use JS<>() instead 2024-06-21 15:36:29 +00:00
dart_internal
dart_service_protocol_shared
dartdev Update various flutter.dev links to more stable destinations 2024-06-20 19:30:02 +00:00
dds
dds_service_extensions
dev_compiler
dtd
dtd_impl
expect
front_end [cfe] Local and top level function wildcard type parameters are non-binding. 2024-06-21 17:59:29 +00:00
frontend_server
heap_snapshot
js
js_ast
js_runtime
js_shared
json
kernel [cfe] Move fasta/codes/ to src/ and rename to cfe_codes* 2024-06-20 09:36:39 +00:00
language_versioning_2_12_test
linter Update various flutter.dev links to more stable destinations 2024-06-20 19:30:02 +00:00
macros add type parameters when creating augmentations 2024-06-21 07:57:33 +00:00
meta
mmap
modular_test
native_stack_traces
reload_test
scrape
server_plugin
smith [test] isVmAotConfiguration in custom configurations 2024-06-19 08:49:29 +00:00
sourcemap_testing
status_file
telemetry
test_runner
testing
vm [dart2wasm] Move list implementations to their own library 2024-06-21 14:46:58 +00:00
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