MCPcopy Create free account
hub / github.com/Effect-TS/effect / parseProperties

Function parseProperties

packages/tools/docgen/src/Parser.ts:542–553  ·  view source on GitHub ↗
(c: ast.ClassDeclaration)

Source from the content-addressed store, hash-verified

540 })
541
542const parseProperties = (c: ast.ClassDeclaration) => {
543 const properties = Array.filter(
544 c.getProperties(),
545 (pd) =>
546 !pd.isStatic() && pipe(
547 pd.getFirstModifierByKind(ast.ts.SyntaxKind.PrivateKeyword),
548 Option.fromNullishOr,
549 Option.isNone
550 )
551 )
552 return Effect.forEach(properties, parseProperty).pipe(Effect.map(Array.flatten))
553}
554
555/**
556 * @internal

Callers 2

parseClassFunction · 0.85
getParserMethod · 0.85

Calls 5

filterMethod · 0.80
pipeMethod · 0.65
forEachMethod · 0.65
pipeFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected