MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / parseEventArgs

Method parseEventArgs

www/js/_hyperscript-max.js:651–661  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

649 return this.programSource.split("\n")[this.startToken.line - 1];
650 }
651 static parseEventArgs(parser) {
652 var args = [];
653 if (parser.token(0).value === "(" && (parser.token(1).value === ")" || parser.token(2).value === "," || parser.token(2).value === ")")) {
654 parser.matchOpToken("(");
655 do {
656 args.push(parser.requireTokenType("IDENTIFIER"));
657 } while (parser.matchOpToken(","));
658 parser.requireOpToken(")");
659 }
660 return args;
661 }
662 };
663 var Expression = class extends ParseElement {
664 constructor() {

Callers 2

parseMethod · 0.45
parseMethod · 0.45

Calls 4

tokenMethod · 0.45
matchOpTokenMethod · 0.45
requireTokenTypeMethod · 0.45
requireOpTokenMethod · 0.45

Tested by

no test coverage detected