(data: object, ctx: InternalTraversal)
| 125 | } |
| 126 | |
| 127 | tApply(data: object, ctx: InternalTraversal): void { |
| 128 | if (this.key in data) { |
| 129 | travKey( |
| 130 | this.key, |
| 131 | () => applyValue(this.value, (data as any)[this.key], ctx), |
| 132 | ctx |
| 133 | ) |
| 134 | } else if (this.is("required")) |
| 135 | travKey(this.key, () => ctx.nodeError(this.errorCtx, data), ctx) |
| 136 | } |
| 137 | |
| 138 | compile(js: NodeCompiler): void { |
| 139 | const expression = this.jsExpression(js) |
nothing calls this directly
no test coverage detected