MCPcopy Create free account
hub / github.com/TanStack/router / getLineText

Function getLineText

scripts/ts-symbol-references.mjs:267–270  ·  view source on GitHub ↗
(fileName, sourceFile, position)

Source from the content-addressed store, hash-verified

265}
266
267function getLineText(fileName, sourceFile, position) {
268 const { line } = sourceFile.getLineAndCharacterOfPosition(position)
269 return getFileText(fileName)?.split(/\r?\n/)[line]?.trim() ?? ''
270}
271
272function formatLocation(sourceFile, position) {
273 const { line, character } = sourceFile.getLineAndCharacterOfPosition(position)

Callers 1

Calls 1

getFileTextFunction · 0.85

Tested by

no test coverage detected