dart-sdk/pkg/kernel
Johnni Winther de224ac5f4 [cfe] Update ast-to-text to include member signature origins
Change-Id: I46e7fe831bc5e87981e78537b37565c62646210f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157961
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2020-08-17 13:41:49 +00:00
..
bin Add empty value class transformer. 2020-08-03 14:14:42 +00:00
doc [cfe] Implement lowering for constructor initialization of late fields 2019-11-21 09:36:35 +00:00
lib [cfe] Update ast-to-text to include member signature origins 2020-08-17 13:41:49 +00:00
test [cfe] Fix scope bug for initializers in text serialization 2020-07-17 13:24:28 +00:00
tool [CFE] Spell check on kernel src; presubmit on kernel & _fe_analyzer_shared 2019-12-02 13:00:47 +00:00
.gitignore
analysis_options.yaml More options files cleanup. 2018-10-26 23:05:44 +00:00
AUTHORS
binary.md [cfe] Add a member signature origin to member signatures 2020-08-11 08:16:59 +00:00
codereview.settings
LICENSE
PRESUBMIT.py [CFE] Spell check on kernel src; presubmit on kernel & _fe_analyzer_shared 2019-12-02 13:00:47 +00:00
problems.md Fix markup 2020-07-31 08:39:41 +00:00
pubspec.yaml Mark front_end and kernel as private packages 2020-06-23 13:22:31 +00:00
README.md Remove outdated information from pkg/kernel/README.md 2018-10-09 11:09:27 +00:00

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.