Skip to content

PromptScript API


Interface: BlockOperation

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

Canonical block declaration operation.

Extends

Properties

block

readonly block: CanonicalBlock

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


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


sourceLayerId

readonly sourceLayerId: string

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


type

readonly type: "BlockOperation"

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

Overrides

CanonicalNode.type