(node: AstNode)
| 62 | } |
| 63 | |
| 64 | export function isFromStdlib(node: AstNode) { |
| 65 | const model = AstUtils.getContainerOfType(node, isModel); |
| 66 | return !!model && !!model.$document && model.$document.uri.path.endsWith(STD_LIB_MODULE_NAME); |
| 67 | } |
| 68 | |
| 69 | export function isAuthInvocation(node: AstNode) { |
| 70 | return isInvocationExpr(node) && node.function.ref?.name === 'auth' && isFromStdlib(node.function.ref); |
no outgoing calls
no test coverage detected