Function
parseProperties
(c: ast.ClassDeclaration)
Source from the content-addressed store, hash-verified
| 540 | }) |
| 541 | |
| 542 | const 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 |
Tested by
no test coverage detected