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

Function sub

frontend/src/plugins/cel/logic/resolve.ts:97–108  ·  view source on GitHub ↗
(subTree: CELExpr, expand: boolean)

Source from the content-addressed store, hash-verified

95 };
96 const [left, right] = args;
97 const sub = (subTree: CELExpr, expand: boolean) => {
98 const subExpr = dfs(subTree);
99 if (
100 expand &&
101 isConditionGroupExpr(subExpr) &&
102 subExpr.operator === operator
103 ) {
104 group.args.push(...subExpr.args);
105 } else {
106 group.args.push(subExpr);
107 }
108 };
109 sub(left, true);
110 sub(right, false);
111 return group;

Callers 1

dfsFunction · 0.85

Calls 2

isConditionGroupExprFunction · 0.90
dfsFunction · 0.85

Tested by

no test coverage detected