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

Function isDefinitionForReference

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

Source from the content-addressed store, hash-verified

136991 }
136992 FindAllReferences.findReferencedSymbols = findReferencedSymbols;
136993 function isDefinitionForReference(node) {
136994 return node.kind === 88 /* SyntaxKind.DefaultKeyword */
136995 || !!ts.getDeclarationFromName(node)
136996 || ts.isLiteralComputedPropertyDeclarationName(node)
136997 || (node.kind === 134 /* SyntaxKind.ConstructorKeyword */ && ts.isConstructorDeclaration(node.parent));
136998 }
136999 function getImplementationsAtPosition(program, cancellationToken, sourceFiles, sourceFile, position) {
137000 var node = ts.getTouchingPropertyName(sourceFile, position);
137001 var referenceEntries;

Callers 1

findReferencedSymbolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected