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

Method parseEventArgs

www/js/ext/socket.js:25–35  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

23 return this.programSource.split("\n")[this.startToken.line - 1];
24 }
25 static parseEventArgs(parser) {
26 var args = [];
27 if (parser.token(0).value === "(" && (parser.token(1).value === ")" || parser.token(2).value === "," || parser.token(2).value === ")")) {
28 parser.matchOpToken("(");
29 do {
30 args.push(parser.requireTokenType("IDENTIFIER"));
31 } while (parser.matchOpToken(","));
32 parser.requireOpToken(")");
33 }
34 return args;
35 }
36 };
37 var Feature = class extends ParseElement {
38 isFeature = true;

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected