Skip to content

Gen Attr Arg

1 min read

Import: import system.codegen;

GenAttrArg

One attribute argument as written: kind is string, int, float, double, bool or enum; value is the unquoted string, literal text, or dotted enum path.

public class GenAttrArg

kind

Literal category of the argument as written (string, int, enum, ...).

public kind: GenValueKind

value

Unquoted string, literal text, or dotted enum path, depending on kind.

public value: string

symbol

Resolved identifier of a declaration argument, or an empty string when unresolved.

public symbol: string

constructor

Creates a GenAttrArg from its parts. Generators normally receive these from GenContext rather than constructing them.

public constructor(kind: GenValueKind, value: string, symbol: string)