Skip to content

GenSourceMap

1 min read

Import: import system.codegen;

GenSourceMap

Associates generated output with the source locations it came from.

public class GenSourceMap

mappings

Source locations associated with generated output.

public mappings: JsonValue

constructor

Creates an empty builder.

public constructor()

add

Maps a half-open artifact range to a snapshot node identity.

public fun add(line: int, column: int, end_line: int, end_column: int, target: string): void