MCPcopy Create free account
hub / github.com/breck7/scroll / _getLineNumberRelativeTo

Method _getLineNumberRelativeTo

external/.scrollLibs.js:15398–15402  ·  view source on GitHub ↗
(relativeTo)

Source from the content-addressed store, hash-verified

15396 return !this.length && !this.content
15397 }
15398 _getLineNumberRelativeTo(relativeTo) {
15399 if (this.isRoot(relativeTo)) return 0
15400 const start = relativeTo || this.root
15401 return start._getLineNumber(this)
15402 }
15403 isRoot(relativeTo) {
15404 return relativeTo === this || !this.parent
15405 }

Callers 1

lineNumberMethod · 0.95

Calls 2

isRootMethod · 0.95
_getLineNumberMethod · 0.80

Tested by

no test coverage detected