(parser)
| 44 | } |
| 45 | |
| 46 | static parse(parser) { |
| 47 | if (!parser.matchToken("log")) return; |
| 48 | var exprs = [parser.parseElement("expression")]; |
| 49 | while (parser.matchOpToken(",")) { |
| 50 | exprs.push(parser.requireElement("expression")); |
| 51 | } |
| 52 | if (parser.matchToken("with")) { |
| 53 | var withExpr = parser.requireElement("expression"); |
| 54 | } |
| 55 | return new LogCommand(exprs, withExpr); |
| 56 | } |
| 57 | |
| 58 | resolve(ctx, { logger, values }) { |
| 59 | if (logger) { |
nothing calls this directly
no test coverage detected