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

Function isBeforeInvocation

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

Source from the content-addressed store, hash-verified

553
554// TODO: move to policy plugin
555export function isBeforeInvocation(node: AstNode) {
556 return isInvocationExpr(node) && node.function.ref?.name === 'before';
557}
558
559/**
560 * Determines if the given AST node is a collection predicate.

Callers 4

getMemberAccessScopeMethod · 0.90
resolveInvocationMethod · 0.90

Calls 1

isInvocationExprFunction · 0.90

Tested by

no test coverage detected