MCPcopy Create free account

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

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

↓ 2 callersFunctionlistLiteralLevels
listLiteralLevels reports how many levels of list literals expr nests: 0 when expr is not a list literal. Flattening a literal of n levels by more tha
ext/lists.go:1061
↓ 2 callersFunctionlocationCodeEnvOption
()
tools/celtest/test_runner_test.go:83
↓ 2 callersMethodlookupFieldType
(exprID int64, structType, fieldName string)
checker/checker.go:714
↓ 2 callersMethodlookupGlobalIdent
lookupGlobalIdent finds a candidate variable name in the root scope, returning nil if the identifier is not in the global scope.
checker/env.go:233
↓ 2 callersMethodlookupLocalIdent
lookupLocalIdent finds the variable candidate in a local scope, returning nil if the candidate variable name is not a local variable.
checker/env.go:227
↓ 2 callersFunctionmapKeyValueTypes
mapKeyValueTypes extracts key and value types of a map, defaulting to DynType if not parameterized.
common/cost/default_strategy.go:310
↓ 2 callersMethodmarshal
()
common/env/io.go:163
↓ 2 callersMethodmarshal
()
common/env/io.go:209
↓ 2 callersFunctionmatchConstantFormatStringWithListLiteralArgs
matchConstantFormatStringWithListLiteralArgs matches all valid expression nodes for string format checking.
ext/formatting.go:473
↓ 2 callersFunctionmatchLanguage
(locale string)
ext/formatting.go:250
↓ 2 callersMethodmatches
matches reports whether two call states refer to the same function, overload, and arguments.
interpreter/async.go:386
↓ 2 callersMethodmaxHeight
(exprs ...Expr)
common/ast/ast.go:659
↓ 2 callersMethodmayBeOther
mayBeOther reports whether a value at this level may be something other than a list, which flattening keeps as a single entry.
ext/lists.go:918
↓ 2 callersFunctionmayHoldElements
mayHoldElements reports whether a container with the given size estimate may be non-empty under the context's sizing strategy. An empty container has
common/cost/helper.go:556
↓ 2 callersFunctionmaybeCustomAdapter
(adapter Adapter, list traits.Lister)
common/types/list.go:228
↓ 2 callersMethodmaybePrune
(node ast.Expr)
interpreter/prune.go:267
↓ 2 callersMethodmaybeQuoteField
(field string)
parser/unparser.go:105
↓ 2 callersMethodmaybeQuoteFunction
(fun string)
parser/unparser.go:96
↓ 2 callersMethodmember
(_p int)
parser/gen/cel_parser.go:2539
↓ 2 callersMethodmember
(_p int)
repl/parser/commands_parser.go:6497
↓ 2 callersFunctionmergeBinaryUnknowns
(lVal, rVal ref.Val)
interpreter/interpretable.go:2225
↓ 2 callersFunctionmissingAttribute
(attr string)
interpreter/attributes.go:1662
↓ 2 callersFunctionmissingIndex
(missing ref.Val)
interpreter/attributes.go:1650
↓ 2 callersMethodmodelVersion
()
common/cost/default_strategy.go:276
↓ 2 callersFunctionmostGeneral
mostGeneral returns the more general of two types which are known to unify.
checker/types.go:279
↓ 2 callersFunctionmsgWithExtensions
msgWithExtensions generates a new example message with all possible extensions set.
ext/protos_test.go:249
↓ 2 callersFunctionmultiplyInt64Checked
multiplyInt64Checked performs multiplication with overflow detection of two int64 value. If the operation fails the error return value will be non-ni
common/types/overflow.go:60
↓ 2 callersFunctionmustAdaptToEntryExpr
(e *exprpb.Expr_CreateStruct_Entry)
cel/macro.go:556
↓ 2 callersFunctionmustAdaptToProtoEntry
(e ast.EntryExpr)
cel/macro.go:577
↓ 2 callersFunctionmustParseDuration
(s string)
ext/strings_test.go:454
↓ 2 callersFunctionmustPartialVars
(t *testing.T, vars any, patterns ...*AttributePattern)
interpreter/activation_test.go:447
↓ 2 callersMethodnativeSliceValue
()
common/types/list.go:797
↓ 2 callersFunctionnegateDurationChecked
negateDurationChecked performs negation with overflow detection of a time.Duration. If the operation fails due to overflow the error return value wil
common/types/overflow.go:185
↓ 2 callersFunctionnegateInt64Checked
negateInt64Checked performs negation with overflow detection of an int64. If the operation fails the error return value will be non-nil.
common/types/overflow.go:49
↓ 2 callersMethodnewAstNode
(e ast.Expr)
common/cost/estimator.go:1124
↓ 2 callersFunctionnewAsyncCallState
(id int64, function, overload string, argVals []ref.Val, impl functions.AsyncOp)
interpreter/async.go:256
↓ 2 callersFunctionnewAsyncCallTrackerPool
()
interpreter/async.go:450
↓ 2 callersFunctionnewAttrResolution
newAttrResolution creates a new attribute resolution value.
checker/env.go:154
↓ 2 callersFunctionnewBalancingLogicManager
newBalancingLogicManager creates a logic manager instance bound to a specific function and its first term.
parser/helper.go:317
↓ 2 callersFunctionnewBenchmarkCategoryParser
(tb testing.TB, options ...Option)
parser/parser_test.go:3890
↓ 2 callersFunctionnewDynamicBlock
(slotExprs []interpreter.InterpretableV2, expr interpreter.InterpretableV2)
ext/bindings.go:196
↓ 2 callersFunctionnewFieldDescription
newFieldDescription creates a new field description from a protoreflect.FieldDescriptor.
common/types/pb/type.go:159
↓ 2 callersFunctionnewFunctionType
(resultType *types.Type, argTypes ...*types.Type)
checker/types.go:350
↓ 2 callersMethodnewIdent
(ctx any, name string)
parser/helper.go:80
↓ 2 callersMethodnewList
(ctx any, elements []ast.Expr, optionals ...int32)
parser/helper.go:100
↓ 2 callersFunctionnewListIterator
(listValue traits.Lister)
common/types/list.go:700
↓ 2 callersMethodnewLiteralBytes
(ctx any, value []byte)
parser/helper.go:64
↓ 2 callersMethodnewLiteralUint
(ctx any, value uint64)
parser/helper.go:72
↓ 2 callersMethodnewLogicManager
(function string, term ast.Expr)
parser/antlr_parser.go:803
↓ 2 callersMethodnewMap
(ctx any, entries ...ast.EntryExpr)
parser/helper.go:104
↓ 2 callersMethodnewMapEntry
(entryID int64, key ast.Expr, value ast.Expr, optional bool)
parser/helper.go:108
↓ 2 callersFunctionnewNavigableExpr
(ast *AST, parent NavigableExpr, expr Expr, depth int)
common/ast/navigable.go:292
↓ 2 callersMethodnewObject
(ctx any, typeName string, fields ...ast.EntryExpr)
parser/helper.go:112
↓ 2 callersMethodnewObjectField
(fieldID int64, field string, value ast.Expr, optional bool)
parser/helper.go:116
↓ 2 callersFunctionnewOverload
(overloadID string, memberFunction bool, args []*types.Type, resultType *types.Type, opts ...OverloadOpt)
common/decls/decls.go:628
↓ 2 callersFunctionnewParseFormatError
(msg string, wrapped error)
ext/formatting.go:911
↓ 2 callersFunctionnewParserHelper
(source common.Source, fac ast.ExprFactory)
parser/helper.go:35
↓ 2 callersMethodnewReceiverCall
(ctx any, function string, target ast.Expr, args ...ast.Expr)
parser/helper.go:96
↓ 2 callersMethodnewSelect
(ctx any, operand ast.Expr, field string)
parser/helper.go:84
↓ 2 callersFunctionnewStdEnv
(t *testing.T)
checker/env_test.go:85
↓ 2 callersFunctionnewTestParser
(t *testing.T, options ...Option)
parser/parser_test.go:3925
↓ 2 callersFunctionnewValidatorConfig
newValidatorConfig initializes the validator config with default values for core CEL validators.
cel/validator.go:179
↓ 2 callersFunctionnewVariadicLogicManager
newVariadicLogicManager creates a logic manager instance bound to a specific function and its first term.
parser/helper.go:306
↓ 2 callersMethodnextSignificantToken
()
parser/pratt_parser.go:187
↓ 2 callersFunctionnormalizeIDs
normalizeIDs ensures that the metadata present with an AST is reset in a manner such that the ids within the expression correspond to the ids within m
cel/optimizer.go:135
↓ 2 callersMethodnormalizeIdent
normalizeIdent returns the interpreted identifier.
parser/antlr_parser.go:236
↓ 2 callersMethodnotAType
(id int64, l common.Location, typeName string)
checker/errors.go:68
↓ 2 callersFunctionoctalFormatError
(id int64, badType string)
ext/formatting.go:683
↓ 2 callersFunctionoctalFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:623
↓ 2 callersFunctionoperandKind
operandKind returns the kind of the checked type of an Arg, Target or Result operand.
common/cost/helper.go:84
↓ 2 callersFunctionoptionalConsumerExprs
optionalConsumerExprs feed the value an optional yields into another call, which is where a size that does not survive the optional shows up. The chai
common/cost/cost_bounds_test.go:435
↓ 2 callersFunctionoptionalCost
optionalCost estimates and evaluates expr, and reports the estimate and the tracked cost.
common/cost/optional_cost_test.go:69
↓ 2 callersFunctionoptionalCostEnv
optionalCostEnv returns an environment with optional types, the regex library, and a few variables, at a cost model version and sizing strategy.
common/cost/optional_cost_test.go:30
↓ 2 callersFunctionoptionalDecls
(t *testing.T)
interpreter/prune_test.go:595
↓ 2 callersFunctionoptionalLength
optionalLength reports the size of an optional under the default sizing strategy, at the given cost model version. From version 1 an optional is 1 pl
common/cost/default_strategy.go:263
↓ 2 callersMethodoverride
override replaces the rules the option sets, leaving the others in place.
common/cost/version.go:57
↓ 2 callersFunctionparseAndCompilePolicy
(t testing.TB, name string, policySource string, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:261
↓ 2 callersMethodparseArguments
(closeTok tokenKind)
parser/pratt_parser.go:1016
↓ 2 callersMethodparseBinaryAndTernaryFromLhs
parseBinaryAndTernaryFromLhs parses the operators following lhs, which is lhsDepth deep, and leaves the depth of the resulting expression in lastParse
parser/pratt_parser.go:489
↓ 2 callersFunctionparseConfigYAML
(t *testing.T, doc string)
policy/config_test.go:244
↓ 2 callersFunctionparseFormatString
parseFormatString formats a string according to the string.format syntax, taking the clause implementations from the provided FormatCallback and the a
ext/formatting.go:783
↓ 2 callersFunctionparseFormatStringV2
parseFormatString formats a string according to the string.format syntax, taking the clause implementations from the provided FormatCallback and the a
ext/formatting_v2.go:673
↓ 2 callersMethodparseMatchInternal
(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
policy/parser.go:905
↓ 2 callersMethodparseMember
()
parser/pratt_parser.go:569
↓ 2 callersFunctionparseMutabilityExpr
(t *testing.T, expr string)
interpreter/mutability_test.go:66
↓ 2 callersFunctionparsePolicySource
(t testing.TB, name string, policySource string, parseOpts ...ParserOption)
policy/compiler_test.go:247
↓ 2 callersMethodparseTypeElem
()
common/env/io.go:301
↓ 2 callersFunctionpartialActivation
(in map[string]any, vars ...any)
interpreter/prune_test.go:567
↓ 2 callersMethodpeek
peek returns the top of the stack for the given variable name.
common/cost/estimator.go:252
↓ 2 callersMethodplanCheckedIdent
(id int64, identRef *ast.ReferenceInfo)
interpreter/planner.go:172
↓ 2 callersMethodpop
pop removes the most recent variable from the scope stack for the given name.
common/cost/estimator.go:246
↓ 2 callersFunctionpriorForVersion
priorForVersion selects the prior with the smallest before which still exceeds version, so that each prior covers the revisions from the previous prio
common/cost/model.go:1082
↓ 2 callersFunctionprotoDeclToFunction
(decl *celpb.Decl)
tools/compiler/compiler.go:406
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1004
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1114
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1269
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1337
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1449
↓ 2 callersFunctionquoteForCEL
quoteForCEL takes a formatted, unquoted value and quotes it in a manner suitable for embedding directly in CEL.
ext/formatting.go:189
↓ 2 callersMethodrawElemAt
(ind int)
common/types/list.go:816
← previousnext →1,801–1,900 of 9,178, ranked by callers