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
↓ 2 callers
Function
listLiteralLevels
listLiteralLevels reports how many levels of list literals expr nests: 0 when expr is not a list literal. Flattening a literal of n levels by more tha
ext/lists.go:1061
↓ 2 callers
Function
locationCodeEnvOption
()
tools/celtest/test_runner_test.go:83
↓ 2 callers
Method
lookupFieldType
(exprID int64, structType, fieldName string)
checker/checker.go:714
↓ 2 callers
Method
lookupGlobalIdent
lookupGlobalIdent finds a candidate variable name in the root scope, returning nil if the identifier is not in the global scope.
checker/env.go:233
↓ 2 callers
Method
lookupLocalIdent
lookupLocalIdent finds the variable candidate in a local scope, returning nil if the candidate variable name is not a local variable.
checker/env.go:227
↓ 2 callers
Function
mapKeyValueTypes
mapKeyValueTypes extracts key and value types of a map, defaulting to DynType if not parameterized.
common/cost/default_strategy.go:310
↓ 2 callers
Method
marshal
()
common/env/io.go:163
↓ 2 callers
Method
marshal
()
common/env/io.go:209
↓ 2 callers
Function
matchConstantFormatStringWithListLiteralArgs
matchConstantFormatStringWithListLiteralArgs matches all valid expression nodes for string format checking.
ext/formatting.go:473
↓ 2 callers
Function
matchLanguage
(locale string)
ext/formatting.go:250
↓ 2 callers
Method
matches
matches reports whether two call states refer to the same function, overload, and arguments.
interpreter/async.go:386
↓ 2 callers
Method
maxHeight
(exprs ...Expr)
common/ast/ast.go:659
↓ 2 callers
Method
mayBeOther
mayBeOther reports whether a value at this level may be something other than a list, which flattening keeps as a single entry.
ext/lists.go:918
↓ 2 callers
Function
mayHoldElements
mayHoldElements reports whether a container with the given size estimate may be non-empty under the context's sizing strategy. An empty container has
common/cost/helper.go:556
↓ 2 callers
Function
maybeCustomAdapter
(adapter Adapter, list traits.Lister)
common/types/list.go:228
↓ 2 callers
Method
maybePrune
(node ast.Expr)
interpreter/prune.go:267
↓ 2 callers
Method
maybeQuoteField
(field string)
parser/unparser.go:105
↓ 2 callers
Method
maybeQuoteFunction
(fun string)
parser/unparser.go:96
↓ 2 callers
Method
member
(_p int)
parser/gen/cel_parser.go:2539
↓ 2 callers
Method
member
(_p int)
repl/parser/commands_parser.go:6497
↓ 2 callers
Function
mergeBinaryUnknowns
(lVal, rVal ref.Val)
interpreter/interpretable.go:2225
↓ 2 callers
Function
missingAttribute
(attr string)
interpreter/attributes.go:1662
↓ 2 callers
Function
missingIndex
(missing ref.Val)
interpreter/attributes.go:1650
↓ 2 callers
Method
modelVersion
()
common/cost/default_strategy.go:276
↓ 2 callers
Function
mostGeneral
mostGeneral returns the more general of two types which are known to unify.
checker/types.go:279
↓ 2 callers
Function
msgWithExtensions
msgWithExtensions generates a new example message with all possible extensions set.
ext/protos_test.go:249
↓ 2 callers
Function
multiplyInt64Checked
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 callers
Function
mustAdaptToEntryExpr
(e *exprpb.Expr_CreateStruct_Entry)
cel/macro.go:556
↓ 2 callers
Function
mustAdaptToProtoEntry
(e ast.EntryExpr)
cel/macro.go:577
↓ 2 callers
Function
mustParseDuration
(s string)
ext/strings_test.go:454
↓ 2 callers
Function
mustPartialVars
(t *testing.T, vars any, patterns ...*AttributePattern)
interpreter/activation_test.go:447
↓ 2 callers
Method
nativeSliceValue
()
common/types/list.go:797
↓ 2 callers
Function
negateDurationChecked
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 callers
Function
negateInt64Checked
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 callers
Method
newAstNode
(e ast.Expr)
common/cost/estimator.go:1124
↓ 2 callers
Function
newAsyncCallState
(id int64, function, overload string, argVals []ref.Val, impl functions.AsyncOp)
interpreter/async.go:256
↓ 2 callers
Function
newAsyncCallTrackerPool
()
interpreter/async.go:450
↓ 2 callers
Function
newAttrResolution
newAttrResolution creates a new attribute resolution value.
checker/env.go:154
↓ 2 callers
Function
newBalancingLogicManager
newBalancingLogicManager creates a logic manager instance bound to a specific function and its first term.
parser/helper.go:317
↓ 2 callers
Function
newBenchmarkCategoryParser
(tb testing.TB, options ...Option)
parser/parser_test.go:3890
↓ 2 callers
Function
newDynamicBlock
(slotExprs []interpreter.InterpretableV2, expr interpreter.InterpretableV2)
ext/bindings.go:196
↓ 2 callers
Function
newFieldDescription
newFieldDescription creates a new field description from a protoreflect.FieldDescriptor.
common/types/pb/type.go:159
↓ 2 callers
Function
newFunctionType
(resultType *types.Type, argTypes ...*types.Type)
checker/types.go:350
↓ 2 callers
Method
newIdent
(ctx any, name string)
parser/helper.go:80
↓ 2 callers
Method
newList
(ctx any, elements []ast.Expr, optionals ...int32)
parser/helper.go:100
↓ 2 callers
Function
newListIterator
(listValue traits.Lister)
common/types/list.go:700
↓ 2 callers
Method
newLiteralBytes
(ctx any, value []byte)
parser/helper.go:64
↓ 2 callers
Method
newLiteralUint
(ctx any, value uint64)
parser/helper.go:72
↓ 2 callers
Method
newLogicManager
(function string, term ast.Expr)
parser/antlr_parser.go:803
↓ 2 callers
Method
newMap
(ctx any, entries ...ast.EntryExpr)
parser/helper.go:104
↓ 2 callers
Method
newMapEntry
(entryID int64, key ast.Expr, value ast.Expr, optional bool)
parser/helper.go:108
↓ 2 callers
Function
newNavigableExpr
(ast *AST, parent NavigableExpr, expr Expr, depth int)
common/ast/navigable.go:292
↓ 2 callers
Method
newObject
(ctx any, typeName string, fields ...ast.EntryExpr)
parser/helper.go:112
↓ 2 callers
Method
newObjectField
(fieldID int64, field string, value ast.Expr, optional bool)
parser/helper.go:116
↓ 2 callers
Function
newOverload
(overloadID string, memberFunction bool, args []*types.Type, resultType *types.Type, opts ...OverloadOpt)
common/decls/decls.go:628
↓ 2 callers
Function
newParseFormatError
(msg string, wrapped error)
ext/formatting.go:911
↓ 2 callers
Function
newParserHelper
(source common.Source, fac ast.ExprFactory)
parser/helper.go:35
↓ 2 callers
Method
newReceiverCall
(ctx any, function string, target ast.Expr, args ...ast.Expr)
parser/helper.go:96
↓ 2 callers
Method
newSelect
(ctx any, operand ast.Expr, field string)
parser/helper.go:84
↓ 2 callers
Function
newStdEnv
(t *testing.T)
checker/env_test.go:85
↓ 2 callers
Function
newTestParser
(t *testing.T, options ...Option)
parser/parser_test.go:3925
↓ 2 callers
Function
newValidatorConfig
newValidatorConfig initializes the validator config with default values for core CEL validators.
cel/validator.go:179
↓ 2 callers
Function
newVariadicLogicManager
newVariadicLogicManager creates a logic manager instance bound to a specific function and its first term.
parser/helper.go:306
↓ 2 callers
Method
nextSignificantToken
()
parser/pratt_parser.go:187
↓ 2 callers
Function
normalizeIDs
normalizeIDs ensures that the metadata present with an AST is reset in a manner such that the ids within the expression correspond to the ids within m
cel/optimizer.go:135
↓ 2 callers
Method
normalizeIdent
normalizeIdent returns the interpreted identifier.
parser/antlr_parser.go:236
↓ 2 callers
Method
notAType
(id int64, l common.Location, typeName string)
checker/errors.go:68
↓ 2 callers
Function
octalFormatError
(id int64, badType string)
ext/formatting.go:683
↓ 2 callers
Function
octalFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:623
↓ 2 callers
Function
operandKind
operandKind returns the kind of the checked type of an Arg, Target or Result operand.
common/cost/helper.go:84
↓ 2 callers
Function
optionalConsumerExprs
optionalConsumerExprs feed the value an optional yields into another call, which is where a size that does not survive the optional shows up. The chai
common/cost/cost_bounds_test.go:435
↓ 2 callers
Function
optionalCost
optionalCost estimates and evaluates expr, and reports the estimate and the tracked cost.
common/cost/optional_cost_test.go:69
↓ 2 callers
Function
optionalCostEnv
optionalCostEnv returns an environment with optional types, the regex library, and a few variables, at a cost model version and sizing strategy.
common/cost/optional_cost_test.go:30
↓ 2 callers
Function
optionalDecls
(t *testing.T)
interpreter/prune_test.go:595
↓ 2 callers
Function
optionalLength
optionalLength reports the size of an optional under the default sizing strategy, at the given cost model version. From version 1 an optional is 1 pl
common/cost/default_strategy.go:263
↓ 2 callers
Method
override
override replaces the rules the option sets, leaving the others in place.
common/cost/version.go:57
↓ 2 callers
Function
parseAndCompilePolicy
(t testing.TB, name string, policySource string, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:261
↓ 2 callers
Method
parseArguments
(closeTok tokenKind)
parser/pratt_parser.go:1016
↓ 2 callers
Method
parseBinaryAndTernaryFromLhs
parseBinaryAndTernaryFromLhs parses the operators following lhs, which is lhsDepth deep, and leaves the depth of the resulting expression in lastParse
parser/pratt_parser.go:489
↓ 2 callers
Function
parseConfigYAML
(t *testing.T, doc string)
policy/config_test.go:244
↓ 2 callers
Function
parseFormatString
parseFormatString formats a string according to the string.format syntax, taking the clause implementations from the provided FormatCallback and the a
ext/formatting.go:783
↓ 2 callers
Function
parseFormatStringV2
parseFormatString formats a string according to the string.format syntax, taking the clause implementations from the provided FormatCallback and the a
ext/formatting_v2.go:673
↓ 2 callers
Method
parseMatchInternal
(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
policy/parser.go:905
↓ 2 callers
Method
parseMember
()
parser/pratt_parser.go:569
↓ 2 callers
Function
parseMutabilityExpr
(t *testing.T, expr string)
interpreter/mutability_test.go:66
↓ 2 callers
Function
parsePolicySource
(t testing.TB, name string, policySource string, parseOpts ...ParserOption)
policy/compiler_test.go:247
↓ 2 callers
Method
parseTypeElem
()
common/env/io.go:301
↓ 2 callers
Function
partialActivation
(in map[string]any, vars ...any)
interpreter/prune_test.go:567
↓ 2 callers
Method
peek
peek returns the top of the stack for the given variable name.
common/cost/estimator.go:252
↓ 2 callers
Method
planCheckedIdent
(id int64, identRef *ast.ReferenceInfo)
interpreter/planner.go:172
↓ 2 callers
Method
pop
pop removes the most recent variable from the scope stack for the given name.
common/cost/estimator.go:246
↓ 2 callers
Function
priorForVersion
priorForVersion selects the prior with the smallest before which still exceeds version, so that each prior covers the revisions from the previous prio
common/cost/model.go:1082
↓ 2 callers
Function
protoDeclToFunction
(decl *celpb.Decl)
tools/compiler/compiler.go:406
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1004
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1114
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1269
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1337
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1449
↓ 2 callers
Function
quoteForCEL
quoteForCEL takes a formatted, unquoted value and quotes it in a manner suitable for embedding directly in CEL.
ext/formatting.go:189
↓ 2 callers
Method
rawElemAt
(ind int)
common/types/list.go:816
← previous
next →
1,801–1,900 of 9,178, ranked by callers