dart-sdk/pkg/kernel
Chloe Stefantsova ec597188e5 [cfe] Address more cases of declaredNullability being overridden
This is a follow-up to https://dart-review.googlesource.com/c/sdk/+/350323

This CL addresses more of the cases where the `declaredNullability` of a type
object is overridden by the overall `nullability`, introducing unexpected
values to the field.

TEST=existing

Change-Id: I4830cd8113604dcc38a01ff09a9c1b2f50e091ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/351141
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2024-02-21 15:37:11 +00:00
..
bin frontend: prepare for curly_braces lint change 2024-02-21 07:28:59 +00:00
doc [cfe] Remove kernel-semantics.tex 2021-09-02 13:54:15 +00:00
lib [cfe] Address more cases of declaredNullability being overridden 2024-02-21 15:37:11 +00:00
test frontend: prepare for curly_braces lint change 2024-02-21 07:28:59 +00:00
tool [frontend_server] CFE team takes ownership of package:frontend_server 2023-12-19 10:38:28 +00:00
.gitignore
analysis_options.yaml Ignore TODO in pkg/kernel. 2023-11-29 13:54:08 +00:00
AUTHORS
binary.md [cfe] Add Throw.forErrorHandling 2024-02-19 12:12:02 +00:00
codereview.settings
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
OWNERS Let the infrastructure team bump the kernel language version. 2024-01-02 14:51:46 +00:00
PRESUBMIT.py [CFE et al] Optimize presubmit scripts 2024-01-31 10:41:20 +00:00
problems.md Fix typos 2022-10-12 14:12:42 +00:00
pubspec.yaml [kernel] Add sealed classes GenericDeclaration and GenericFunction 2023-09-08 08:32:25 +00:00
README.md

Dart Kernel

Dart Kernel is a small high-level language derived from Dart. It is designed for use as an intermediate format for whole-program analysis and transformations, and to be consumed by codegen and execution backends.

The kernel language has an in-memory representation in Dart and can be serialized as binary or text.

Both the kernel language and its implementations are unstable and are under development.

This package contains the Dart part of the implementation and contains:

  • A transformable IR for the kernel language
  • Serialization of kernel code

Note: The APIs in this package are in an early state; developers should be careful about depending on this package. In particular, there is no semver contract for release versions of this package. Please depend directly on individual versions.

See ast.dart for the in-memory IR, or binary.md for a description of the binary format. For now, the textual format is very ad-hoc and cannot be parsed back in.