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

Function StringStream

external/.scrollLibs.js:2303–2310  ·  view source on GitHub ↗
(string, tabSize, lineOracle)

Source from the content-addressed store, hash-verified

2301 // parsers more succinct.
2302
2303 var StringStream = function (string, tabSize, lineOracle) {
2304 this.pos = this.start = 0
2305 this.string = string
2306 this.tabSize = tabSize || 8
2307 this.lastColumnPos = this.lastColumnValue = 0
2308 this.lineStart = 0
2309 this.lineOracle = lineOracle
2310 }
2311
2312 StringStream.prototype.eol = function () {
2313 return this.pos >= this.string.length

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected