MCPcopy Create free account

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

Functions9,178 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:2133
↓ 2 callersFunctionevalTestMemoryTracker
(t testing.TB, expr string, vars []*decls.VariableDecl, in any, memOpts ...types.MemoryTrackerOption)
interpreter/runtimememory_test.go:274
↓ 2 callersMethodexitScope
exitScope creates a new Env instance with the nearest outer declaration scope.
checker/env.go:362
↓ 2 callersMethodexpandMacro
(exprID int64, function string, target ast.Expr, args ...ast.Expr)
parser/antlr_parser.go:872
↓ 2 callersMethodexpandMacro
(exprID int64, function string, target ast.Expr, args ...ast.Expr)
parser/pratt_parser.go:357
↓ 2 callersMethodexpectedTypePtrs
()
common/types/native.go:847
↓ 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 callersMethodexpressionCount
()
parser/helper.go:48
↓ 2 callersFunctionextractIdent
(target ast.Expr)
ext/guards.go:53
↓ 2 callersFunctionfallbackElemSize
fallbackElemSize resolves fixed-width primitive type sizes via computeTypeSize, or queries the estimator with an untyped/pathless node for type-level
common/cost/default_strategy.go:226
↓ 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:995
↓ 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 callersMethodfindLineOffset
findLineOffset returns the offset where the (1-indexed) line begins, or false if line doesn't exist.
common/source.go:169
↓ 2 callersMethodfindVal
findVal resolves key to the stored native value without converting it to a ref.Val, so that presence tests (`in`, has(), optional selection) do not pa
common/types/map.go:745
↓ 2 callersFunctionfixedPointFormatError
(id int64, badType string)
ext/formatting.go:675
↓ 2 callersFunctionfixedPointFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:615
↓ 2 callersFunctionflattenCallArgs
(target *cost.AstNode, args []cost.AstNode)
ext/lists.go:753
↓ 2 callersFunctionflattenedElemSize
(sz cost.SizeEstimate, depth uint64)
ext/lists.go:869
↓ 2 callersFunctionflattenedElems
flattenedElems bounds the elements of the flattened list: the values at levels 1 to depth which are not lists, and every value at level depth+1. When
ext/lists.go:1002
↓ 2 callersFunctionflattenedLength
flattenedLength bounds the number of entries flattening the list at level l yields, descending into depth more levels. A list contributes its flattene
ext/lists.go:958
↓ 2 callersFunctionforEachTriple
forEachTriple invokes fn for every combination of three argument intervals and every combination of representative values within them.
common/cost/algebra_test.go:69
↓ 2 callersFunctionformatCall
(funcName string, o *OverloadDecl)
common/decls/decls.go:1298
↓ 2 callersFunctionformatError
(errMsgs []errorMsg)
checker/env.go:383
↓ 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 callersFunctionformatStringV2
(arg ref.Val)
ext/formatting_v2.go:188
↓ 2 callersFunctionfuncBindings
(t testing.TB, funcs ...*decls.FunctionDecl)
interpreter/interpreter_test.go:2883
↓ 2 callersFunctiongenRange
(adapt types.Adapter, n types.Int, maxSize int64)
ext/lists.go:497
↓ 2 callersMethodgetCheckerOrError
getCheckerOrError gets the checker.Env or error state in a concurrency-safe manner
cel/env.go:1149
↓ 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 callersMethodgetEstimator
()
common/cost/estimator.go:1202
↓ 2 callersFunctiongetExtFieldName
(mef cel.MacroExprFactory, expr ast.Expr)
ext/protos.go:129
↓ 2 callersFunctiongetFieldValue
(adapter Adapter, refField reflect.Value)
common/types/native.go:1491
↓ 2 callersFunctiongetNativeTypeName
(refType reflect.Type, customName string)
common/types/native.go:555
↓ 2 callersFunctiongetProtoMessage
(val ref.Val)
ext/encoders.go:515
↓ 2 callersMethodgetReflectedField
(field ref.Val)
common/types/native.go:510
↓ 2 callersMethodglobalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/pratt_parser.go:343
↓ 2 callersMethodhasCallFloor
hasCallFloor reports whether the model's declarative cost is raised to minCallCost at version.
common/cost/model.go:1599
↓ 2 callersFunctionhasComprehensionVar
(e ast.NavigableExpr)
cel/folding.go:781
↓ 2 callersFunctionhasJSONName
hasJSONName reports whether the field carries a json tag with an explicit name.
common/types/native.go:765
↓ 2 callersMethodhasStructType
(structType string)
common/types/provider.go:887
↓ 2 callersMethodhasTarget
()
common/cost/model.go:114
↓ 2 callersMethodhasTarget
()
common/cost/model.go:1187
↓ 2 callersFunctionhasUnitLength
hasUnitLength reports whether every value of a kind has length 1: those which are neither strings, bytes nor containers.
common/cost/helper.go:129
↓ 2 callersFunctionhashString
(s string)
interpreter/async.go:149
↓ 2 callersFunctionheapCopy
heapCopy returns a pointer to a fresh heap copy of v. Taking &v directly would move the parameter to the heap on every call of the enclosing generic f
common/types/map.go:1548
↓ 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:639
↓ 2 callersMethodinitChecker
()
cel/env.go:1058
↓ 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 callersMethodinternalError
(message string)
parser/errors.go:31
↓ 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:240
↓ 2 callersFunctioninvalidOptionalEntryInit
(field any, value ref.Val)
interpreter/interpretable.go:1936
↓ 2 callersFunctionisASCIIDigit
(r rune)
ext/formatting.go:902
↓ 2 callersFunctionisAccumulatorVar
(name string)
common/cost/estimator.go:1120
↓ 2 callersFunctionisAlpha
(r rune)
parser/lexer.go:211
↓ 2 callersFunctionisAssignable
isAssignable reports whether t1 is assignable to t2, adding the substitutions that make it so to m. If t1 is not assignable to t2, m is left as it was
checker/types.go:268
↓ 2 callersFunctionisAsyncFunctionCall
(ctx *OptimizerContext, expr ast.Expr)
cel/folding.go:202
↓ 2 callersFunctionisCollectionEmpty
(e ast.Expr)
cel/folding.go:670
↓ 2 callersFunctionisComplexOperator
Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.
parser/unparser.go:541
↓ 2 callersFunctionisConditionalCall
isConditionalCall reports whether e is a call to the conditional operator.
common/cost/estimator.go:906
↓ 2 callersFunctionisContainerKind
isContainerKind reports whether kind is a list or map container type.
common/cost/default_strategy.go:215
↓ 2 callersFunctionisDynOrError
isDynOrError returns true if the input is either an Error, DYN, or well-known ANY message.
checker/types.go:34
↓ 2 callersFunctionisDynamicFlattenType
(t *types.Type)
ext/lists.go:922
↓ 2 callersFunctionisEmptyRangeComprehension
(e ast.NavigableExpr)
cel/validator.go:586
↓ 2 callersFunctionisEqualOrLessSpecific
isEqualOrLessSpecific checks whether one type is equal or less specific than the other one. A type is less specific if it matches the other type using
checker/types.go:58
↓ 2 callersFunctionisError
(t *types.Type)
checker/types.go:38
↓ 2 callersFunctionisIdentNamed
isIdentNamed reports whether the expression is an identifier with the given name.
interpreter/planner.go:810
↓ 2 callersMethodisIgnored
(name1, name2 string)
common/ast/equiv.go:180
↓ 2 callersFunctionisLateBoundFunctionCall
(ctx *OptimizerContext, expr ast.Expr)
cel/folding.go:193
↓ 2 callersFunctionisListLiteralWithNumericArgs
(arg ast.Expr)
ext/math.go:934
↓ 2 callersMethodisMissingAttribute
()
interpreter/attributes.go:1646
↓ 2 callersFunctionisMutableAccuSafe
isMutableAccuSafe reports whether the comprehension accumulator may be backed by a mutable list or map during evaluation. The checks mirror cel-cpp's
interpreter/planner.go:732
↓ 2 callersFunctionisNonNegativeInt
(expr ast.Expr)
conformance/conformance_test.go:408
↓ 2 callersFunctionisNullZeroPointerType
(t reflect.Type)
common/types/native.go:1480
↓ 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:462
↓ 2 callersFunctionisSkippedFieldName
(name string)
common/types/native.go:166
↓ 2 callersFunctionisSupportedType
(refType reflect.Type)
common/types/native.go:1598
↓ 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 callersFunctionisWordChar
(c byte)
fuzzing/fuzz_pratt_parser_test.go:63
↓ 2 callersMethodjoinTypes
Checks compatibility of joined types, and returns the most general common type.
checker/checker.go:624
↓ 2 callersFunctionjsonEncodeList
(lister traits.Lister)
ext/encoders.go:545
↓ 2 callersFunctionjsonEncodeMap
(mapper traits.Mapper)
ext/encoders.go:572
↓ 2 callersFunctionjsonEncodeNativeStruct
(nativeVal any)
ext/encoders.go:525
↓ 2 callersFunctionjsonParsePrimitive
(str string, convert func(any) (T, bool))
ext/encoders.go:625
↓ 2 callersFunctionjsonParseString
(adapter types.Adapter, str string)
ext/encoders.go:687
↓ 2 callersFunctionjsonParseStructNative
(provider types.Provider, str string, typeName string)
ext/encoders.go:954
↓ 2 callersFunctionjsonParseTypedList
(adapter types.Adapter, provider types.Provider, str string, elemType *types.Type)
ext/encoders.go:815
↓ 2 callersFunctionjsonParseTypedMap
(adapter types.Adapter, provider types.Provider, str string, valType *types.Type)
ext/encoders.go:869
↓ 2 callersFunctionjsonStruct
(t *testing.T, entries map[string]any)
common/types/pb/type_test.go:654
↓ 2 callersFunctionjsonUnmarshalProto
(str string, template proto.Message)
ext/encoders.go:937
↓ 2 callersFunctionlastIndexOfOffset
(str, substr string, offset int64)
ext/strings.go:684
↓ 2 callersFunctionlistElemType
listElemType extracts the element type of a list, defaulting to DynType if not parameterized.
common/cost/default_strategy.go:302
← previousnext →1,701–1,800 of 9,178, ranked by callers