Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
9,178 in github.com/cel-expr/cel-go
⨍
Functions
9,178
◇
Types & classes
1,189
↓ 1 callers
Method
matchOverload
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 callers
Method
matchVariable
matchVariable matches simple identifiers, select expressions, and presence test expressions which match the (potentially) qualified variable name prov
cel/inlining.go:242
↓ 1 callers
Method
matchesRuntimeBinarySignature
matchesRuntimeBinarySignature indicates whether the argument types are runtime assiganble to the overload's expected arguments.
common/decls/decls.go:952
↓ 1 callers
Method
matchesRuntimeUnarySignature
matchesRuntimeUnarySignature indicates whether the argument type is runtime assiganble to the overload's expected argument.
common/decls/decls.go:946
↓ 1 callers
Method
matchesUnknownPatterns
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 callers
Function
mathListCostModel
(id string)
ext/math.go:977
↓ 1 callers
Method
maxEntryHeight
(entries ...EntryExpr)
common/ast/ast.go:670
↓ 1 callers
Function
maxIDVisitor
(maxID *int64)
interpreter/prune.go:500
↓ 1 callers
Function
maxPair
(first, second ref.Val)
ext/math.go:867
↓ 1 callers
Function
mayBeContainerType
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 callers
Function
maybeAsVariableName
(e ast.NavigableExpr)
cel/inlining.go:269
↓ 1 callers
Function
maybeBuildListLiteral
(i InterpretableV2, l *evalList)
interpreter/decorators.go:263
↓ 1 callers
Function
maybeBuildMapLiteral
(i InterpretableV2, mp *evalMap)
interpreter/decorators.go:276
↓ 1 callers
Function
maybeForeignType
(t ref.Type)
common/types/types.go:824
↓ 1 callers
Function
maybeMergeConstant
(a *decls.VariableDecl, b *decls.VariableDecl)
checker/env.go:297
↓ 1 callers
Function
maybeOptimizeConstUnary
(i InterpretableV2, call InterpretableCall)
interpreter/decorators.go:245
↓ 1 callers
Function
maybeOptimizeSetMembership
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 callers
Method
maybePruneAnd
(node ast.Expr)
interpreter/prune.go:213
↓ 1 callers
Function
maybePruneBranches
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 callers
Method
maybePruneConditional
(node ast.Expr)
interpreter/prune.go:232
↓ 1 callers
Method
maybePruneFunction
(node ast.Expr)
interpreter/prune.go:244
↓ 1 callers
Method
maybePruneIn
(node ast.Expr)
interpreter/prune.go:168
↓ 1 callers
Method
maybePruneLogicalNot
(node ast.Expr)
interpreter/prune.go:181
↓ 1 callers
Method
maybePruneOptional
(elem ast.Expr)
interpreter/prune.go:154
↓ 1 callers
Method
maybePruneOr
(node ast.Expr)
interpreter/prune.go:194
↓ 1 callers
Function
maybeShortcircuitLogic
(ctx *OptimizerContext, a *ast.AST, function string, args []ast.Expr, expr ast.NavigableExpr)
cel/folding.go:273
↓ 1 callers
Method
maybeUnnestRule
(ctx *cel.OptimizerContext, ruleExpr ast.NavigableExpr)
policy/composer.go:388
↓ 1 callers
Method
maybeUnwrapDynCall
maybeUnwrapDynCall handles the 'dyn' call wrapper, returning an estimate if matched.
common/cost/estimator.go:724
↓ 1 callers
Function
maybeUnwrapString
(e ast.Expr)
checker/checker.go:656
↓ 1 callers
Function
maybeWrapper
(t *Type, pbType *exprpb.Type)
common/types/types.go:817
↓ 1 callers
Function
mergeMeta
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 callers
Function
minPair
(first, second ref.Val)
ext/math.go:834
↓ 1 callers
Function
misPackAny
(t *testing.T, m proto.Message)
common/types/pb/equal_test.go:389
↓ 1 callers
Function
missingCostGoldensV0
()
ext/cost_golden_test.go:177
↓ 1 callers
Function
mockRelativeSource
(t testing.TB, text string, lineOffsets []int32, baseLocation common.Location)
common/ast/ast_test.go:454
↓ 1 callers
Function
moduloInt64Checked
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 callers
Function
moduloUint64Checked
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 callers
Function
msgSetField
(target protoreflect.Message, field *pb.FieldDescription, val ref.Val)
common/types/provider.go:1007
↓ 1 callers
Function
msgSetListField
(target protoreflect.List, listField *pb.FieldDescription, listVal traits.Lister)
common/types/provider.go:1049
↓ 1 callers
Function
msgSetMapField
(target protoreflect.Map, mapField *pb.FieldDescription, mapVal traits.Mapper)
common/types/provider.go:1069
↓ 1 callers
Method
mul
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 callers
Function
multiplyUint64Checked
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 callers
Function
mustCompileExpr
(t testing.TB, env *cel.Env, expr string)
policy/compiler_test.go:480
↓ 1 callers
Function
mustContextProto
(t *testing.T, pb proto.Message, opts ...types.RegistryOption)
cel/env_test.go:1361
↓ 1 callers
Function
mustCreateParser
(opts ...parser.Option)
fuzzing/fuzz_pratt_parser_test.go:31
↓ 1 callers
Function
mustNewParser
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 callers
Function
mustParseTime
(t *testing.T, timestamp string)
ext/native_test.go:1534
↓ 1 callers
Function
mustParseTime
(t *testing.T, timestamp string)
common/types/native_test.go:1901
↓ 1 callers
Function
mustReadVar
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 callers
Method
needsCallNodes
(overloadIDs []string)
common/cost/estimator.go:687
↓ 1 callers
Function
nestedComprehension
nestedComprehension builds `[[..[1]..]].map(vN, .. v1.map(v0, inc(v0)) ..)` at the given depth.
cel/cel_test.go:6683
↓ 1 callers
Function
networkCIDROpaqueCostModel
(id string)
ext/network.go:822
↓ 1 callers
Function
networkContainsCIDRCIDRCostModel
(id string)
ext/network.go:863
↓ 1 callers
Function
networkContainsCIDRStringCostModel
(id string)
ext/network.go:870
↓ 1 callers
Function
networkContainsIPIPCostModel
(id string)
ext/network.go:849
↓ 1 callers
Function
networkContainsIPStringCostModel
(id string)
ext/network.go:856
↓ 1 callers
Function
networkIsCanonicalCostModel
(id string)
ext/network.go:805
↓ 1 callers
Function
networkNominalCostModel
(id string)
ext/network.go:830
↓ 1 callers
Function
networkParseBoolCostModel
(id string)
ext/network.go:798
↓ 1 callers
Function
networkParseCostModel
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 callers
Function
networkToStringCostModel
networkToStringCostModel models string(IP) and string(CIDR): formatted IPv6/CIDR strings are at most 45 characters.
ext/network.go:814
↓ 1 callers
Method
newAsyncFrame
newAsyncFrame creates an ExecutionFrame configured for asynchronous evaluation under the given context, wiring the observer and concurrency limit from
cel/program.go:576
↓ 1 callers
Function
newCharStream
(buf runes.Buffer, desc string)
parser/input.go:124
↓ 1 callers
Function
newCompiledModelSet
(models []OverloadModel)
common/cost/version.go:79
↓ 1 callers
Function
newConstantBlock
(slots traits.Lister, expr interpreter.InterpretableV2)
ext/bindings.go:304
↓ 1 callers
Function
newCustomSizerPtr
(v int)
common/types/size_calc_test.go:289
↓ 1 callers
Function
newDebugWriter
(a Adorner)
common/debug/debug.go:75
↓ 1 callers
Function
newEnumValueDescription
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 callers
Function
newExtensionOption
(extType string)
repl/evaluator.go:1108
↓ 1 callers
Function
newFileDescription
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 callers
Function
newIDCollector
()
cel/folding_test.go:1772
↓ 1 callers
Function
newJSONStructAccessor
(adapter Adapter, st map[string]*structpb.Value)
common/types/map.go:420
↓ 1 callers
Method
newLogicManager
(function string, term ast.Expr)
parser/pratt_parser.go:336
↓ 1 callers
Function
newNativeTypes
(rawType reflect.Type, options NativeTypeOptions)
common/types/native.go:562
↓ 1 callers
Function
newOverloadInternal
(overloadID string, memberFunction bool, args []*types.Type, resultType *types.Type, opts ...OverloadOpt)
common/decls/decls.go:644
↓ 1 callers
Function
newParserImpl
(visitor TagVisitor, info *ast.SourceInfo, src *Source, iss *cel.Issues, arrayStyleVariables bool)
policy/parser.go:619
↓ 1 callers
Function
newPlanner
newPlanner creates an interpretablePlanner which references a Dispatcher, TypeProvider, TypeAdapter, Container, and CheckedExpr value. These pieces of
interpreter/planner.go:37
↓ 1 callers
Function
newProgram
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 callers
Function
newQualifier
(adapter types.Adapter, id int64, v any, opt, errorOnBadPresenceTest bool)
interpreter/attributes.go:792
↓ 1 callers
Function
newReflectMapAccessor
(adapter Adapter, value reflect.Value)
common/types/map.go:472
↓ 1 callers
Function
newResolution
(r *ast.ReferenceInfo, t *types.Type)
checker/checker.go:699
↓ 1 callers
Function
newScopes
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 callers
Method
newStrictString
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 callers
Function
newTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry, opts ...checker.Option)
common/ast/navigable_test.go:683
↓ 1 callers
Function
newTestPartialActivation
(t testing.TB, in any, unknowns ...*AttributePattern)
interpreter/interpreter_test.go:2827
↓ 1 callers
Function
newTestRegistry
(t testing.TB, opts ...types.RegistryOption)
common/ast/navigable_test.go:670
↓ 1 callers
Function
newTypeDescription
newTypeDescription produces a TypeDescription value for the fully-qualified proto type name with a given descriptor.
common/types/pb/type.go:43
↓ 1 callers
Function
newUnk
(t *testing.T, id int64, varName string)
common/types/unknown_test.go:404
↓ 1 callers
Method
nextID
()
interpreter/prune.go:481
↓ 1 callers
Method
noMatchingOverload
(id int64, l common.Location, name string, args []*types.Type, isInstance bool)
checker/errors.go:50
↓ 1 callers
Function
normalizeEntry
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 callers
Function
normalizeJSONNumber
(val any)
ext/encoders.go:1092
↓ 1 callers
Function
normalizeLeadingDotIdentPositions
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 callers
Method
notAComprehensionRange
(id int64, l common.Location, t *types.Type)
checker/errors.go:55
↓ 1 callers
Method
notAMessageType
(id int64, l common.Location, typeName string)
checker/errors.go:76
↓ 1 callers
Method
notAnOptionalFieldSelection
(id int64, l common.Location, field ast.Expr)
checker/errors.go:64
↓ 1 callers
Method
notAnOptionalFieldSelectionCall
(id int64, l common.Location, err string)
checker/errors.go:60
↓ 1 callers
Function
notReferencedIn
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 callers
Function
numericKey
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 callers
Method
objectType
()
common/types/provider_test.go:1547
← previous
next →
3,301–3,400 of 9,178, ranked by callers