diff options
Diffstat (limited to 'packages/sol-tracing-utils/src/get_source_range_snippet.ts')
-rw-r--r-- | packages/sol-tracing-utils/src/get_source_range_snippet.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/packages/sol-tracing-utils/src/get_source_range_snippet.ts b/packages/sol-tracing-utils/src/get_source_range_snippet.ts deleted file mode 100644 index c1f6e3a4e..000000000 --- a/packages/sol-tracing-utils/src/get_source_range_snippet.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { SourceRange, SourceSnippet } from './types'; -import { utils } from './utils'; - -/** - * Gets the source range snippet by source range to be used by revert trace. - * @param sourceRange source range - * @param sourceCode source code - */ -export function getSourceRangeSnippet(sourceRange: SourceRange, sourceCode: string): SourceSnippet { - const sourceCodeInRange = utils.getRange(sourceCode, sourceRange.location); - return { - range: sourceRange.location, - source: sourceCodeInRange, - fileName: sourceRange.fileName, - }; -} |