Skip to content

EntryExpr

EntryExpr describes a map-entry or struct-field expression.

asMapEntry(): MapEntry | undefined

AsMapEntry casts the EntryExpr to a MapEntry.

MapEntry | undefined


asStructField(): StructField | undefined

AsStructField casts the EntryExpr to a StructField.

StructField | undefined


id(): number

Id of the entry as it appears in the AST.

number


kind(): EntryExprKind

Kind of the entry expression node. See EntryExprKind for valid enum values.

EntryExprKind


renumberIds(generator): void

RenumberIds performs an in-place update of the entry and its descendant numeric ids.

IdGenerator

void


toProto(): Expr_CreateStruct_Entry

ToProto converts the entry expression to protobuf form.

Expr_CreateStruct_Entry