MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / StringStream

Function StringStream

src/cm/codemirror.js:2317–2321  ·  view source on GitHub ↗
(string, tabSize)

Source from the content-addressed store, hash-verified

2315
2316 // The character stream used by a mode's parser.
2317 function StringStream(string, tabSize) {
2318 this.pos = this.start = 0;
2319 this.string = string;
2320 this.tabSize = tabSize || 8;
2321 }
2322 StringStream.prototype = {
2323 eol: function() {return this.pos >= this.string.length;},
2324 sol: function() {return this.pos == 0;},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…