MCPcopy
hub / github.com/webpack/webpack / getNextTypeIndex

Function getNextTypeIndex

lib/wasm-sync/WebAssemblyGenerator.js:115–123  ·  view source on GitHub ↗
(ast)

Source from the content-addressed store, hash-verified

113 * @returns {t.Index} - index
114 */
115const getNextTypeIndex = (ast) => {
116 const typeSectionMetadata = t.getSectionMetadata(ast, "type");
117
118 if (typeSectionMetadata === undefined) {
119 return t.indexLiteral(0);
120 }
121
122 return t.indexLiteral(typeSectionMetadata.vectorOfSize.value);
123};
124
125/**
126 * Get next func index

Callers 1

generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected