Skip to content

GenSymbol

1 min read

Import: import system.codegen;

GenSymbol

Signature views allow program-wide queries without including unrelated function bodies.

public class GenSymbol

instances

Concrete uses of this generic symbol.

public instances: List<GenSymbolInstance>

id

module::name identity of the symbol.

public id: string

kind

Whether the symbol is a type, function, or other kind of declaration.

public kind: GenSymbolKind

declaration

The type declaration this symbol names, when it names one.

public declaration: Option<GenDecl>

function

The function declaration this symbol names, when it names one.

public function: Option<GenFunction>

constructor

Decodes a declaration or function symbol from the compilation snapshot.

public constructor(borrow v: JsonValue)