(expr: CELExpr)
| 33 | |
| 34 | // Helper functions to extract constant values from proto-es oneof patterns |
| 35 | const getConstantInt64Value = (expr: CELExpr): number => { |
| 36 | if ( |
| 37 | expr.exprKind?.case === "constExpr" && |
| 38 | expr.exprKind.value.constantKind?.case === "int64Value" |
| 39 | ) { |
| 40 | return Number(expr.exprKind.value.constantKind.value); |
| 41 | } |
| 42 | return 0; |
| 43 | }; |
| 44 | |
| 45 | const getConstantStringValue = (expr: CELExpr): string => { |
| 46 | if ( |
no outgoing calls
no test coverage detected