MCPcopy Create free account
hub / github.com/apache/fory / readNoRef

Method readNoRef

javascript/packages/core/lib/gen/ext.ts:69–79  ·  view source on GitHub ↗
(assignStmt: (v: string) => string, refState: string)

Source from the content-addressed store, hash-verified

67 }
68
69 readNoRef(assignStmt: (v: string) => string, refState: string): string {
70 const result = this.scope.uniqueName("result");
71 return `
72 ${this.readTypeInfo()}
73 ${this.builder.getReadContextName()}.incReadDepth();
74 let ${result};
75 ${this.read(v => `${result} = ${v}`, refState)};
76 ${this.builder.getReadContextName()}.decReadDepth();
77 ${assignStmt(result)};
78 `;
79 }
80
81 readTypeInfo(): string {
82 const internalTypeId = this.getInternalTypeId();

Callers

nothing calls this directly

Calls 4

readTypeInfoMethod · 0.95
readMethod · 0.95
uniqueNameMethod · 0.80
getReadContextNameMethod · 0.80

Tested by

no test coverage detected