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

Function Token

external/.scrollLibs.js:2631–2637  ·  view source on GitHub ↗
(stream, type, state)

Source from the content-addressed store, hash-verified

2629 }
2630
2631 var Token = function (stream, type, state) {
2632 this.start = stream.start
2633 this.end = stream.pos
2634 this.string = stream.current()
2635 this.type = type || null
2636 this.state = state
2637 }
2638
2639 // Utility for getTokenAt and getLineTokens
2640 function takeToken(cm, pos, precise, asArray) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected