ArtifactBuilder¶
Import: import system.codegen;
ArtifactBuilder¶
Builds generated source text and records its source locations.
source_map¶
Locations mapping generated text back to source declarations.
constructor¶
Creates an empty builder.
append¶
Appends text and advances the source-map position.
mapped¶
Appends text mapped to the given snapshot node identity.
line¶
Appends a complete line of artifact text.
to_string¶
Returns the accumulated artifact text.