(ast: S.AST.AST)
| 13 | // : never |
| 14 | |
| 15 | function getObjectsAST(ast: S.AST.AST): S.AST.Objects | null { |
| 16 | if (S.AST.isObjects(ast)) { |
| 17 | return ast |
| 18 | } |
| 19 | if (S.AST.isDeclaration(ast)) { |
| 20 | for (const typeParam of ast.typeParameters) { |
| 21 | const result = getObjectsAST(typeParam) |
| 22 | if (result) return result |
| 23 | } |
| 24 | return null |
| 25 | } |
| 26 | return null |
| 27 | } |
| 28 | |
| 29 | /** @deprecated Use OmegaForm instead */ |
| 30 | export function convertIn(v: number | string | null, type?: "text" | "float" | "int") { |
no outgoing calls
no test coverage detected
searching dependent graphs…