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

Function updateMethodSignature

test/fixtures/snapshot/typescript.js:23335–23344  ·  view source on GitHub ↗
(node, modifiers, name, questionToken, typeParameters, parameters, type)

Source from the content-addressed store, hash-verified

23333 }
23334 // @api
23335 function updateMethodSignature(node, modifiers, name, questionToken, typeParameters, parameters, type) {
23336 return node.modifiers !== modifiers
23337 || node.name !== name
23338 || node.questionToken !== questionToken
23339 || node.typeParameters !== typeParameters
23340 || node.parameters !== parameters
23341 || node.type !== type
23342 ? updateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node)
23343 : node;
23344 }
23345 // @api
23346 function createMethodDeclaration(decorators, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) {
23347 var node = createBaseFunctionLikeDeclaration(169 /* SyntaxKind.MethodDeclaration */, decorators, modifiers, name, typeParameters, parameters, type, body);

Callers 1

updateModifiersFunction · 0.85

Calls 2

createMethodSignatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…