Skip to content

StructField

StructField describes a struct field initializer.

isOptional(): boolean

IsOptional returns whether the field is optional.

boolean


name(): string

Name returns the name of the field.

string


value(): Expr

Value returns the field initialization expression.

Expr