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

Method parseExpressionList

Rewrite-Parser.js:2813–2831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2811 }
2812
2813 parseExpressionList() {
2814 const expressions = []
2815
2816 while (true) {
2817 const expr = this.parseExpression()
2818 expressions.push(expr)
2819
2820 if (this.peek() && this.peek().type === 'COMMA') {
2821 this.consume()
2822 if (this.peek() && this.peek().type === 'RPAREN') {
2823 break
2824 }
2825 } else {
2826 break
2827 }
2828 }
2829
2830 return expressions
2831 }
2832
2833 isMatchingParameter(paramName) {
2834 return this.MATCHING_PARAMETERS.some(p => p.name === paramName.toLowerCase())

Callers 1

parseExpressionMethod · 0.95

Calls 3

parseExpressionMethod · 0.95
peekMethod · 0.95
consumeMethod · 0.95

Tested by

no test coverage detected