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

Method parseEventArgs

www/js/_hyperscript.js:652–662  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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