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

Function getDefinitionInfoForFileReference

test/fixtures/snapshot/typescript.js:140083–140093  ·  view source on GitHub ↗
(name, targetFileName, unverified)

Source from the content-addressed store, hash-verified

140081 }
140082 GoToDefinition.findReferenceInPosition = findReferenceInPosition;
140083 function getDefinitionInfoForFileReference(name, targetFileName, unverified) {
140084 return {
140085 fileName: targetFileName,
140086 textSpan: ts.createTextSpanFromBounds(0, 0),
140087 kind: "script" /* ScriptElementKind.scriptElement */,
140088 name: name,
140089 containerName: undefined,
140090 containerKind: undefined,
140091 unverified: unverified,
140092 };
140093 }
140094 /** Returns a CallLikeExpression where `node` is the target being invoked. */
140095 function getAncestorCallLikeExpression(node) {
140096 var target = ts.findAncestor(node, function (n) { return !ts.isRightSideOfPropertyAccess(n); });

Callers 1

getDefinitionAtPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected