← All areas
Code Generation
Much of Tom is generated. The **Code Generation** area collects the generators that turn annotated Dart into the bridges and reflection data the framework relies on — the D4rt bridge generator and the reflection generator — cherry-picked from their home components so they can be understood together.
In this area
tom_d4rt_generator Published
tom_d4rt_generator · v1.9.2
21.0k loc · 878 tests · 14.8k test LOC
Reads `buildkit.yaml`, follows barrel exports, and emits `*.b.dart` files that register native Dart APIs with the interpreter. The bridge-writing automation for the family.
tom_reflection_generator Published
tom_reflection_generator · v1.1.1
7.0k loc · 4 tests · 46 test LOC
The standalone generator that produces the `.reflection.dart` files `tom_reflection` consumes. It runs as a build_runner builder or a CLI for one-off and CI builds.
Explore other areas
→
Dart Interpreter
1 member
Tom runs and generates code at runtime through a sandboxed Dart interpreter.
→
Reflection
1 member
Applications assemble themselves at runtime, and tools read a codebase's API without re-running the analyzer.
→
Foundations
1 member
The shared floor every Tom package builds on.