(it)
| 2818 | }); |
| 2819 | } |
| 2820 | function topSchemaObjCode(it) { |
| 2821 | const { schema, opts, gen } = it; |
| 2822 | validateFunction(it, () => { |
| 2823 | if (opts.$comment && schema.$comment) |
| 2824 | commentKeyword(it); |
| 2825 | checkNoDefault(it); |
| 2826 | gen.let(names_1.default.vErrors, null); |
| 2827 | gen.let(names_1.default.errors, 0); |
| 2828 | if (opts.unevaluated) |
| 2829 | resetEvaluated(it); |
| 2830 | typeAndKeywords(it); |
| 2831 | returnResults(it); |
| 2832 | }); |
| 2833 | return; |
| 2834 | } |
| 2835 | function resetEvaluated(it) { |
| 2836 | // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated |
| 2837 | const { gen, validateName } = it; |
no test coverage detected