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

Function isSelfReferenceLocation

test/fixtures/snapshot/typescript.js:50105–50117  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

50103 return !ts.getImmediatelyInvokedFunctionExpression(location);
50104 }
50105 function isSelfReferenceLocation(node) {
50106 switch (node.kind) {
50107 case 256 /* SyntaxKind.FunctionDeclaration */:
50108 case 257 /* SyntaxKind.ClassDeclaration */:
50109 case 258 /* SyntaxKind.InterfaceDeclaration */:
50110 case 260 /* SyntaxKind.EnumDeclaration */:
50111 case 259 /* SyntaxKind.TypeAliasDeclaration */:
50112 case 261 /* SyntaxKind.ModuleDeclaration */: // For `namespace N { N; }`
50113 return true;
50114 default:
50115 return false;
50116 }
50117 }
50118 function diagnosticName(nameArg) {
50119 return ts.isString(nameArg) ? ts.unescapeLeadingUnderscores(nameArg) : ts.declarationNameToString(nameArg);
50120 }

Callers 1

resolveNameHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…