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

Function isCollectionPredicate

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

Source from the content-addressed store, hash-verified

560 * Determines if the given AST node is a collection predicate.
561 */
562export function isCollectionPredicate(node: AstNode): node is BinaryExpr {
563 return isBinaryExpr(node) && ['?', '!', '^'].includes(node.operator);
564}
565
566/**
567 * Gets all data models and type defs from the given documents registry.

Calls 1

isBinaryExprFunction · 0.90

Tested by

no test coverage detected