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

Function nodePosToString

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

Source from the content-addressed store, hash-verified

14556 ts.getStartPositionOfLine = getStartPositionOfLine;
14557 // This is a useful function for debugging purposes.
14558 function nodePosToString(node) {
14559 var file = getSourceFileOfNode(node);
14560 var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
14561 return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
14562 }
14563 ts.nodePosToString = nodePosToString;
14564 function getEndLinePosition(line, sourceFile) {
14565 ts.Debug.assert(line >= 0);

Callers

nothing calls this directly

Calls 2

getSourceFileOfNodeFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…