FunctionsgetLocationgetLocation CallablegetLocation(source: Source, position: number): SourceLocationTakes a Source and a UTF-8 character offset, and returns the corresponding line and column as a SourceLocation.Parameterssource: Sourceposition: numberReturns SourceLocation
Takes a Source and a UTF-8 character offset, and returns the corresponding line and column as a SourceLocation.