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
Name | Type |
---|---|
err | unknown |
Returns
Returns root trace
Defined in
packages/definition-runtime/src/tracking/decode-trace.ts:85
decodeStart
▸ decodeStart(loc
, walker
): void
Parameters
Name | Type |
---|---|
loc | string |
walker | Walker |
Returns
void
Defined in
packages/definition-runtime/src/tracking/decode-trace.ts:49
decodeSuccess
▸ decodeSuccess(walker
, decodedValue
): null
| DecodeTrace
Parameters
Name | Type |
---|---|
walker | Walker |
decodedValue | unknown |
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
Name | Type |
---|---|
loc | string |
Returns
void