MCPcopy Create free account

hub / github.com/cel-expr/cel-go / functions

Functions9,178 in github.com/cel-expr/cel-go

↓ 1 callersMethodfindAlias
findAlias takes a name as input and returns an alias expansion if one exists. If the name is qualified, the first component of the qualified name is
common/containers/container.go:154
↓ 1 callersFunctionfindFunctionActivation
findFunctionActivation searches a hierarchy for the activation which supplies late-bound functions, carrying the match found so far so that a second m
interpreter/activation.go:350
↓ 1 callersFunctionfindInBucket
findInBucket returns the call state in the bucket matching the same node id and call identity, or nil if no match is present.
interpreter/async.go:212
↓ 1 callersMethodfindInternal
findInternal attempts to convert the incoming key to the map's internal native type and then returns the value, if found.
common/types/map.go:524
↓ 1 callersMethodfindInternal
findInternal attempts to convert the incoming key to the map's internal native type and then returns the value, if found.
common/types/map.go:1296
↓ 1 callersMethodfindLine
findLine finds the line that contains the given character offset and returns the line number and offset of the beginning of that line. Note that the l
common/source.go:184
↓ 1 callersMethodfindRefValKey
findRefValKey looks up a key in a map whose key type is ref.Val, falling back to numerically equivalent keys of other numeric types (e.g. 1.0 -> 1 ->
common/types/map.go:823
↓ 1 callersFunctionflatten
(list traits.Lister, depth int64)
ext/lists.go:548
↓ 1 callersFunctionflattenInto
(dst []ref.Val, list traits.Lister, depth int64)
ext/lists.go:558
↓ 1 callersFunctionflattenedLengthAnyDepth
flattenedLengthAnyDepth bounds the flattened length over every depth. Flattening below the last level which may hold a list changes nothing, so the de
ext/lists.go:982
↓ 1 callersFunctionflattenedSize
flattenedSize bounds the size of l.flatten(), sound under both built-in strategies. Its upper bound is the smaller of two bounds: - Under the default
ext/lists.go:1278
↓ 1 callersFunctionfmtParam
(p letFunctionParam)
repl/commands_test.go:88
↓ 1 callersFunctionfmtParams
(ps []letFunctionParam)
repl/commands_test.go:92
↓ 1 callersMethodfoldElems
(f traits.Folder)
common/types/list.go:1168
↓ 1 callersMethodfoldIterable
(iterable traits.Iterable)
interpreter/interpretable.go:1984
↓ 1 callersMethodformat
(arg ref.Val)
ext/formatting_v2.go:45
↓ 1 callersMethodformat
(*strings.Builder)
common/types/format.go:12
↓ 1 callersFunctionformatDecimal
(arg ref.Val, locale string)
ext/formatting.go:231
↓ 1 callersFunctionformatFunctionExprType
(resultType *exprpb.Type, argTypes []*exprpb.Type, isInstance bool)
checker/format.go:150
↓ 1 callersFunctionformatList
(arg ref.Val, locale string)
ext/formatting.go:82
↓ 1 callersFunctionformatLiteral
(c ref.Val)
common/debug/debug.go:255
↓ 1 callersFunctionformatMap
(arg ref.Val, locale string)
ext/formatting.go:119
↓ 1 callersFunctionformatOperator
(opName string, o *OverloadDecl)
common/decls/decls.go:1275
↓ 1 callersFunctionformatParams
(params []letFunctionParam)
repl/evaluator.go:279
↓ 1 callersFunctionformatPath
(path []string)
cel/fieldpaths.go:50
↓ 1 callersFunctionformatSignature
(fnName string, o *OverloadDecl)
common/decls/decls.go:1265
↓ 1 callersFunctionformatSpecifierImpl
(td *TypeDesc, sb *strings.Builder)
common/env/env.go:854
↓ 1 callersFunctionfunction
(name string, opts ...decls.FunctionOpt)
common/stdlib/standard.go:933
↓ 1 callersMethodfunctionCost
(e ast.Expr, function, overloadID string, target *AstNode, args []AstNode, argCosts []CostEstimate)
common/cost/estimator.go:1063
↓ 1 callersFunctionfunctionDeclToExprDecl
functionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
common/decls/decls.go:1214
↓ 1 callersFunctiongcd
(a, b uint64)
common/cost/helper.go:307
↓ 1 callersFunctiongenAttr
(fac AttributeFactory, a attr)
interpreter/attribute_patterns_test.go:324
↓ 1 callersMethodgenerateFunctionBinding
()
repl/evaluator.go:298
↓ 1 callersFunctiongetAllNodes
(a *ast.AST)
fuzzing/fuzz_pratt_parser_test.go:98
↓ 1 callersFunctiongetBinaryOpInfo
(kind tokenKind)
parser/pratt_parser.go:70
↓ 1 callersFunctiongetChildFactory
(expr Expr)
common/ast/navigable.go:592
↓ 1 callersMethodgetExplanationOutputRule
()
policy/parser.go:286
↓ 1 callersMethodgetLocationByOffset
(offset int32)
parser/helper.go:228
↓ 1 callersFunctiongetMacroKeys
(macroCalls map[int64]ast.Expr)
cel/optimizer_test.go:314
↓ 1 callersFunctiongetMaxID
(expr ast.Expr)
interpreter/prune.go:494
↓ 1 callersFunctiongetProtoFieldAggregateSize
(c *sizeContext, fd protoreflect.FieldDescriptor, v protoreflect.Value)
common/types/size_calc.go:294
↓ 1 callersFunctiongetProtoValueAggregateSize
(c *sizeContext, v protoreflect.Value)
common/types/size_calc.go:274
↓ 1 callersFunctiongetReflectValueAggregateSize
(c *sizeContext, fieldVal reflect.Value)
common/types/size_calc.go:477
↓ 1 callersFunctiongetStdEnv
getStdEnv lazy initializes the CEL standard environment.
cel/env.go:1252
↓ 1 callersFunctiongetWellKnownTypeName
(t *types.Type)
checker/checker.go:746
↓ 1 callersMethodguardedAsyncOp
guardedAsyncOp creates an invocation guard around the provided async function binding, if one is provided.
common/decls/decls.go:869
↓ 1 callersMethodguardedBinaryOp
guardedBinaryOp creates an invocation guard around the provided binary operator, if one is defined.
common/decls/decls.go:843
↓ 1 callersMethodguardedFunctionOp
guardedFunctionOp creates an invocation guard around the provided variadic function binding, if one is provided.
common/decls/decls.go:856
↓ 1 callersMethodguardedUnaryOp
guardedUnaryOp creates an invocation guard around the provided unary operator, if one is defined.
common/decls/decls.go:830
↓ 1 callersMethodhandleConfig
(args []string)
repl/evaluator.go:760
↓ 1 callersFunctionhandleExtendedConfigOption
(conf any, optFactories []ConfigOptionFactory)
cel/options.go:748
↓ 1 callersMethodhandleStatus
(args []string)
repl/evaluator.go:737
↓ 1 callersFunctionhasEmptyCollectionWithComma
ANTLR grammar allows a standalone comma in empty lists, maps, and structs (e.g., '[,]', '{,}', 'Msg{,}'), whereas Pratt parser requires at least one e
fuzzing/fuzz_pratt_parser_test.go:114
↓ 1 callersFunctionhasOnlyRecursionLimitErrors
hasOnlyRecursionLimitErrors returns true if all parse errors are recursion limit exceeded errors.
fuzzing/fuzz_pratt_parser_test.go:170
↓ 1 callersFunctionhasRawBytesRbPrefix
ANTLR grammar only supports 'br' prefix order for raw byte literals (e.g., br'abc'), whereas Pratt parser supports both 'br' and 'rb' (e.g., rb'abc',
fuzzing/fuzz_pratt_parser_test.go:69
↓ 1 callersFunctionhasTestSuite
(dir string)
conformance/policy/policy_conformance_test.go:142
↓ 1 callersFunctionhasTypeParam
hasTypeParam returns true if the type is a type parameter or contains any type parameters directly or transitively.
checker/types.go:107
↓ 1 callersFunctionhasUppercaseHexPrefix
ANTLR grammar only supports lowercase '0x' prefix for hexadecimal integer literals, whereas Pratt parser supports both '0x' and '0X' (e.g., '0X12', '0
fuzzing/fuzz_pratt_parser_test.go:86
↓ 1 callersFunctionhashArg
(arg ref.Val)
interpreter/async.go:176
↓ 1 callersFunctionhideTestVars
hideTestVars renames identifiers and comprehension variables listed in hiddenTestVars.
interpreter/mutability_test.go:83
↓ 1 callersMethodidFromOffsets
(start, stop int32)
parser/helper.go:195
↓ 1 callersFunctioninExemptFunction
(e ast.NavigableExpr, exemptFunctions []string)
cel/validator.go:408
↓ 1 callersMethodincompatibleType
(id int64, l common.Location, ex ast.Expr, prev, next *types.Type)
checker/errors.go:45
↓ 1 callersMethodindexFieldPath
indexFieldPath reports the field path segment an index overload qualifies its operand with, so that the size hint recorded for a container's elements
common/cost/estimator.go:709
↓ 1 callersFunctionindexOf
(str, substr string)
ext/strings.go:635
↓ 1 callersMethodindexResultSize
indexResultSize tracks the field path and resolves the element size of an index operation (l[i], m[k], or their optional variants). Under legacy beha
common/cost/estimator.go:603
↓ 1 callersMethodindexedContainerSize
indexedContainerSize returns the size of the container an index operation selects from. From version 1 the operand of an optional index on an optional
common/cost/estimator.go:661
↓ 1 callersMethodinitDispatcher
()
cel/env.go:811
↓ 1 callersMethodinitInterpretable
(a *ast.AST, plannerOptions []interpreter.PlannerOption)
cel/program.go:459
↓ 1 callersMethodinitTokenStream
()
parser/pratt_parser.go:151
↓ 1 callersMethodinlineExpr
inlineExpr replaces the current expression with the inlined one, unless the location of the inlining happens within a presence test, e.g. has(a.b.c) -
cel/inlining.go:136
↓ 1 callersFunctionint64ToInt16Checked
int64ToInt16Checked converts an int64 to an int16 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:342
↓ 1 callersFunctionint64ToInt32Checked
int64ToInt32Checked converts an int64 to an int32 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:352
↓ 1 callersFunctionint64ToInt8Checked
int64ToInt8Checked converts an int64 to an int8 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:332
↓ 1 callersFunctionintOrError
function invocation guards for common call signatures within extension functions.
ext/guards.go:25
↓ 1 callersFunctionintUintEqual
(i int64, u uint64)
common/types/unknown.go:86
↓ 1 callersFunctioninternalIsAssignableNull
internalIsAssignableNull returns true if the type is nullable.
checker/types.go:253
↓ 1 callersFunctioninvalidOptionalElementInit
(value ref.Val)
interpreter/interpretable.go:1940
↓ 1 callersFunctionisAlphaNumeric
(c byte)
common/env/io.go:390
↓ 1 callersFunctionisAmbiguousUnaryOperand
Indicates whether the operand of a unary operator must be wrapped in parentheses in order for the unparsed expression to parse back to an equivalent A
parser/unparser.go:556
↓ 1 callersFunctionisAny
(m protoreflect.Message)
common/types/pb/equal.go:204
↓ 1 callersFunctionisAssignableList
isAssignableList reports whether l1 is assignable to l2, adding the substitutions that make it so to m. If l1 is not assignable to l2, m is left as it
checker/types.go:274
↓ 1 callersMethodisAssignableList
(l1, l2 []*types.Type)
checker/checker.go:652
↓ 1 callersMethodisBind
isBind returns true if the given expression represents a cel.bind() macro structure.
common/cost/estimator.go:911
↓ 1 callersFunctionisBindable
isBindable indicates whether the inlined type can be used within a cel.bind() if the expression being replaced occurs within a presence test. Value ty
cel/inlining.go:220
↓ 1 callersFunctionisBoolType
(a *ast.AST, e ast.Expr)
cel/folding.go:327
↓ 1 callersFunctionisCelBind
(e ast.NavigableExpr)
cel/validator.go:594
↓ 1 callersFunctionisCelBindMacro
(macro ast.Expr)
interpreter/prune.go:564
↓ 1 callersFunctionisChar
isChar reports whether got is want, case-insensitively; want must be lower case.
common/types/timestamp.go:112
↓ 1 callersFunctionisComplexOperatorWithRespectTo
Indicates whether it is a complex operation compared to another. expr is *not* considered complex if it is not a call expression or has less than two
parser/unparser.go:575
↓ 1 callersFunctionisConstQual
(q Qualifier, val ref.Val)
interpreter/interpreter_test.go:2763
↓ 1 callersFunctionisDay
(s string)
common/types/timestamp.go:125
↓ 1 callersFunctionisDelim
(r rune)
common/types/map.go:1538
↓ 1 callersFunctionisDigit
(c byte)
common/types/timestamp.go:109
↓ 1 callersFunctionisDynamicKind
isDynamicKind reports whether kind represents a dynamically typed value.
common/cost/default_strategy.go:220
↓ 1 callersFunctionisExprConstantOfKind
(e ast.Expr, t *types.Type)
cel/folding.go:777
↓ 1 callersFunctionisFieldQual
(q Qualifier, fieldName string)
interpreter/interpreter_test.go:2771
↓ 1 callersFunctionisHexDigit
(r rune)
parser/lexer.go:207
↓ 1 callersFunctionisHour
(s string)
common/types/timestamp.go:126
↓ 1 callersFunctionisIdentTrailing
(r rune)
parser/lexer.go:199
← previousnext →3,101–3,200 of 9,178, ranked by callers