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

Function getSignatureTextRangeLocation

test/fixtures/snapshot/typescript.js:54668–54679  ·  view source on GitHub ↗
(signature)

Source from the content-addressed store, hash-verified

54666 }
54667 }
54668 function getSignatureTextRangeLocation(signature) {
54669 if (signature.declaration && signature.declaration.parent) {
54670 if (ts.isBinaryExpression(signature.declaration.parent) && ts.getAssignmentDeclarationKind(signature.declaration.parent) === 5 /* AssignmentDeclarationKind.Property */) {
54671 return signature.declaration.parent;
54672 }
54673 // for expressions assigned to `var`s, use the `var` as the text range
54674 if (ts.isVariableDeclaration(signature.declaration.parent) && signature.declaration.parent.parent) {
54675 return signature.declaration.parent.parent;
54676 }
54677 }
54678 return signature.declaration;
54679 }
54680 function serializeAsNamespaceDeclaration(props, localName, modifierFlags, suppressNewPrivateContext) {
54681 if (ts.length(props)) {
54682 var localVsRemoteMap = ts.arrayToMultiMap(props, function (p) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…