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

Method compileMembers

packages/effect/src/SchemaAST.ts:2937–2954  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2935 | undefined
2936 type Index = NonNullable<typeof indexes>[number]
2937 const compileMembers = (): Array<ParsedProperty> => {
2938 if (!properties) {
2939 properties = ast.propertySignatures.map((ps) => ({
2940 parser: compileField(ps.type),
2941 name: ps.name,
2942 type: ps.type,
2943 ownOnly: requiresOwnProperty(ps.name)
2944 }))
2945 indexes = indexCount
2946 ? ast.indexSignatures.map((is) => ({
2947 is,
2948 parserKey: compile(parameterFromPropertyKey(is.parameter)),
2949 parserValue: compileField(is.type)
2950 }))
2951 : undefined
2952 }
2953 return properties
2954 }
2955
2956 const makeFallback = (): SchemaParser.Parser => {
2957 const expectedKeys = new Set<PropertyKey>(

Callers

nothing calls this directly

Calls 4

compileFieldFunction · 0.85
requiresOwnPropertyFunction · 0.85
compileFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected