aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-tracing-utils/src/utils.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 22:33:55 +0800
committerGitHub <noreply@github.com>2019-01-15 22:33:55 +0800
commit9932240a4d7cfc877be322a65c70f6bdf73d7ca7 (patch)
tree939109f2916554b2d6d6f429e600c56380d98e16 /packages/sol-tracing-utils/src/utils.ts
parent91b57793c2b8a0bc1209dd174c6d8b946827aa7c (diff)
parentf570f80674c22f69712c45e8e3c48e948b51f357 (diff)
downloaddexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar
dexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.gz
dexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.bz2
dexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.lz
dexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.xz
dexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.zst
dexon-sol-tools-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.zip
Merge branch 'development' into feature/new-ganache
Diffstat (limited to 'packages/sol-tracing-utils/src/utils.ts')
-rw-r--r--packages/sol-tracing-utils/src/utils.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/sol-tracing-utils/src/utils.ts b/packages/sol-tracing-utils/src/utils.ts
index d8bc65e73..644321f32 100644
--- a/packages/sol-tracing-utils/src/utils.ts
+++ b/packages/sol-tracing-utils/src/utils.ts
@@ -23,6 +23,12 @@ export const utils = {
utils.compareLineColumn(childRange.end, parentRange.end) <= 0
);
},
+ isRangeEqual(childRange: SingleFileSourceRange, parentRange: SingleFileSourceRange): boolean {
+ return (
+ utils.compareLineColumn(parentRange.start, childRange.start) === 0 &&
+ utils.compareLineColumn(childRange.end, parentRange.end) === 0
+ );
+ },
bytecodeToBytecodeRegex(bytecode: string): string {
const bytecodeRegex = bytecode
// Library linking placeholder: __ConvertLib____________________________