MCPcopy Create free account

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

Functions7,240 in github.com/cel-expr/cel-go

↓ 2 callersMethodevalResult
evalResult computes the final result of the fold after all entries have been folded and accumulated.
interpreter/interpretable.go:1626
↓ 2 callersMethodexpandMacro
(exprID int64, function string, target ast.Expr, args ...ast.Expr)
parser/parser.go:959
↓ 2 callersFunctionexprMapEntry
(factory ExprFactory, id int64, e *exprpb.Expr_CreateStruct_Entry)
common/ast/conversion.go:238
↓ 2 callersFunctionexprStructField
(factory ExprFactory, id int64, f *exprpb.Expr_CreateStruct_Entry)
common/ast/conversion.go:273
↓ 2 callersFunctionextractIdent
(target ast.Expr)
ext/guards.go:53
↓ 2 callersFunctionfieldPathsForType
fieldPathsForType expands the reachable fields from the given root identifier.
cel/fieldpaths.go:148
↓ 2 callersFunctionfieldToVariable
(field protoreflect.FieldDescriptor, jsonFieldNames bool)
cel/options.go:791
↓ 2 callersFunctionfile_test_proto2pb_test_all_types_proto_init
()
test/proto2pb/test_all_types.pb.go:1329
↓ 2 callersFunctionfile_test_proto3pb_test_import_proto_init
()
test/proto3pb/test_import.pb.go:114
↓ 2 callersFunctionfindFrame
findFrame walks the activation hierarchy via Unwrap and Parent to locate an existing ExecutionFrame, if one exists.
interpreter/interpretable.go:214
↓ 2 callersMethodfindLineOffset
findLineOffset returns the offset where the (1-indexed) line begins, or false if line doesn't exist.
common/source.go:169
↓ 2 callersFunctionfixedPointFormatError
(id int64, badType string)
ext/formatting.go:675
↓ 2 callersFunctionfixedPointFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:615
↓ 2 callersFunctionformatCall
(funcName string, o *OverloadDecl)
common/decls/decls.go:1114
↓ 2 callersFunctionformatError
(errMsgs []errorMsg)
checker/env.go:362
↓ 2 callersFunctionformatFunctionDeclType
(resultType *types.Type, argTypes []*types.Type, isInstance bool)
checker/format.go:154
↓ 2 callersFunctionformatFunctionInternal
(resultType T, argTypes []T, isInstance bool, format formatter)
checker/format.go:158
↓ 2 callersFunctionformatList
(l traits.Lister, sb *strings.Builder)
common/types/list.go:296
↓ 2 callersFunctionformatMap
(m traits.Mapper, sb *strings.Builder)
common/types/map.go:330
↓ 2 callersFunctionformatStringV2
(arg ref.Val)
ext/formatting_v2.go:188
↓ 2 callersFunctionfuncBindings
(t testing.TB, funcs ...*decls.FunctionDecl)
interpreter/interpreter_test.go:2452
↓ 2 callersFunctiongenRange
(n types.Int, maxSize int64)
ext/lists.go:420
↓ 2 callersMethodgetCheckerOrError
getCheckerOrError gets the checker.Env or error state in a concurrency-safe manner
cel/env.go:937
↓ 2 callersMethodgetEffectiveEnv
()
repl/evaluator.go:1002
↓ 2 callersFunctiongetErrorExprID
getErrorExprID determines which list literal argument triggered a type-disagreement for the purposes of more accurate error message reports.
ext/formatting.go:459
↓ 2 callersFunctiongetExtFieldName
(mef cel.MacroExprFactory, expr ast.Expr)
ext/protos.go:129
↓ 2 callersFunctiongetFieldValue
(refField reflect.Value)
ext/native.go:767
↓ 2 callersMethodgetReflectedField
(field ref.Val)
ext/native.go:585
↓ 2 callersMethodgetSourceInfo
()
parser/helper.go:44
↓ 2 callersFunctionhexFormatError
(id int64, badType string)
ext/formatting.go:679
↓ 2 callersFunctionhexFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:619
↓ 2 callersMethodindexLetFn
(name string)
repl/evaluator.go:391
↓ 2 callersMethodindexLetVar
(name string)
repl/evaluator.go:360
↓ 2 callersFunctionindexOfOffset
(str, substr string, offset int64)
ext/strings.go:665
↓ 2 callersMethodinitChecker
()
cel/env.go:890
↓ 2 callersFunctionint64ToUint64Checked
int64ToUint64Checked converts an int64 to a uint64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:322
↓ 2 callersFunctioninternalIsAssignableList
internalIsAssignableList returns true if the element types at each index in the list are assignable from l1[i] to l2[i]. The list lengths must also ag
checker/types.go:196
↓ 2 callersFunctioninvalidOptionalEntryInit
(field any, value ref.Val)
interpreter/interpretable.go:1466
↓ 2 callersFunctionisASCIIDigit
(r rune)
ext/formatting.go:902
↓ 2 callersFunctionisComplexOperator
Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.
parser/unparser.go:503
↓ 2 callersMethodisConditional
isConditional returns true if the condition expression is not trivially true.
policy/composer.go:418
↓ 2 callersFunctionisDynOrError
isDynOrError returns true if the input is either an Error, DYN, or well-known ANY message.
checker/types.go:34
↓ 2 callersFunctionisError
(t *types.Type)
checker/types.go:38
↓ 2 callersFunctionisLateBoundFunctionCall
(ctx *OptimizerContext, expr ast.Expr)
cel/folding.go:171
↓ 2 callersFunctionisListLiteralWithNumericArgs
(arg ast.Expr)
ext/math.go:923
↓ 2 callersFunctionisNonNegativeInt
(expr ast.Expr)
conformance/conformance_test.go:407
↓ 2 callersMethodisOptional
isOptional indicates whether the output step has an optional result. Individual conditional attributes are not optional; however, rules and subrules
policy/composer.go:412
↓ 2 callersMethodisTypeInternal
isTypeInternal checks whether the two types are equivalent or exactly the same based on the checkTypeParamName flag.
common/types/types.go:292
↓ 2 callersMethodjoinTypes
Checks compatibility of joined types, and returns the most general common type.
checker/checker.go:616
↓ 2 callersFunctionjsonStruct
(t *testing.T, entries map[string]any)
common/types/pb/type_test.go:620
↓ 2 callersMethodkeySize
keySize returns the SizeEstimate for the key if one exists.
checker/cost.go:341
↓ 2 callersFunctionlastIndexOfOffset
(str, substr string, offset int64)
ext/strings.go:710
↓ 2 callersFunctionlocationCodeEnvOption
()
tools/celtest/test_runner_test.go:83
↓ 2 callersMethodlookupFieldType
(exprID int64, structType, fieldName string)
checker/checker.go:718
↓ 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:214
↓ 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:208
↓ 2 callersFunctionmakeMacroKey
(name string, args int, receiverStyle bool)
parser/macro.go:175
↓ 2 callersFunctionmakeOptQualifier
(t testing.TB, attrs AttributeFactory, fieldType *types.Type, qualID int64, val any)
interpreter/attributes_test.go:1346
↓ 2 callersFunctionmakeVarArgMacroKey
(name string, receiverStyle bool)
parser/macro.go:179
↓ 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 callersFunctionmatchSlot
(name string, slotCount int)
ext/bindings.go:350
↓ 2 callersMethodmatchesRuntimeSignature
matchesRuntimeSignature indicates whether the argument types are runtime assiganble to the overload's expected arguments.
common/decls/decls.go:809
↓ 2 callersMethodmaxHeight
(exprs ...Expr)
common/ast/ast.go:644
↓ 2 callersMethodmaybePrune
(node ast.Expr)
interpreter/prune.go:267
↓ 2 callersFunctionmaybeQuoteField
(field string)
parser/unparser.go:72
↓ 2 callersMethodmember
(_p int)
parser/gen/cel_parser.go:2539
↓ 2 callersMethodmember
(_p int)
repl/parser/commands_parser.go:6497
↓ 2 callersFunctionmissingIndex
(missing ref.Val)
interpreter/attributes.go:1444
↓ 2 callersFunctionmostGeneral
mostGeneral returns the more general of two types which are known to unify.
checker/types.go:241
↓ 2 callersFunctionmsgWithExtensions
msgWithExtensions generates a new example message with all possible extensions set.
ext/protos_test.go:249
↓ 2 callersFunctionmultiplyByCostFactor
multiplyByFactor multiplies an integer by a cost factor float and returns the nearest integer value, rounded up.
checker/cost.go:241
↓ 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 callersFunctionnativeToValue
nativeToValue returns the converted (ref.Val, true) of a conversion is found, otherwise (nil, false)
common/types/provider.go:497
↓ 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 callersFunctionnewAttrResolution
newAttrResolution creates a new attribute resolution value.
checker/env.go:135
↓ 2 callersFunctionnewConcatList
(adapter Adapter, prevList, nextList traits.Lister)
common/types/list.go:353
↓ 2 callersMethodnewExecutionFrame
newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
cel/program.go:374
↓ 2 callersFunctionnewFieldDescription
newFieldDescription creates a new field description from a protoreflect.FieldDescriptor.
common/types/pb/type.go:159
↓ 2 callersFunctionnewFolder
newFolder creates or initializes a pooled folder instance.
interpreter/interpretable.go:1475
↓ 2 callersFunctionnewFunctionType
(resultType *types.Type, argTypes ...*types.Type)
checker/types.go:312
↓ 2 callersMethodnewGlobalCall
(ctx any, function string, args ...ast.Expr)
parser/helper.go:88
↓ 2 callersFunctionnewGroup
newGroup creates a new Group with empty maps for identifiers and functions.
checker/scopes.go:167
↓ 2 callersFunctionnewIDGenerator
newIDGenerator ensures that new ids are only created the first time they are encountered.
cel/optimizer.go:210
↓ 2 callersFunctionnewListIterator
(listValue traits.Lister)
common/types/list.go:519
↓ 2 callersMethodnewLiteralBool
(ctx any, value bool)
parser/helper.go:52
↓ 2 callersMethodnewLogicManager
(function string, term ast.Expr)
parser/parser.go:890
↓ 2 callersFunctionnewNavigableExpr
(ast *AST, parent NavigableExpr, expr Expr, depth int)
common/ast/navigable.go:269
↓ 2 callersFunctionnewOverload
(overloadID string, memberFunction bool, args []*types.Type, resultType *types.Type, opts ...OverloadOpt)
common/decls/decls.go:565
↓ 2 callersFunctionnewParseFormatError
(msg string, wrapped error)
ext/formatting.go:911
↓ 2 callersFunctionnewRefValMapAccessor
(mapVal map[ref.Val]ref.Val)
common/types/map.go:528
↓ 2 callersFunctionnewScopes
newScopes creates a new, empty Scopes. Some operations can't be safely performed until a Group is added with Push.
checker/scopes.go:34
↓ 2 callersFunctionnewStdEnv
(t *testing.T)
checker/env_test.go:94
↓ 2 callersFunctionnewTestParser
(t *testing.T, options ...Option)
parser/parser_test.go:2394
↓ 2 callersFunctionnewValidatorConfig
newValidatorConfig initializes the validator config with default values for core CEL validators.
cel/validator.go:153
↓ 2 callersFunctionnormalize
(s string)
policy/compiler_test.go:536
← previousnext →1,201–1,300 of 7,240, ranked by callers