Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 925 Bytes

StructValueNode.md

File metadata and controls

30 lines (20 loc) · 925 Bytes

StructValueNode

A node that represents the value of a struct.

Attributes

Data

Attribute Type Description
kind "structValueNode" The node discriminator.

Children

Attribute Type Description
fields StructFieldValueNode[] The value of all fields in the struct.

Functions

structValueNode(fields)

Helper function that creates a StructValueNode object from an array of field value nodes.

const node = structValueNode([
    structFieldValueNode('name', stringValueNode('Alice')),
    structFieldValueNode('age', numberValueNode(42)),
]);