(parser)
| 35 | } |
| 36 | |
| 37 | static parseEventArgs(parser) { |
| 38 | var args = []; |
| 39 | // handle argument list (look ahead 3) |
| 40 | if ( |
| 41 | parser.token(0).value === "(" && |
| 42 | (parser.token(1).value === ")" || parser.token(2).value === "," || parser.token(2).value === ")") |
| 43 | ) { |
| 44 | parser.matchOpToken("("); |
| 45 | do { |
| 46 | args.push(parser.requireTokenType("IDENTIFIER")); |
| 47 | } while (parser.matchOpToken(",")); |
| 48 | parser.requireOpToken(")"); |
| 49 | } |
| 50 | return args; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | /** |
no test coverage detected