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]functionsrust_glue.dartemits — a generator test asserts they stay in sync. - aotLibraryName → const String
-
Library name of the final linked dylib (
libslint_dart_aot.dylibetc.). - 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).
- 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
_newextern forcomponentName. 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(TodoApp→slint_aot_todo_app). -
generateDartFromSchema(
SlintSchema schema, {required String packageName, required String assetLibraryPath, required String sourceName}) → String -
Generates the
.aot.g.dartbackend library for one.slintfile.