MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / importer

Function importer

packages/alphatab/scripts/CloneEmitter.ts:338–352  ·  view source on GitHub ↗
(name: string, module: string)

Source from the content-addressed store, hash-verified

336 const statements: ts.Statement[] = [];
337
338 function importer(name: string, module: string) {
339 statements.push(
340 ts.factory.createImportDeclaration(
341 undefined,
342 ts.factory.createImportClause(
343 false,
344 undefined,
345 ts.factory.createNamedImports([
346 ts.factory.createImportSpecifier(false, undefined, ts.factory.createIdentifier(name))
347 ])
348 ),
349 ts.factory.createStringLiteral(module)
350 )
351 );
352 }
353
354 const clz = ts.addSyntheticLeadingComment(ts.factory.createClassDeclaration(
355 [ts.factory.createModifier(ts.SyntaxKind.ExportKeyword)],

Callers 4

generateToJsonBodyFunction · 0.70
generateFromJsonBodyFunction · 0.70
generateSetPropertyBodyFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected