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

Function isCheckInvocation

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

Source from the content-addressed store, hash-verified

444
445// TODO: move to policy plugin
446export function isCheckInvocation(node: AstNode) {
447 return isInvocationExpr(node) && node.function.ref?.name === 'check';
448}
449
450/**
451 * Resolves the transitive imports of the given model and returns the list of imported models. The given model itself is not included in the result.

Callers 1

_checkCheckMethod · 0.90

Calls 1

isInvocationExprFunction · 0.90

Tested by

no test coverage detected