Skip to content
On this page

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

Class: DecodeTraceCollector

@scale-codec/definition-runtime.DecodeTraceCollector

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DecodeTraceCollector()

Properties

current

Private current: null | DecodeTrace = null

Defined in

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

Methods

decodeError

decodeError(err): DecodeTrace

Parameters

NameType
errunknown

Returns

DecodeTrace

Returns root trace

Defined in

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


decodeStart

decodeStart(loc, walker): void

Parameters

NameType
locstring
walkerWalker

Returns

void

Defined in

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


decodeSuccess

decodeSuccess(walker, decodedValue): null | DecodeTrace

Parameters

NameType
walkerWalker
decodedValueunknown

Returns

null | DecodeTrace

the root decode trace if it was the root

Defined in

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


refineLoc

refineLoc(loc): void

Parameters

NameType
locstring

Returns

void

Defined in

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