MCPcopy Create free account
hub / github.com/nodejs/node / classExpressionToDeclaration

Function classExpressionToDeclaration

test/fixtures/snapshot/typescript.js:152540–152543  ·  view source on GitHub ↗
(name, additionalModifiers, cls, useSitesToUnqualify)

Source from the content-addressed store, hash-verified

152538 ts.concatenate(additionalModifiers, ts.getSynthesizedDeepClones(fn.modifiers)), ts.getSynthesizedDeepClone(fn.asteriskToken), name, ts.getSynthesizedDeepClones(fn.typeParameters), ts.getSynthesizedDeepClones(fn.parameters), ts.getSynthesizedDeepClone(fn.type), ts.factory.converters.convertToFunctionBlock(replaceImportUseSites(fn.body, useSitesToUnqualify)));
152539 }
152540 function classExpressionToDeclaration(name, additionalModifiers, cls, useSitesToUnqualify) {
152541 return ts.factory.createClassDeclaration(ts.getSynthesizedDeepClones(cls.decorators), // TODO: GH#19915 Don't think this is even legal.
152542 ts.concatenate(additionalModifiers, ts.getSynthesizedDeepClones(cls.modifiers)), name, ts.getSynthesizedDeepClones(cls.typeParameters), ts.getSynthesizedDeepClones(cls.heritageClauses), replaceImportUseSites(cls.members, useSitesToUnqualify));
152543 }
152544 function makeSingleImport(localName, propertyName, moduleSpecifier, quotePreference) {
152545 return propertyName === "default"
152546 ? ts.makeImport(ts.factory.createIdentifier(localName), /*namedImports*/ undefined, moduleSpecifier, quotePreference)

Callers 1

Calls 1

replaceImportUseSitesFunction · 0.85

Tested by

no test coverage detected