MCPcopy Index your code
hub / github.com/Effect-TS/effect / mergedAnnotations

Function mergedAnnotations

packages/platform/src/HttpApiSchema.ts:90–96  ·  view source on GitHub ↗
(ast: AST.AST)

Source from the content-addressed store, hash-verified

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

Callers 1

getAnnotationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected