(expr: Expression)
| 133 | * Determines if the given expression is an invocation of `auth` or a member access on the result of an `auth` invocation (e.g. `auth().role`). |
| 134 | */ |
| 135 | export function isAuthOrAuthMemberAccess(expr: Expression): boolean { |
| 136 | return isAuthInvocation(expr) || (isMemberAccessExpr(expr) && isAuthOrAuthMemberAccess(expr.operand)); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Determines if the given expression is a reference to an enum field. |
no test coverage detected