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

Function isDirectCallMember

ark/aot/usage.ts:1420–1426  ·  view source on GitHub ↗
(member: Node)

Source from the content-addressed store, hash-verified

1418}
1419
1420const isDirectCallMember = (member: Node): boolean => {
1421 const [operand, after] = operatorOf(member)
1422 return (
1423 (after?.type === "CallExpression" && after.callee === operand) ||
1424 (after?.type === "TaggedTemplateExpression" && after.tag === operand)
1425 )
1426}
1427
1428const isDiscardedAssignment = (node: Node): boolean => {
1429 const [operand, parent] = operatorOf(node)

Callers 7

buildThisReadsContextFunction · 0.85
instanceExposesComputedFunction · 0.85
classBindingExposesFunction · 0.85
isOwnReadUseFunction · 0.85
isDirectOwnThisReadFunction · 0.85
isContainedFunction · 0.85
isContainedThisFunction · 0.85

Calls 1

operatorOfFunction · 0.90

Tested by

no test coverage detected