Skip to content

PromptScript API


Interface: ObjectFieldNode

Defined in: core/src/types/ast.ts:521

Canonical object field with its own source location.

Extends

Properties

loc

readonly loc: object

Defined in: core/src/types/ast.ts:467

column

readonly column: number

Column number (1-indexed)

file

readonly file: string

File path

line

readonly line: number

Line number (1-indexed)

offset?

readonly optional offset?: number

Byte offset from start of file

Inherited from

CanonicalNode.loc


name

readonly name: string

Defined in: core/src/types/ast.ts:523


type

readonly type: "ObjectFieldNode"

Defined in: core/src/types/ast.ts:522

Overrides

CanonicalNode.type


value

readonly value: ValueNode

Defined in: core/src/types/ast.ts:524