EntryExpr
EntryExpr describes a map-entry or struct-field expression.
Methods
Section titled “Methods”asMapEntry()
Section titled “asMapEntry()”asMapEntry():
MapEntry|undefined
AsMapEntry casts the EntryExpr to a MapEntry.
Returns
Section titled “Returns”MapEntry | undefined
asStructField()
Section titled “asStructField()”asStructField():
StructField|undefined
AsStructField casts the EntryExpr to a StructField.
Returns
Section titled “Returns”StructField | undefined
id():
number
Id of the entry as it appears in the AST.
Returns
Section titled “Returns”number
kind()
Section titled “kind()”kind():
EntryExprKind
Kind of the entry expression node. See EntryExprKind for valid enum values.
Returns
Section titled “Returns”renumberIds()
Section titled “renumberIds()”renumberIds(
generator):void
RenumberIds performs an in-place update of the entry and its descendant numeric ids.
Parameters
Section titled “Parameters”generator
Section titled “generator”Returns
Section titled “Returns”void
toProto()
Section titled “toProto()”toProto():
Expr_CreateStruct_Entry
ToProto converts the entry expression to protobuf form.
Returns
Section titled “Returns”Expr_CreateStruct_Entry