MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / isDataFieldReference

Function isDataFieldReference

packages/language/src/utils.ts:149–151  ·  view source on GitHub ↗
(node: AstNode)

Source from the content-addressed store, hash-verified

147 * Determines if the given expression is a reference to a data field.
148 */
149export function isDataFieldReference(node: AstNode): node is ReferenceExpr {
150 return isReferenceExpr(node) && isDataField(node.target.ref);
151}
152
153/**
154 * Returns if the given field is a relation field.

Callers 6

_checkValidateMethod · 0.90
_checkLengthMethod · 0.90
_checkCheckMethod · 0.90
validateBinaryExprMethod · 0.90
isDiscriminatorFieldMethod · 0.90

Calls 2

isReferenceExprFunction · 0.90
isDataFieldFunction · 0.90

Tested by

no test coverage detected