getLocationTakes a Source and a UTF-8 character offset, and returns the corresponding line and column as a SourceLocation. function getLocation(source: Source, position: number): SourceLocation;§getLocation(source: Source, position: number): SourceLocation[src]§Parameters§source: Source[src]§position: number[src]§Return Type§SourceLocation[src]