MCPcopy Create free account
hub / github.com/callstackincubator/polygen / readImport

Function readImport

packages/wasm-parser/src/reader/section-reader.ts:194–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 */
193function readImportSection(reader: BinaryReader): ImportSection {
194 function readImport(): Import {
195 const module = readString(reader);
196 const name = readString(reader);
197 const descriptor = readImportDescriptor(reader);
198 return { module, name, descriptor };
199 }
200 const imports = readVector(reader, readImport);
201 return { type: 'import', imports };
202}

Callers

nothing calls this directly

Calls 2

readStringFunction · 0.85
readImportDescriptorFunction · 0.85

Tested by

no test coverage detected