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

Function isReference

ark/aot/interpreter.ts:3189–3192  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

3187 node.parent?.type === "MemberExpression" && node.parent.object === node
3188
3189const isReference = (node: Node) => {
3190 const { type } = unwrapExpression(node)
3191 return type === "Identifier" || type === "MemberExpression"
3192}
3193
3194export const isDynamic = (value: unknown): value is DynamicValue =>
3195 value instanceof DynamicValue

Callers 1

recordReadMethod · 0.70

Calls 1

unwrapExpressionFunction · 0.90

Tested by

no test coverage detected