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

Method parseExpressionList

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

Source from the content-addressed store, hash-verified

3223 }
3224
3225 parseExpressionList() {
3226 const expressions = []
3227
3228 while (true) {
3229 const expr = this.parseExpression()
3230 expressions.push(expr)
3231
3232 if (this.peek() && this.peek().type === 'COMMA') {
3233 this.consume()
3234 if (this.peek() && this.peek().type === 'RPAREN') {
3235 break
3236 }
3237 } else {
3238 break
3239 }
3240 }
3241
3242 return expressions
3243 }
3244
3245 isMatchingParameter(paramName) {
3246 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