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

Method consume

Rewrite-Parser.beta.js:3049–3053  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3047 }
3048
3049 consume() {
3050 const token = this.tokens[this.position++]
3051 // console.log(`Consume: ${token.type} '${token.value}' at position ${this.position - 1}`)
3052 return token
3053 }
3054
3055 expect(type, value = null) {
3056 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