mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-08 06:15:45 +00:00
Run pin-dependency.sh and update-vendor.sh.
This commit is contained in:
2
vendor/github.com/google/cel-go/parser/helper.go
generated
vendored
2
vendor/github.com/google/cel-go/parser/helper.go
generated
vendored
@@ -217,7 +217,7 @@ func (p *parserHelper) buildMacroCallArg(expr *exprpb.Expr) *exprpb.Expr {
|
||||
return &exprpb.Expr{Id: expr.GetId()}
|
||||
}
|
||||
|
||||
switch expr.ExprKind.(type) {
|
||||
switch expr.GetExprKind().(type) {
|
||||
case *exprpb.Expr_CallExpr:
|
||||
// Iterate the AST from `expr` recursively looking for macros. Because we are at most
|
||||
// starting from the top level macro, this recursion is bounded by the size of the AST. This
|
||||
|
||||
6
vendor/github.com/google/cel-go/parser/parser.go
generated
vendored
6
vendor/github.com/google/cel-go/parser/parser.go
generated
vendored
@@ -807,13 +807,13 @@ func (p *parser) extractQualifiedName(e *exprpb.Expr) (string, bool) {
|
||||
if e == nil {
|
||||
return "", false
|
||||
}
|
||||
switch e.ExprKind.(type) {
|
||||
switch e.GetExprKind().(type) {
|
||||
case *exprpb.Expr_IdentExpr:
|
||||
return e.GetIdentExpr().GetName(), true
|
||||
case *exprpb.Expr_SelectExpr:
|
||||
s := e.GetSelectExpr()
|
||||
if prefix, found := p.extractQualifiedName(s.Operand); found {
|
||||
return prefix + "." + s.Field, true
|
||||
if prefix, found := p.extractQualifiedName(s.GetOperand()); found {
|
||||
return prefix + "." + s.GetField(), true
|
||||
}
|
||||
}
|
||||
// TODO: Add a method to Source to get location from character offset.
|
||||
|
||||
4
vendor/github.com/google/cel-go/parser/unparser.go
generated
vendored
4
vendor/github.com/google/cel-go/parser/unparser.go
generated
vendored
@@ -81,7 +81,7 @@ func (un *unparser) visit(expr *exprpb.Expr) error {
|
||||
if visited || err != nil {
|
||||
return err
|
||||
}
|
||||
switch expr.ExprKind.(type) {
|
||||
switch expr.GetExprKind().(type) {
|
||||
case *exprpb.Expr_CallExpr:
|
||||
return un.visitCall(expr)
|
||||
case *exprpb.Expr_ConstExpr:
|
||||
@@ -249,7 +249,7 @@ func (un *unparser) visitCallUnary(expr *exprpb.Expr) error {
|
||||
|
||||
func (un *unparser) visitConst(expr *exprpb.Expr) error {
|
||||
c := expr.GetConstExpr()
|
||||
switch c.ConstantKind.(type) {
|
||||
switch c.GetConstantKind().(type) {
|
||||
case *exprpb.Constant_BoolValue:
|
||||
un.str.WriteString(strconv.FormatBool(c.GetBoolValue()))
|
||||
case *exprpb.Constant_BytesValue:
|
||||
|
||||
Reference in New Issue
Block a user