Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#getLineAndColumnAtPos

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method SourceFile.prototype.getLineAndColumnAtPos
import { SourceFile } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Gets the line and column number at the provided position (1-indexed).

Parameters

pos: number
  • Position in the source file.

Returns

{ line: number; column: number; }