MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / indentation

Method indentation

lib/web/CodeMirror/src/util/StringStream.js:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)
54 }
55 indentation() {
56 return countColumn(this.string, null, this.tabSize) -
57 (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)
58 }
59 match(pattern, consume, caseInsensitive) {
60 if (typeof pattern == "string") {
61 let cased = str => caseInsensitive ? str.toLowerCase() : str

Callers 15

tokenBaseFunction · 0.80
dedentFunction · 0.80
tiki.jsFile · 0.80
sparql.jsFile · 0.80
pushContextFunction · 0.80
d.jsFile · 0.80
realTokenFunction · 0.80
glsl.jsFile · 0.80
tokenBaseFunction · 0.80
pushContextFunction · 0.80
stylus.jsFile · 0.80
groovy.jsFile · 0.80

Calls 1

countColumnFunction · 0.90

Tested by

no test coverage detected