Skip to content
On this page

Scale JS / @scale-codec/definition-runtime / DecodeTrace

Class: DecodeTrace

@scale-codec/definition-runtime.DecodeTrace

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new DecodeTrace(loc)

Parameters

NameType
locstring

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:18

Properties

children

children: DecodeTrace[] = []

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:16


error

Optional error: unknown

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:15


input

Optional input: Object

Type declaration

NameType
offsetnumber

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:13


loc

loc: string[]

Location

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:12


parent

parent: null | DecodeTrace = null

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:7


result

Optional result: Object

Type declaration

NameType
offsetnumber
valueunknown

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:14

Accessors

isRoot

get isRoot(): boolean

Returns

boolean

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:26

Methods

findRoot

findRoot(): DecodeTrace

Returns

DecodeTrace

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:22


refineLoc

refineLoc(loc): DecodeTrace

Parameters

NameType
locstring

Returns

DecodeTrace

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:35


setInput

setInput(offset): DecodeTrace

Parameters

NameType
offsetnumber

Returns

DecodeTrace

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:40


setParent

setParent(trace): DecodeTrace

Parameters

NameType
traceDecodeTrace

Returns

DecodeTrace

Defined in

packages/definition-runtime/src/tracking/decode-trace.ts:30