MCPcopy Create free account

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

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

↓ 2 callersMethodrawValToAny
(v V)
common/types/map.go:663
↓ 2 callersFunctionreadPolicy
(t testing.TB, fileName string)
policy/helper_test.go:358
↓ 2 callersFunctionreadPolicyConfig
(t testing.TB, fileName string)
policy/helper_test.go:367
↓ 2 callersFunctionreadTestSuite
(t testing.TB, fileName string)
policy/helper_test.go:381
↓ 2 callersFunctionreflectTypeOf
reflectTypeOf intercepts the reflect.Type call to ensure that dynamicpb.Message types preserve well-known protobuf reflected types expected by the CEL
common/types/pb/type.go:635
↓ 2 callersFunctionregisterFiles
(reg protoTypeRegistry, files *protoregistry.Files)
cel/options.go:494
↓ 2 callersFunctionregisterTypeItems
(r *Registry, types ...any)
common/types/provider.go:902
↓ 2 callersMethodrelSource
(pstr ValueString)
policy/compiler.go:494
↓ 2 callersMethodrelation
(_p int)
parser/gen/cel_parser.go:1347
↓ 2 callersMethodrelation
(_p int)
repl/parser/commands_parser.go:5305
↓ 2 callersMethodrelativeAttr
relativeAttr indicates that the attribute in this case acts as a qualifier and as such needs to be observed to ensure that it's evaluation value is pr
interpreter/planner.go:902
↓ 2 callersMethodrelativeAttributeCost
relativeAttributeCost is the cost of qualifying a value which was computed rather than named.
common/cost/estimator.go:458
↓ 2 callersMethodrenumberIDs
(IDGenerator)
common/ast/expr.go:317
↓ 2 callersFunctionreportCostGoldenV0
reportCostGoldenV0 compares a version 0 cost of the given kind with the one v0.32.0 reported. A difference fails the test unless costGoldenV0Accepted
ext/cost_golden_test.go:105
↓ 2 callersMethodreportErrorAtID
(id int64, l common.Location, message string, args ...any)
parser/errors.go:39
↓ 2 callersMethodreset
()
ext/bindings.go:299
↓ 2 callersFunctionresolveAsyncMaxConcurrency
resolveAsyncMaxConcurrency maps the configured concurrency to the effective launch limit: - 0 (unset): apply defaultAsyncMaxConcurrency. - >0: use the
cel/program.go:599
↓ 2 callersFunctionresolveChildSize
resolveChildSize looks up child size estimates on the given subPath (e.g. "@items", "@keys", "@values") when the current estimate is missing or lacks
common/cost/default_strategy.go:193
↓ 2 callersFunctionresolveDynamicChild
resolveDynamicChild probes a child hint subpath ("@items", "@keys", "@values") under a dynamic node, recursing only when the estimator provides an exp
common/cost/default_strategy.go:125
↓ 2 callersFunctionresolveListSizes
resolveListSizes resolves a list node's container size and element size using the estimator, subpath hints ("@items"), and type fallbacks when not alr
common/cost/default_strategy.go:143
↓ 2 callersFunctionresolveMapSizes
resolveMapSizes resolves a map node's container size, key size, and value size using the estimator, subpath hints ("@keys", "@values"), and type fallb
common/cost/default_strategy.go:165
↓ 2 callersMethodresolveQualifiedIdent
resolveQualifiedIdent determines the resolved attribute for a qualified identifier.
checker/env.go:185
↓ 2 callersMethodresolveSimpleIdent
resolveSimpleIdent determines the resolved attribute for a single identifier.
checker/env.go:171
↓ 2 callersMethodresultType
()
common/cost/helper.go:80
↓ 2 callersMethodrewriteVariableName
(ctx *cel.OptimizerContext)
policy/composer.go:287
↓ 2 callersFunctionrlocation
(path string)
conformance/policy/policy_conformance_test.go:288
↓ 2 callersMethodrun
(t *testing.T)
policy/compiler_test.go:352
↓ 2 callersFunctionruntimeTypeAgrees
(env *cel.Env, val ref.Val, declType *envlib.TypeDesc)
repl/evaluator.go:95
↓ 2 callersMethodsanitizeMacro
(macroID int64, macroExpr ast.Expr)
cel/optimizer.go:572
↓ 2 callersFunctionscale
scale computes ⌈x · f⌉: - the factor is applied as its exact rational form when it has one (see rationalOf), so the result is exact for every input,
common/cost/helper.go:324
↓ 2 callersFunctionscientificFormatError
(id int64, badType string)
ext/formatting.go:687
↓ 2 callersFunctionscientificFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:627
↓ 2 callersFunctionselfCompareCost
selfCompareCost is the cost of comparing each element of a list of the given length against every other, the charge of the sort and distinct trackers.
ext/lists.go:1314
↓ 2 callersFunctionselfCompareFactor
selfCompareFactor is the comparison factor of an element type: string and bytes comparisons also traverse the values.
ext/lists.go:1320
↓ 2 callersFunctionsingleValueOf
singleValueOf resolves the value an ElemTotal, KeyTotal or Length operand denotes. Validate restricts those operands to Arg, Target and Result.
common/cost/model.go:360
↓ 2 callersMethodsizingStrategy
()
common/cost/helper.go:64
↓ 2 callersFunctionsortListByAssociatedKeys
Internal function used for the implementation of sort() and sortBy(). Sorts a list of arbitrary elements, according to the order produced by sorting
ext/lists.go:595
↓ 2 callersFunctionsplitSize
splitSize bounds the size of the parts of a string of size n: at most n + 1 parts of at most n each. Under the aggregate strategy the parts hold at mo
ext/strings.go:896
↓ 2 callersFunctionstringFormatError
(id int64, badType string)
ext/formatting.go:691
↓ 2 callersFunctionstringFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:631
↓ 2 callersFunctionstringOrError
(str string, err error)
ext/guards.go:39
↓ 2 callersFunctionstripWhitespace
(a string)
repl/evaluator_test.go:1395
↓ 2 callersFunctionstructFieldOffset
(rootType reflect.Type, index []int)
common/types/native.go:831
↓ 2 callersFunctionsumSizes
sumSizes totals the sizes of the parts which each enumerates in the operand's value.
common/cost/model.go:373
↓ 2 callersFunctiontestCases
(t testing.TB)
checker/checker_test.go:38
↓ 2 callersFunctiontestCompile
(t testing.TB, env *Env, expr string, want any)
cel/decls_test.go:992
↓ 2 callersFunctiontestFds
(t *testing.T)
cel/prompt_test.go:49
↓ 2 callersFunctiontestFunction
(t *testing.T, name string, opts ...FunctionOpt)
common/decls/decls_test.go:1549
↓ 2 callersFunctiontestListsEnv
(t *testing.T, version int, opts ...cel.EnvOption)
ext/lists_test.go:1146
↓ 2 callersFunctiontestParse
(t testing.TB, env *Env, expr string, want any)
cel/decls_test.go:965
↓ 2 callersFunctiontestSetsEnv
(t *testing.T, opts ...cel.EnvOption)
ext/sets_test.go:480
↓ 2 callersFunctiontoFieldName
(f reflect.StructField, fieldNameHandler NativeTypesFieldNameHandler)
common/types/native.go:627
↓ 2 callersFunctiontotalEstimate
totalEstimate bounds the summed size of one part of a container, its elements or its keys, from the container's size estimate sz and the estimated siz
common/cost/helper.go:155
↓ 2 callersFunctiontrackListSelfCompare
trackListSelfCompare computes the ModelVersion0 O(n^2) runtime charge over args[argIdx].
ext/lists.go:1209
↓ 2 callersFunctiontrackVersionOf
trackVersionOf reports the cost model version of a TrackContext: the latest version for a context which does not report one.
common/cost/default_strategy.go:281
↓ 2 callersFunctiontraverseAndCalculateCoverage
(t *testing.T, expr ast.NavigableExpr, p Program, logUnencountered bool, preceedingTabs string, cr *coverageR
tools/celtest/test_coverage_reporter.go:67
↓ 2 callersFunctiontryParse
(t testing.TB, s string)
repl/parser/commands_test.go:34
↓ 2 callersMethodtypeAndRefEquiv
(id1, id2 int64)
common/ast/equiv.go:384
↓ 2 callersFunctiontypeAssignable
(env *cel.Env, rtType ref.Type, declType *envlib.TypeDesc)
repl/evaluator.go:104
↓ 2 callersFunctionuint64ToInt64Checked
uint64ToInt64Checked converts a uint64 to an int64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:392
↓ 2 callersMethodundeclaredReferenceWithSymbols
(id int64, l common.Location, container string, name string, syms []*env.CatalogSymbol)
checker/errors.go:106
↓ 2 callersFunctionunionAccumulator
unionAccumulator merges a new size estimate into an existing accumulator pointer.
common/cost/default_strategy.go:321
↓ 2 callersMethodunmarshal
(unmarshal func(any) error)
common/env/io.go:87
↓ 2 callersMethodunmarshal
(unmarshal func(any) error)
common/env/io.go:110
↓ 2 callersMethodunmarshal
(unmarshal func(any) error)
common/env/io.go:134
↓ 2 callersMethodunmarshal
(unmarshal func(any) error)
common/env/io.go:181
↓ 2 callersMethodunmarshal
(unmarshal func(any) error)
common/env/io.go:226
↓ 2 callersFunctionunquote
(s string)
ext/strings_test.go:462
↓ 2 callersMethodunquote
(ctx any, value string, isBytes bool)
parser/antlr_parser.go:794
↓ 2 callersFunctionunwrap
unwrap unwraps the provided proto.Message value, potentially based on the description if the input message is a *dynamicpb.Message which obscures the
common/types/pb/type.go:462
↓ 2 callersFunctionunwrapDynamic
unwrapDynamic unwraps a reflected protobuf Message value. Returns the unwrapped value and 'true' if unwrapped, otherwise the input value and 'false'.
common/types/pb/type.go:545
↓ 2 callersMethodvalToQualifyAny
(v V)
common/types/map.go:855
↓ 2 callersFunctionvalidateIterator123
(t *testing.T, list traits.Lister)
common/types/list_test.go:896
↓ 2 callersFunctionvalidateList123
(t *testing.T, list traits.Lister)
common/types/list_test.go:878
↓ 2 callersFunctionvalidateQuantityExpr
validateQuantityExpr reports the first operand of an expression tree which cannot be evaluated. A nil operand is reported here so that it fails regis
common/cost/validate.go:142
↓ 2 callersFunctionvalidateTimestampRange
(t time.Time)
common/types/timestamp.go:337
↓ 2 callersFunctionvalueAsUint
valueAsUint returns the non-negative uint64 value of ref.Val (int or uint), or defaultVal.
common/cost/model.go:1449
↓ 2 callersFunctionverifySourceInfoCoverage
(t testing.TB, policy *Policy, ast *cel.Ast)
policy/compiler_test.go:540
↓ 2 callersFunctionvisibleFields
visibleFields returns the exported, supported fields of a struct which are not skipped. A field is skipped when the predicate holds for the field its
common/types/native.go:714
↓ 2 callersMethodvisitCallIndexInternal
(expr ast.Expr, op string)
parser/unparser.go:285
↓ 2 callersMethodvisitExprList
(ctx gen.IExprListContext)
parser/antlr_parser.go:751
↓ 2 callersMethodvisitSelectInternal
(operand ast.Expr, testOnly bool, op string, field string)
parser/unparser.go:416
↓ 2 callersFunctionwrapAsyncOp
wrapAsyncOp adapts a blocking function into the channel-based AsyncOp used internally. The blocking function is invoked synchronously and its result
common/decls/decls.go:1072
↓ 2 callersFunctionwrapErr
(id int64, message string, err error)
cel/macro.go:369
↓ 2 callersMethodwriteOperatorWithWrapping
writeOperatorWithWrapping outputs the operator and inserts a newline for operators configured in the unparser options.
parser/unparser.go:603
↓ 2 callersFunctionyamlEncodeValue
(val ref.Val)
ext/encoders.go:995
↓ 1 callersMethodAbsoluteAttribute
AbsoluteAttribute implementation of the AttributeFactory interface which wraps the NamespacedAttribute resolution in an internal attributeMatcher obje
interpreter/attribute_patterns.go:202
↓ 1 callersMethodAbsoluteAttribute
AbsoluteAttribute refers to a variable value and an optional qualifier path. The namespaceNames represent the names the variable could have based on
interpreter/attributes.go:173
↓ 1 callersMethodAccuIdent
AccuIdent returns an accumulator identifier for use with comprehension results.
cel/macro.go:124
↓ 1 callersMethodAccuIdentName
()
common/ast/factory.go:159
↓ 1 callersMethodAccuInit
()
common/ast/expr.go:558
↓ 1 callersMethodAdapt
Adapt converts a native Go value (struct instance or pointer) to a CEL ref.Val.
common/types/struct.go:38
↓ 1 callersMethodAdapt
(adapter Adapter, value any)
common/types/provider_test.go:1602
↓ 1 callersMethodAddIdent
AddIdent adds the ident Decl in the current scope. Note: If the name collides with an existing identifier in the scope, the Decl is overwritten.
checker/scopes.go:69
↓ 1 callersMethodAddImport
AddImport adds an import to the policy.
policy/parser.go:123
↓ 1 callersMethodAddVariable
AddVariable adds a variable to the rule.
policy/parser.go:277
↓ 1 callersMethodAddVariables
AddVariables adds a list of variables to the rule.
policy/parser.go:282
↓ 1 callersMethodAggregateSize
AggregateSize implements the AggregateSizeVisitor interface method.
common/types/native.go:533
↓ 1 callersMethodAggregateSize
AggregateSize implements the AggregateSizeVisitor interface method.
common/types/object.go:173
↓ 1 callersMethodAggregateSize
AggregateSize implements the AggregateSizeVisitor interface method.
common/types/list.go:415
← previousnext →1,901–2,000 of 9,178, ranked by callers