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

Method section

external/.scrollLibs.js:16191–16202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16189 return this.findParticles(cuePath)
16190 }
16191 get section() {
16192 // return all particles after this one to the next blank line or end of file
16193 const particles = []
16194 if (this.isLast) return particles
16195 let next = this.next
16196 while (!next.isBlank) {
16197 particles.push(next)
16198 next = next.next
16199 if (next.isFirst) break
16200 }
16201 return particles
16202 }
16203 get isLast() {
16204 return this.index === this.parent.length - 1
16205 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected