Skip to content

GenSpan

1 min read

Import: import system.codegen;

GenSpan

A source range described by its starting location and length.

public class GenSpan

file

Source file path.

public file: string

line

One-based line number in the source file.

public line: int

column

One-based column number in the source file.

public column: int

length

Number of elements in this range.

public length: int

constructor

Decodes a GenSpan from its object in the generation snapshot.

public constructor(borrow v: JsonValue)