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

Function isAuthInvocation

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

Source from the content-addressed store, hash-verified

67}
68
69export function isAuthInvocation(node: AstNode) {
70 return isInvocationExpr(node) && node.function.ref?.name === 'auth' && isFromStdlib(node.function.ref);
71}
72
73/**
74 * Try getting string value from a potential string literal expression

Callers 5

getMemberAccessScopeMethod · 0.90
resolveInvocationMethod · 0.90
resolveMemberAccessMethod · 0.90
validateMethod · 0.90
isAuthOrAuthMemberAccessFunction · 0.85

Calls 2

isInvocationExprFunction · 0.90
isFromStdlibFunction · 0.70

Tested by

no test coverage detected