slint_compiler library

AOT backend generation for .slint files: *.aot.g.dart libraries that bind the code asset built by buildSlintAot (aot_build.dart), exposing one SlintCompilerFactory per component.

This is the build-time half; the runtime half those libraries import lives in runtime.dart, and the typed API is generated by package:slint_generator.

Constants

aotComponentOps → const List<String>
The AOT ABI contract shared by the Dart generator (this file), the Rust glue generator (rust_glue.dart), and the build/link hooks (aot_build.dart / aot_link.dart). Per-component C entry points the glue exports, as <prefix>_<op>. Must match the #[no_mangle] functions rust_glue.dart emits — a generator test asserts they stay in sync.
aotLibraryName → const String
Library name of the final linked dylib (libslint_dart_aot.dylib etc.).
aotLinkManifestName → const String
File name of the manifest the build hook writes next to the routed staticlib for the link hook (components, symbols, linker flags).
aotSharedSymbols → const List<String>
C symbols shared by every component in the glue library.

Functions

aotComponentSymbols(String componentName) List<String>
All C symbols belonging to componentName.
aotNewExternName(String componentName) String
Dart name of the generated _new extern for componentName. It carries @RecordUse(), so tear-offs of it are what the link hook keys component liveness on.
aotSymbolPrefix(String componentName) String
C symbol prefix for componentName (TodoAppslint_aot_todo_app).
generateDartFromSchema(SlintSchema schema, {required String packageName, required String assetLibraryPath, required String sourceName}) String
Generates the .aot.g.dart backend library for one .slint file.