We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d8e9f3 commit 452dec0Copy full SHA for 452dec0
src/commonMain/kotlin/spp.protocol/instrument/LiveSourceLocation.kt
@@ -42,4 +42,14 @@ data class LiveSourceLocation @JvmOverloads constructor(
42
if (sourceCompare != 0) return sourceCompare
43
return line.compareTo(other.line)
44
}
45
+
46
+ fun isSameLocation(other: LiveSourceLocation): Boolean {
47
+ if (source != other.source) return false
48
+ if (line != other.line && line != -1 && other.line != -1) return false //-1 is wildcard
49
+ if (service != other.service) return false
50
+ if (serviceInstance != other.serviceInstance) return false
51
+ if (commitId != other.commitId) return false
52
+ if (fileChecksum != other.fileChecksum) return false
53
+ return true
54
+ }
55
0 commit comments