(ast: AST.AST)
| 88 | } |
| 89 | |
| 90 | const mergedAnnotations = (ast: AST.AST): Record<symbol, unknown> => |
| 91 | ast._tag === "Transformation" ? |
| 92 | { |
| 93 | ...ast.to.annotations, |
| 94 | ...ast.annotations |
| 95 | } : |
| 96 | ast.annotations |
| 97 | |
| 98 | const getAnnotation = <A>(ast: AST.AST, key: symbol): A | undefined => mergedAnnotations(ast)[key] as A |
| 99 |