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

Function getBrands

packages/effect/src/SchemaAST.ts:2997–3002  ·  view source on GitHub ↗
(ast: Annotated)

Source from the content-addressed store, hash-verified

2995const formatKeyword = (ast: AST): string => Option.getOrElse(getExpected(ast), () => ast._tag)
2996
2997function getBrands(ast: Annotated): string {
2998 return Option.match(getBrandAnnotation(ast), {
2999 onNone: () => "",
3000 onSome: (brands) => brands.map((brand) => ` & Brand<${Inspectable.formatUnknown(brand)}>`).join("")
3001 })
3002}
3003
3004const getOrElseExpected = (ast: Annotated): Option.Option<string> =>
3005 getTitleAnnotation(ast).pipe(

Callers 1

getOrElseExpectedFunction · 0.85

Calls 2

joinMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected