Add utils.isRangeEqual to sol-profiler
This commit is contained in:
@@ -23,6 +23,12 @@ export const utils = {
|
|||||||
utils.compareLineColumn(childRange.end, parentRange.end) <= 0
|
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 {
|
bytecodeToBytecodeRegex(bytecode: string): string {
|
||||||
const bytecodeRegex = bytecode
|
const bytecodeRegex = bytecode
|
||||||
// Library linking placeholder: __ConvertLib____________________________
|
// Library linking placeholder: __ConvertLib____________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user