Function: offsetLocation()¶
offsetLocation(
baseLoc,text,charIndex):SourceLocation
Defined in: validator/src/walker.ts:174
Compute the actual source location of a character offset within a text block. Given the text block's starting location and a character index within the text, returns the adjusted SourceLocation pointing to the exact line and column.
Parameters¶
baseLoc¶
text¶
string
charIndex¶
number