(ast: AST.Annotations)
| 65 | * @category annotations |
| 66 | */ |
| 67 | export const extractAnnotations = (ast: AST.Annotations): AST.Annotations => { |
| 68 | const result: Record<symbol, unknown> = {} |
| 69 | if (AnnotationStatus in ast) { |
| 70 | result[AnnotationStatus] = ast[AnnotationStatus] |
| 71 | } |
| 72 | if (AnnotationEmptyDecodeable in ast) { |
| 73 | result[AnnotationEmptyDecodeable] = ast[AnnotationEmptyDecodeable] |
| 74 | } |
| 75 | if (AnnotationEncoding in ast) { |
| 76 | result[AnnotationEncoding] = ast[AnnotationEncoding] |
| 77 | } |
| 78 | if (AnnotationParam in ast) { |
| 79 | result[AnnotationParam] = ast[AnnotationParam] |
| 80 | } |
| 81 | if (AnnotationMultipart in ast) { |
| 82 | result[AnnotationMultipart] = ast[AnnotationMultipart] |
| 83 | } |
| 84 | if (AnnotationMultipartStream in ast) { |
| 85 | result[AnnotationMultipartStream] = ast[AnnotationMultipartStream] |
| 86 | } |
| 87 | return result |
| 88 | } |
| 89 | |
| 90 | const mergedAnnotations = (ast: AST.AST): Record<symbol, unknown> => |
| 91 | ast._tag === "Transformation" ? |
no outgoing calls
no test coverage detected