MCPcopy
hub / github.com/CodeboxIDE/codebox / peek

Function peek

core/cb.addons/require-tools/less/lessc.js:233–239  ·  view source on GitHub ↗
(tok)

Source from the content-addressed store, hash-verified

231 // Same as $(), but don't change the state of the parser,
232 // just return the match.
233 function peek(tok) {
234 if (typeof(tok) === 'string') {
235 return input.charAt(i) === tok;
236 } else {
237 return tok.test(chunks[j]);
238 }
239 }
240
241 function getInput(e, env) {
242 if (e.filename && env.currentFileInfo.filename && (e.filename !== env.currentFileInfo.filename)) {

Callers 1

lessc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected