(ast: SchemaAST.AST)
| 811 | const visiting = new Set<SchemaAST.AST>() |
| 812 | const taggedError = taggedErrorFields(schema) |
| 813 | const visit = (ast: SchemaAST.AST): boolean => { |
| 814 | const cached = portable.get(ast) |
| 815 | if (cached !== undefined) return cached |
| 816 | if (visiting.has(ast)) return true |
| 817 | visiting.add(ast) |
| 818 | const result = visitCurrent(ast) |
| 819 | visiting.delete(ast) |
| 820 | portable.set(ast, result) |
| 821 | return result |
| 822 | } |
| 823 | const visitCurrent = (ast: SchemaAST.AST): boolean => { |
| 824 | if (!annotationsPortable(ast.annotations)) return false |
| 825 | if (!checksPortable(ast.checks) || ("encodingChecks" in ast && !checksPortable(ast.encodingChecks))) return false |
no test coverage detected