MCPcopy Create free account
hub / github.com/arktypeio/arktype / isNonNullProtoProperty

Function isNonNullProtoProperty

ark/aot/usage.ts:1477–1488  ·  view source on GitHub ↗
(
	prop: Extract<Node, { type: "Property" }>
)

Source from the content-addressed store, hash-verified

1475}
1476
1477const isNonNullProtoProperty = (
1478 prop: Extract<Node, { type: "Property" }>
1479): boolean => {
1480 if (
1481 prop.computed ||
1482 prop.kind !== "init" ||
1483 propertyKeyOf(prop) !== "__proto__"
1484 )
1485 return false
1486 const proto = unwrapExpression(prop.value)
1487 return proto.type !== "Literal" || proto.value !== null
1488}
1489
1490const buildThisReadsContext = (
1491 modules: readonly SourceModule[],

Callers 3

buildThisReadsContextFunction · 0.85
receivesNoEscapedThisFunction · 0.85
isContainedFunction · 0.85

Calls 2

propertyKeyOfFunction · 0.90
unwrapExpressionFunction · 0.90

Tested by

no test coverage detected