MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / consume

Method consume

Rewrite-Parser.js:2637–2641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2635 }
2636
2637 consume() {
2638 const token = this.tokens[this.position++]
2639 // console.log(`Consume: ${token.type} '${token.value}' at position ${this.position - 1}`)
2640 return token
2641 }
2642
2643 expect(type, value = null) {
2644 const token = this.consume()

Callers 5

expectMethod · 0.95
parseMethod · 0.95
parseExpressionMethod · 0.95
parseExpressionListMethod · 0.95
collectValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected