Update packages/sol-trace-based-tools-common/src/source_maps.ts

Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
This commit is contained in:
Fabio B 2019-01-10 11:15:19 +01:00 committed by GitHub
parent 052ed21e9c
commit d7df402c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export interface SourceLocation {
} }
/** /**
* Receives a string with newlines and returns a hash of byte offset to LineColumn * Receives a string with newlines and returns a map of byte offset to LineColumn
* @param str A string to process * @param str A string to process
*/ */
export function getLocationByOffset(str: string): LocationByOffset { export function getLocationByOffset(str: string): LocationByOffset {