MCPcopy Index your code
hub / github.com/nodejs/node / typeParameterToDeclaration

Function typeParameterToDeclaration

test/fixtures/snapshot/typescript.js:53348–53352  ·  view source on GitHub ↗
(type, context, constraint)

Source from the content-addressed store, hash-verified

53346 return ts.factory.createTypeParameterDeclaration(modifiers, name, constraintNode, defaultParameterNode);
53347 }
53348 function typeParameterToDeclaration(type, context, constraint) {
53349 if (constraint === void 0) { constraint = getConstraintOfTypeParameter(type); }
53350 var constraintNode = constraint && typeToTypeNodeHelper(constraint, context);
53351 return typeParameterToDeclarationWithConstraint(type, context, constraintNode);
53352 }
53353 function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) {
53354 var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 164 /* SyntaxKind.Parameter */);
53355 if (!parameterDeclaration && !ts.isTransientSymbol(parameterSymbol)) {

Callers 6

createNodeBuilderFunction · 0.85
serializeTypeAliasFunction · 0.85
serializeInterfaceFunction · 0.85
serializeAsClassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…