(expr: Expression)
| 17 | |
| 18 | export class ExpressionVisitor { |
| 19 | visit(expr: Expression): VisitResult { |
| 20 | return match(expr) |
| 21 | .with({ kind: 'literal' }, (e) => this.visitLiteral(e)) |
| 22 | .with({ kind: 'array' }, (e) => this.visitArray(e)) |
| 23 | .with({ kind: 'field' }, (e) => this.visitField(e)) |
| 24 | .with({ kind: 'member' }, (e) => this.visitMember(e)) |
| 25 | .with({ kind: 'binary' }, (e) => this.visitBinary(e)) |
| 26 | .with({ kind: 'unary' }, (e) => this.visitUnary(e)) |
| 27 | .with({ kind: 'call' }, (e) => this.visitCall(e)) |
| 28 | .with({ kind: 'binding' }, (e) => this.visitBinding(e)) |
| 29 | .with({ kind: 'this' }, (e) => this.visitThis(e)) |
| 30 | .with({ kind: 'null' }, (e) => this.visitNull(e)) |
| 31 | .exhaustive(); |
| 32 | } |
| 33 | |
| 34 | protected visitLiteral(_e: LiteralExpression): VisitResult {} |
| 35 |
no test coverage detected