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
↓ 15 callers
Function
PartialVars
PartialVars returns a PartialActivation which contains variables and a set of AttributePattern values that indicate variables or parts of variables wh
cel/program.go:114
↓ 15 callers
Function
PostOrderVisit
PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).
common/ast/navigable.go:175
↓ 15 callers
Method
RegisterMessage
RegisterMessage produces a `FileDescription` from a `message` and registers the message and all other definitions within the message file into the `pb
common/types/pb/pb.go:214
↓ 15 callers
Method
SourceInfo
SourceInfo returns the source metadata associated with the parse / type-check passes.
common/ast/ast.go:43
↓ 15 callers
Function
interpret
(t testing.TB, env *Env, expr string, vars any)
cel/cel_test.go:5234
↓ 15 callers
Method
location
(e ast.Expr)
checker/checker.go:706
↓ 15 callers
Function
newStandardInterpreter
newStandardInterpreter builds a Dispatcher and TypeProvider with support for all of the CEL builtins defined in the language definition.
interpreter/interpreter_test.go:2838
↓ 15 callers
Function
newTestRegistry
(t testing.TB)
checker/env_test.go:98
↓ 15 callers
Method
nextID
(tok token)
parser/pratt_parser.go:265
↓ 15 callers
Method
nextMacroID
()
parser/helper.go:370
↓ 14 callers
Method
EnterRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5919
↓ 14 callers
Method
ExitRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5925
↓ 14 callers
Method
Function
Function returns the name of the function being called.
common/cost/tracker.go:39
↓ 14 callers
Method
HasTrait
HasTrait returns whether the type has a given trait associated with it. See common/types/traits/traits.go for a list of supported traits.
common/types/ref/reference.go:27
↓ 14 callers
Method
IsAssignableType
IsAssignableType determines whether the current type is type-check assignable from the input fromType.
common/types/types.go:314
↓ 14 callers
Method
Multiply
Multiply returns the result of multiplying the current and input value.
common/types/traits/math.go:48
↓ 14 callers
Function
NewBuffer
NewBuffer returns an efficient implementation of Buffer for the given text based on the ranges of the encoded code points contained within.
common/runes/buffer.go:129
↓ 14 callers
Function
NewConfig
NewConfig creates an instance of a YAML/JSON serializable CEL environment configuration.
common/env/env.go:30
↓ 14 callers
Function
NewConstantFoldingOptimizer
NewConstantFoldingOptimizer creates an optimizer which inlines constant scalar an aggregate literal values within function calls and select statements
cel/folding.go:62
↓ 14 callers
Function
WithSizingStrategy
WithSizingStrategy sets the SizingStrategy used to resolve sizes during both cost estimation and runtime cost tracking. A nil strategy is ignored, le
common/cost/version.go:223
↓ 14 callers
Function
mustParseType
(t testing.TB, name string)
repl/evaluator_test.go:32
↓ 14 callers
Function
mustProgram
mustProgram compiles an expression and constructs a Program, separating EnvOptions and ProgramOptions.
cel/program_async_test.go:1088
↓ 14 callers
Function
newFormatError
(id int64, msg string, args ...any)
ext/formatting.go:700
↓ 14 callers
Method
newID
(ctx any)
parser/helper.go:144
↓ 14 callers
Method
reportSyntaxError
(ctx any, format string, args ...any)
parser/pratt_parser.go:332
↓ 13 callers
Function
ElemTotal
ElemTotal creates an expression referencing the combined size of every element of a list, or every value of a map, under the sizing strategy in effect
common/cost/model.go:399
↓ 13 callers
Method
Evaluate
Evaluate sets up a CEL evaluation using the current REPL context.
repl/evaluator.go:1461
↓ 13 callers
Method
Extend
Extend creates a new Container with the existing settings and applies a series of ContainerOptions to further configure the new container.
common/containers/container.go:60
↓ 13 callers
Method
ID
ID value corresponding to the expression node.
interpreter/interpretable.go:32
↓ 13 callers
Method
NewComprehension
NewComprehension creates an Expr value representing a one-variable comprehension over a value range.
common/ast/factory.go:31
↓ 13 callers
Method
NewError
NewError associates an error message with a given expression id.
parser/macro.go:294
↓ 13 callers
Function
NewJSONList
NewJSONList returns a traits.Lister based on structpb.ListValue instance.
common/types/list.go:150
↓ 13 callers
Function
NewJSONStruct
NewJSONStruct creates a traits.Mapper implementation backed by a JSON struct that has been encoded in protocol buffer form. The `adapter` argument pr
common/types/map.go:64
↓ 13 callers
Function
NewLibrarySubset
NewLibrarySubset returns an empty library subsetting config which permits all library features.
common/env/env.go:523
↓ 13 callers
Function
NewNullableType
NewNullableType creates an instance of a nullable type with the provided wrapped type. Note: only primitive types are supported as wrapped types.
common/types/types.go:535
↓ 13 callers
Function
NewPartialAttributeFactory
NewPartialAttributeFactory returns an AttributeFactory implementation capable of performing AttributePattern matches with PartialActivation inputs.
interpreter/attribute_patterns.go:182
↓ 13 callers
Method
NewStructField
NewStructField creates a StructField with a given field name, value, and a flag indicating whether the field is optionally set.
common/ast/factory.go:76
↓ 13 callers
Function
NoSuchOverloadErr
NoSuchOverloadErr returns a new types.Err instance with a no such overload message.
common/types/err.go:89
↓ 13 callers
Method
ResolveCandidateNames
ResolveCandidateNames returns the candidates name of namespaced identifiers in C++ resolution order. Names which shadow other names are returned firs
common/containers/container.go:111
↓ 13 callers
Function
SafeMultiply
SafeMultiply returns the product of the input values, saturating at math.MaxUint64.
common/cost/cost.go:106
↓ 13 callers
Method
Size
Size returns the actual runtime size of a value.
common/cost/model.go:79
↓ 13 callers
Method
SourceInfo
SourceInfo returns the policy file metadata about expression positions.
policy/parser.go:83
↓ 13 callers
Method
SpecifierFormat
SpecifierFormat returns the short text representation of the type. e.g. "map<string, int>"
common/env/env.go:876
↓ 13 callers
Method
UpdateExpr
UpdateExpr updates the target expression with the updated content while preserving macro metadata. There are four scenarios during the update to cons
cel/optimizer.go:505
↓ 13 callers
Method
advance
(n int32)
parser/lexer.go:261
↓ 13 callers
Method
nextID
()
cel/optimizer.go:223
↓ 12 callers
Method
ApproximateAggregateSize
ApproximateAggregateSize returns the aggregate size of the input value along with an indication of whether the computation was aborted due to the calc
common/types/size_calc.go:163
↓ 12 callers
Function
AttributePattern
AttributePattern returns an AttributePattern that matches a top-level variable. The pattern is mutable, and its methods support the specification of o
cel/program.go:178
↓ 12 callers
Method
ContextEval
ContextEval evaluates the program with a set of input variables and a context object in order to support cancellation and timeouts. This method must b
cel/program.go:59
↓ 12 callers
Function
EnablePrattParser
EnablePrattParser enables the Pratt parser implementation instead of the ANTLR parser.
parser/options.go:181
↓ 12 callers
Function
Equal
Equal returns whether the two ref.Value are heterogeneously equivalent.
common/types/util.go:41
↓ 12 callers
Method
FindIdent
FindIdent takes a qualified identifier name and returns a ref.Val if one exists.
common/types/provider.go:51
↓ 12 callers
Method
Fold
Fold calls the FoldEntry method for each (key, value) pair in the map.
common/types/map.go:124
↓ 12 callers
Method
GetName
GetName returns the fully qualified file path for the file.
common/types/pb/file.go:80
↓ 12 callers
Function
IntArg
IntArg creates an expression referencing the integer value of the argument at the given index. At runtime, an argument which is not an integer reads
common/cost/model.go:271
↓ 12 callers
Method
Line
()
common/location.go:19
↓ 12 callers
Function
List
List creates an expression representing a list with the given length and element size. The estimate is the size the sizing strategy assigns to such a
common/cost/model.go:981
↓ 12 callers
Method
MacroCalls
MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression node where the macro was inserted into the AST, and
common/ast/ast.go:318
↓ 12 callers
Function
ManualEstimator
ManualEstimator sets a custom FunctionEstimator for an overload (or BeforeVersion entry) whose static estimate cannot be expressed declaratively with
common/cost/model.go:1133
↓ 12 callers
Method
MaybeAttribute
MaybeAttribute creates an attribute that refers to either a field selection or a namespaced variable name. Only expressions which have not been type-
interpreter/attributes.go:49
↓ 12 callers
Function
NewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 12 callers
Method
NewList
NewList creates a CreateList instruction where the list is comprised of the optional set of elements provided as arguments.
cel/macro.go:81
↓ 12 callers
Function
NewVariable
NewVariable returns a serializable variable from a name and type definition
common/env/env.go:244
↓ 12 callers
Method
OverloadDecls
OverloadDecls returns the overload declarations in the order in which they were declared.
common/decls/decls.go:310
↓ 12 callers
Function
OverloadTracker
OverloadTracker binds an overload ID to a runtime FunctionTracker implementation. OverloadTracker instances augment or override ActualCostEstimator d
common/cost/tracker.go:102
↓ 12 callers
Method
Parent
Parent returns the parent expression node, if one exists.
common/ast/navigable.go:34
↓ 12 callers
Function
PopulateMacroCalls
PopulateMacroCalls ensures that the original call signatures replaced by expanded macros are preserved in the `SourceInfo` of parse result.
parser/options.go:132
↓ 12 callers
Method
ReflectType
ReflectType returns the backing Go reflect.Type associated with the struct (or nil if non-reflected).
common/types/struct.go:26
↓ 12 callers
Method
SetConfig
SetConfig sets the set of map key-value pairs associated with this validator's configuration.
common/env/env.go:720
↓ 12 callers
Function
StringsVersion
StringsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equ
ext/strings.go:361
↓ 12 callers
Function
asyncReturning
asyncReturning returns an AsyncOp that immediately produces the given value, while counting the number of times the implementation is invoked.
interpreter/async_test.go:40
↓ 12 callers
Method
check
(e ast.Expr)
checker/checker.go:82
↓ 12 callers
Function
mustAdaptToExpr
(e *exprpb.Expr)
cel/macro.go:540
↓ 12 callers
Method
newExpr
(ctx any)
parser/helper.go:151
↓ 12 callers
Function
testIDGen
(seed int64)
common/ast/expr_test.go:506
↓ 12 callers
Function
testNativeEnv
testEnv initializes the test environment common to all tests.
ext/native_test.go:1499
↓ 11 callers
Method
AccuIdentName
AccuIdentName returns the name of the accumulator identifier.
parser/macro.go:276
↓ 11 callers
Method
ActualCost
ActualCost returns the runtime cost.
common/cost/tracker.go:173
↓ 11 callers
Method
AddVariables
AddVariables adds one or more variables to the config.
common/env/env.go:132
↓ 11 callers
Method
AsCELType
AsCELType converts the serializable object to a *types.Type value.
common/env/env.go:883
↓ 11 callers
Method
Content
Content returns the source content represented as a string. Examples contents are the single file contents, textbox field, or url parameter.
common/source.go:28
↓ 11 callers
Function
CostTrackerOptions
CostTrackerOptions configures a set of options for cost-tracking. Note, CostTrackerOptions is a no-op unless CostTracking is also enabled.
cel/options.go:923
↓ 11 callers
Method
Expr
()
repl/parser/commands_parser.go:4558
↓ 11 callers
Function
ExprTypeToType
ExprTypeToType converts a protobuf CEL type representation to a CEL-native type representation.
common/types/types.go:704
↓ 11 callers
Method
FindStructFieldType
FindStructFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/provider.go:68
↓ 11 callers
Method
FoldEntry
FoldEntry indicates the key, value pair associated with the entry. If the output is true, continue folding. Otherwise, terminate the fold.
common/types/traits/iterator.go:48
↓ 11 callers
Function
FunctionVars
FunctionVars returns a FunctionActivation combining the variable bindings from `vars` with the late-bound function implementations from `funcs`. Funct
cel/program.go:161
↓ 11 callers
Method
GetFrom
GetFrom returns the accessor method associated with the field on the proto generated struct. If the field is not set, the proto default value is retu
common/types/pb/type.go:294
↓ 11 callers
Method
GetMacroCall
GetMacroCall returns the original ast.Expr value for the given expression if it was generated via a macro replacement. Note, parsing options must be
common/ast/ast.go:329
↓ 11 callers
Method
GetOffsetRange
GetOffsetRange retrieves an OffsetRange for the given expression id if one exists.
common/ast/ast.go:360
↓ 11 callers
Method
Is
Is implements errors.Is.
common/types/err.go:160
↓ 11 callers
Method
IsEquivalentType
IsEquivalentType indicates whether two types are equivalent. This check ignores type parameter type names.
common/types/types.go:279
↓ 11 callers
Function
ListSizeEstimate
ListSizeEstimate returns a SizeEstimate for a list with the given list length and element size.
common/cost/cost.go:209
↓ 11 callers
Function
MultilineDescription
MultilineDescription combines multiple lines into a newline separated string.
common/doc.go:68
↓ 11 callers
Method
NewAST
NewAST creates an AST from the current expression using the tracked source info which is modified and managed by the OptimizerContext.
cel/optimizer.go:274
↓ 11 callers
Method
NewAccuIdent
NewAccuIdent creates an Expr value representing an accumulator identifier within a comprehension.
common/ast/factory.go:44
↓ 11 callers
Method
NewComprehensionTwoVar
NewComprehensionTwoVar creates a new two-variable comprehension instruction. - iterRange represents the expression that resolves to a list or map whe
parser/macro.go:260
↓ 11 callers
Method
NewComprehensionTwoVar
NewComprehensionTwoVar creates an Expr value representing a two-variable comprehension over a value range.
common/ast/factory.go:34
↓ 11 callers
Function
NewList
NewList returns a traits.Lister backed by a typed Go slice []T.
common/types/list.go:115
↓ 11 callers
Function
NewLocation
NewLocation creates a new location.
common/location.go:37
← previous
next →
301–400 of 9,178, ranked by callers