MCPcopy Create free account
hub / github.com/bytebase/bytebase / getConstantInt64Value

Function getConstantInt64Value

frontend/src/plugins/cel/logic/resolve.ts:35–43  ·  view source on GitHub ↗
(expr: CELExpr)

Source from the content-addressed store, hash-verified

33
34// Helper functions to extract constant values from proto-es oneof patterns
35const 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
45const getConstantStringValue = (expr: CELExpr): string => {
46 if (

Callers 2

resolveEqualityExprFunction · 0.85
resolveCompareExprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected