MCPcopy Create free account

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

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

↓ 1 callersMethodmatchOverload
matchOverload reports the id of the declared overload which matches the runtime arguments. Plans which were not created from a function declaration h
interpreter/interpretable.go:998
↓ 1 callersMethodmatchVariable
matchVariable matches simple identifiers, select expressions, and presence test expressions which match the (potentially) qualified variable name prov
cel/inlining.go:242
↓ 1 callersMethodmatchesRuntimeBinarySignature
matchesRuntimeBinarySignature indicates whether the argument types are runtime assiganble to the overload's expected arguments.
common/decls/decls.go:952
↓ 1 callersMethodmatchesRuntimeUnarySignature
matchesRuntimeUnarySignature indicates whether the argument type is runtime assiganble to the overload's expected argument.
common/decls/decls.go:946
↓ 1 callersMethodmatchesUnknownPatterns
matchesUnknownPatterns returns true if the variable names and qualifiers for a given Attribute value match any of the ActivationPattern objects in the
interpreter/attribute_patterns.go:250
↓ 1 callersFunctionmathListCostModel
(id string)
ext/math.go:977
↓ 1 callersMethodmaxEntryHeight
(entries ...EntryExpr)
common/ast/ast.go:670
↓ 1 callersFunctionmaxIDVisitor
(maxID *int64)
interpreter/prune.go:500
↓ 1 callersFunctionmaxPair
(first, second ref.Val)
ext/math.go:867
↓ 1 callersFunctionmayBeContainerType
mayBeContainerType reports whether a value of the checked type may hold elements or keys. Only the kinds which cannot, such as strings, bytes and numb
common/cost/helper.go:500
↓ 1 callersFunctionmaybeAsVariableName
(e ast.NavigableExpr)
cel/inlining.go:269
↓ 1 callersFunctionmaybeBuildListLiteral
(i InterpretableV2, l *evalList)
interpreter/decorators.go:263
↓ 1 callersFunctionmaybeBuildMapLiteral
(i InterpretableV2, mp *evalMap)
interpreter/decorators.go:276
↓ 1 callersFunctionmaybeForeignType
(t ref.Type)
common/types/types.go:824
↓ 1 callersFunctionmaybeMergeConstant
(a *decls.VariableDecl, b *decls.VariableDecl)
checker/env.go:297
↓ 1 callersFunctionmaybeOptimizeConstUnary
(i InterpretableV2, call InterpretableCall)
interpreter/decorators.go:245
↓ 1 callersFunctionmaybeOptimizeSetMembership
maybeOptimizeSetMembership may convert an 'in' operation against a list to map key membership test if the following conditions are true: - the list is
interpreter/decorators.go:297
↓ 1 callersMethodmaybePruneAnd
(node ast.Expr)
interpreter/prune.go:213
↓ 1 callersFunctionmaybePruneBranches
maybePruneBranches inspects the non-strict call expression to determine whether a branch can be removed. Evaluation will naturally prune logical and /
cel/folding.go:215
↓ 1 callersMethodmaybePruneConditional
(node ast.Expr)
interpreter/prune.go:232
↓ 1 callersMethodmaybePruneFunction
(node ast.Expr)
interpreter/prune.go:244
↓ 1 callersMethodmaybePruneIn
(node ast.Expr)
interpreter/prune.go:168
↓ 1 callersMethodmaybePruneLogicalNot
(node ast.Expr)
interpreter/prune.go:181
↓ 1 callersMethodmaybePruneOptional
(elem ast.Expr)
interpreter/prune.go:154
↓ 1 callersMethodmaybePruneOr
(node ast.Expr)
interpreter/prune.go:194
↓ 1 callersFunctionmaybeShortcircuitLogic
(ctx *OptimizerContext, a *ast.AST, function string, args []ast.Expr, expr ast.NavigableExpr)
cel/folding.go:273
↓ 1 callersMethodmaybeUnnestRule
(ctx *cel.OptimizerContext, ruleExpr ast.NavigableExpr)
policy/composer.go:388
↓ 1 callersMethodmaybeUnwrapDynCall
maybeUnwrapDynCall handles the 'dyn' call wrapper, returning an estimate if matched.
common/cost/estimator.go:724
↓ 1 callersFunctionmaybeUnwrapString
(e ast.Expr)
checker/checker.go:656
↓ 1 callersFunctionmaybeWrapper
(t *Type, pbType *exprpb.Type)
common/types/types.go:817
↓ 1 callersFunctionmergeMeta
mergeMeta returns the union of the operands' key and element sizes. Metadata is attached only when some operand states it. When one does, an operand
common/cost/helper.go:514
↓ 1 callersFunctionminPair
(first, second ref.Val)
ext/math.go:834
↓ 1 callersFunctionmisPackAny
(t *testing.T, m proto.Message)
common/types/pb/equal_test.go:389
↓ 1 callersFunctionmissingCostGoldensV0
()
ext/cost_golden_test.go:177
↓ 1 callersFunctionmockRelativeSource
(t testing.TB, text string, lineOffsets []int32, baseLocation common.Location)
common/ast/ast_test.go:454
↓ 1 callersFunctionmoduloInt64Checked
moduloInt64Checked performs modulo with overflow detection of two int64 values as well as a modulus by zero check. If the operation fails the error r
common/types/overflow.go:98
↓ 1 callersFunctionmoduloUint64Checked
moduloUint64Checked performs modulo with a test for modulus by zero. If the operation fails the error return value will be non-nil.
common/types/overflow.go:153
↓ 1 callersFunctionmsgSetField
(target protoreflect.Message, field *pb.FieldDescription, val ref.Val)
common/types/provider.go:1007
↓ 1 callersFunctionmsgSetListField
(target protoreflect.List, listField *pb.FieldDescription, listVal traits.Lister)
common/types/provider.go:1049
↓ 1 callersFunctionmsgSetMapField
(target protoreflect.Map, mapField *pb.FieldDescription, mapVal traits.Mapper)
common/types/provider.go:1069
↓ 1 callersMethodmul
mul returns the product of two rationals in lowest terms, and false if the product does not fit within the supported range.
common/cost/helper.go:291
↓ 1 callersFunctionmultiplyUint64Checked
multiplyUint64Checked performs multiplication with overflow detection of two uint64 values. If the operation fails due to overflow the error return v
common/types/overflow.go:133
↓ 1 callersFunctionmustCompileExpr
(t testing.TB, env *cel.Env, expr string)
policy/compiler_test.go:480
↓ 1 callersFunctionmustContextProto
(t *testing.T, pb proto.Message, opts ...types.RegistryOption)
cel/env_test.go:1361
↓ 1 callersFunctionmustCreateParser
(opts ...parser.Option)
fuzzing/fuzz_pratt_parser_test.go:31
↓ 1 callersFunctionmustNewParser
mustNewParser does the work of NewParser and panics if an error occurs. This function is only intended for internal use and is for backwards compatib
parser/parser.go:79
↓ 1 callersFunctionmustParseTime
(t *testing.T, timestamp string)
ext/native_test.go:1534
↓ 1 callersFunctionmustParseTime
(t *testing.T, timestamp string)
common/types/native_test.go:1901
↓ 1 callersFunctionmustReadVar
mustReadVar reports whether every evaluation of e reads the variable name. It is conservative: operands which may be skipped, such as the right side o
common/cost/estimator.go:966
↓ 1 callersMethodneedsCallNodes
(overloadIDs []string)
common/cost/estimator.go:687
↓ 1 callersFunctionnestedComprehension
nestedComprehension builds `[[..[1]..]].map(vN, .. v1.map(v0, inc(v0)) ..)` at the given depth.
cel/cel_test.go:6683
↓ 1 callersFunctionnetworkCIDROpaqueCostModel
(id string)
ext/network.go:822
↓ 1 callersFunctionnetworkContainsCIDRCIDRCostModel
(id string)
ext/network.go:863
↓ 1 callersFunctionnetworkContainsCIDRStringCostModel
(id string)
ext/network.go:870
↓ 1 callersFunctionnetworkContainsIPIPCostModel
(id string)
ext/network.go:849
↓ 1 callersFunctionnetworkContainsIPStringCostModel
(id string)
ext/network.go:856
↓ 1 callersFunctionnetworkIsCanonicalCostModel
(id string)
ext/network.go:805
↓ 1 callersFunctionnetworkNominalCostModel
(id string)
ext/network.go:830
↓ 1 callersFunctionnetworkParseBoolCostModel
(id string)
ext/network.go:798
↓ 1 callersFunctionnetworkParseCostModel
networkParseCostModel models ip(string) and cidr(string): an IP's length is its address bytes (4 or 16) and a CIDR's is the bytes of its prefix (0 to
ext/network.go:790
↓ 1 callersFunctionnetworkToStringCostModel
networkToStringCostModel models string(IP) and string(CIDR): formatted IPv6/CIDR strings are at most 45 characters.
ext/network.go:814
↓ 1 callersMethodnewAsyncFrame
newAsyncFrame creates an ExecutionFrame configured for asynchronous evaluation under the given context, wiring the observer and concurrency limit from
cel/program.go:576
↓ 1 callersFunctionnewCharStream
(buf runes.Buffer, desc string)
parser/input.go:124
↓ 1 callersFunctionnewCompiledModelSet
(models []OverloadModel)
common/cost/version.go:79
↓ 1 callersFunctionnewConstantBlock
(slots traits.Lister, expr interpreter.InterpretableV2)
ext/bindings.go:304
↓ 1 callersFunctionnewCustomSizerPtr
(v int)
common/types/size_calc_test.go:289
↓ 1 callersFunctionnewDebugWriter
(a Adorner)
common/debug/debug.go:75
↓ 1 callersFunctionnewEnumValueDescription
newEnumValueDescription produces an enum value description with the fully qualified enum value name and the enum value descriptor.
common/types/pb/enum.go:23
↓ 1 callersFunctionnewExtensionOption
(extType string)
repl/evaluator.go:1108
↓ 1 callersFunctionnewFileDescription
newFileDescription returns a FileDescription instance with a complete listing of all the message types and enum values, as well as a map of extensions
common/types/pb/file.go:27
↓ 1 callersFunctionnewIDCollector
()
cel/folding_test.go:1772
↓ 1 callersFunctionnewJSONStructAccessor
(adapter Adapter, st map[string]*structpb.Value)
common/types/map.go:420
↓ 1 callersMethodnewLogicManager
(function string, term ast.Expr)
parser/pratt_parser.go:336
↓ 1 callersFunctionnewNativeTypes
(rawType reflect.Type, options NativeTypeOptions)
common/types/native.go:562
↓ 1 callersFunctionnewOverloadInternal
(overloadID string, memberFunction bool, args []*types.Type, resultType *types.Type, opts ...OverloadOpt)
common/decls/decls.go:644
↓ 1 callersFunctionnewParserImpl
(visitor TagVisitor, info *ast.SourceInfo, src *Source, iss *cel.Issues, arrayStyleVariables bool)
policy/parser.go:619
↓ 1 callersFunctionnewPlanner
newPlanner creates an interpretablePlanner which references a Dispatcher, TypeProvider, TypeAdapter, Container, and CheckedExpr value. These pieces of
interpreter/planner.go:37
↓ 1 callersFunctionnewProgram
newProgram creates a program instance with an environment, an ast, and an optional list of ProgramOption values. If the program cannot be configured
cel/program.go:310
↓ 1 callersFunctionnewQualifier
(adapter types.Adapter, id int64, v any, opt, errorOnBadPresenceTest bool)
interpreter/attributes.go:792
↓ 1 callersFunctionnewReflectMapAccessor
(adapter Adapter, value reflect.Value)
common/types/map.go:472
↓ 1 callersFunctionnewResolution
(r *ast.ReferenceInfo, t *types.Type)
checker/checker.go:699
↓ 1 callersFunctionnewScopes
newScopes creates a new, empty Scopes. Some operations can't be safely performed until a Group is added with Push.
checker/scopes.go:35
↓ 1 callersMethodnewStrictString
newStrictString creates a new ValueString from the YAML node, but as a string with no special source position information. Intended for use in descrip
policy/parser.go:713
↓ 1 callersFunctionnewTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry, opts ...checker.Option)
common/ast/navigable_test.go:683
↓ 1 callersFunctionnewTestPartialActivation
(t testing.TB, in any, unknowns ...*AttributePattern)
interpreter/interpreter_test.go:2827
↓ 1 callersFunctionnewTestRegistry
(t testing.TB, opts ...types.RegistryOption)
common/ast/navigable_test.go:670
↓ 1 callersFunctionnewTypeDescription
newTypeDescription produces a TypeDescription value for the fully-qualified proto type name with a given descriptor.
common/types/pb/type.go:43
↓ 1 callersFunctionnewUnk
(t *testing.T, id int64, varName string)
common/types/unknown_test.go:404
↓ 1 callersMethodnextID
()
interpreter/prune.go:481
↓ 1 callersMethodnoMatchingOverload
(id int64, l common.Location, name string, args []*types.Type, isInstance bool)
checker/errors.go:50
↓ 1 callersFunctionnormalizeEntry
normalizeEntry extracts a key, value pair as the next two elements from the content slice. val source position information is normalized depending on
policy/parser.go:586
↓ 1 callersFunctionnormalizeJSONNumber
(val any)
ext/encoders.go:1092
↓ 1 callersFunctionnormalizeLeadingDotIdentPositions
normalizeLeadingDotIdentPositions: Pratt parser records the start of a leading-dot identifier (e.g., '.R') at the '.' token, whereas ANTLR records it
fuzzing/fuzz_pratt_parser_test.go:185
↓ 1 callersMethodnotAComprehensionRange
(id int64, l common.Location, t *types.Type)
checker/errors.go:55
↓ 1 callersMethodnotAMessageType
(id int64, l common.Location, typeName string)
checker/errors.go:76
↓ 1 callersMethodnotAnOptionalFieldSelection
(id int64, l common.Location, field ast.Expr)
checker/errors.go:64
↓ 1 callersMethodnotAnOptionalFieldSelectionCall
(id int64, l common.Location, err string)
checker/errors.go:60
↓ 1 callersFunctionnotReferencedIn
notReferencedIn checks whether the type doesn't appear directly or transitively within the other type. This is a standard requirement for type unifica
checker/types.go:289
↓ 1 callersFunctionnumericKey
numericKey returns the canonical hash contribution for a CEL numeric value. Int, Uint, and Double all funnel through float64 because CEL numeric equa
interpreter/async.go:163
↓ 1 callersMethodobjectType
()
common/types/provider_test.go:1547
← previousnext →3,301–3,400 of 9,178, ranked by callers