Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,240 in github.com/cel-expr/cel-go
⨍
Functions
7,240
◇
Types & classes
842
↓ 15 callers
Method
OptionalIndices
OptionalIndicies returns the list of optional indices in the list literal.
common/ast/expr.go:185
↓ 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
ResolveName
ResolveName returns a value from the activation by qualified name, or false if the name could not be found.
interpreter/activation.go:30
↓ 15 callers
Function
mustTypeCheck
(t testing.TB, expr string, opts ...any)
common/ast/navigable_test.go:557
↓ 15 callers
Method
nextMacroID
()
parser/helper.go:329
↓ 14 callers
Method
Args
Args returns the normalized arguments to the function overload. For receiver-style functions, the receiver target is arg 0.
interpreter/interpretable.go:130
↓ 14 callers
Function
Compare
Compare compares two strings, a for actual, e for expected, and returns true or false. The comparison is done, by filtering out whitespace (i.e. space
test/compare.go:24
↓ 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
IDs
IDs returns the list of ids with recorded values.
interpreter/evalstate.go:24
↓ 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
NewErrors
NewErrors creates a new instance of the Errors type.
common/errors.go:32
↓ 14 callers
Method
NewInterpretable
NewInterpretable creates an InterpretableV2 from a checked expression and an optional list of PlannerOption values.
interpreter/interpreter.go:36
↓ 14 callers
Function
NewOptionalType
NewOptionalType creates an abstract parameterized type instance corresponding to CEL's notion of optional.
common/types/types.go:525
↓ 14 callers
Function
NewSourceInfo
NewSourceInfo creates a simple SourceInfo object from an input common.Source value.
common/ast/ast.go:193
↓ 14 callers
Method
NewStruct
NewStruct creates an Expr value representing a struct literal with a given type name and a set of field initializers.
common/ast/factory.go:72
↓ 14 callers
Function
ValOrErr
ValOrErr either returns the existing error or creates a new one. TODO: Audit the use of this function and standardize the error messages and codes.
common/types/err.go:107
↓ 14 callers
Method
location
(e ast.Expr)
checker/checker.go:710
↓ 14 callers
Function
mustParseType
(t testing.TB, name string)
repl/evaluator_test.go:32
↓ 14 callers
Function
newFormatError
(id int64, msg string, args ...any)
ext/formatting.go:700
↓ 14 callers
Method
newID
(ctx any)
parser/helper.go:140
↓ 13 callers
Method
Bindings
Bindings produces a set of function bindings, if any are defined.
common/decls/decls.go:328
↓ 13 callers
Method
Evaluate
Evaluate sets up a CEL evaluation using the current REPL context.
repl/evaluator.go:1461
↓ 13 callers
Function
ExprToProto
ExprToProto serializes an ast.Expr value to a protobuf Expr representation.
common/ast/conversion.go:282
↓ 13 callers
Function
FunctionBinding
FunctionBinding provides the implementation of a variadic overload. The provided function is protected by a runtime type-guard which ensures runtime t
cel/decls.go:339
↓ 13 callers
Method
ID
ID value corresponding to the expression node.
interpreter/interpretable.go:32
↓ 13 callers
Method
IsZeroValue
IsZeroValue indicates whether the object is the zero value for the type.
common/types/traits/zeroer.go:20
↓ 13 callers
Method
IterVar
IterVar returns the iteration variable name. For one-variable comprehensions, the iter var refers to the element value when iterating over a list, or
common/ast/expr.go:278
↓ 13 callers
Method
MultiplyByCostFactor
MultiplyByCostFactor multiplies a SizeEstimate by a cost factor and returns the CostEstimate with the nearest integer of the result, rounded up.
checker/cost.go:134
↓ 13 callers
Function
NewAttributePattern
NewAttributePattern produces a new mutable AttributePattern based on a variable name.
interpreter/attribute_patterns.go:54
↓ 13 callers
Function
NewJSONList
NewJSONList returns a traits.Lister based on structpb.ListValue instance.
common/types/list.go:80
↓ 13 callers
Function
NewLibrarySubset
NewLibrarySubset returns an empty library subsetting config which permits all library features.
common/env/env.go:521
↓ 13 callers
Method
NewList
NewList creates an Expr value representing a list literal expression with optional indices. Optional indices will typically be empty unless the CEL o
common/ast/factory.go:55
↓ 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:509
↓ 13 callers
Function
NoSuchOverloadErr
NoSuchOverloadErr returns a new types.Err instance with a no such overload message.
common/types/err.go:89
↓ 13 callers
Function
PostOrderVisit
PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).
common/ast/navigable.go:175
↓ 13 callers
Method
ReferenceMap
ReferenceMap returns the map of expression id to identifier, constant, and function references.
common/ast/ast.go:87
↓ 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
Method
Slice
(i, j int)
common/runes/buffer.go:27
↓ 13 callers
Method
SourceInfo
SourceInfo returns the source metadata associated with the parse / type-check passes.
common/ast/ast.go:43
↓ 13 callers
Function
StdLib
StdLib returns an EnvOption for the standard library of CEL functions and macros.
cel/library.go:130
↓ 13 callers
Method
TypeName
TypeName returns the qualified type name of the type. The type name is also used as the type's identifier name at type-check and interpretation time.
common/types/ref/reference.go:32
↓ 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:499
↓ 13 callers
Method
Validate
Validate validates a given Ast within an Environment and collects a set of potential issues. The ValidatorConfig is generated from the set of ASTVali
cel/validator.go:112
↓ 13 callers
Function
actualSize
(value ref.Val)
ext/costs.go:62
↓ 13 callers
Method
nextID
()
cel/optimizer.go:222
↓ 12 callers
Function
EnableOptionalSyntax
EnableOptionalSyntax enables syntax for optional field and index selection.
parser/options.go:125
↓ 12 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
↓ 12 callers
Method
IterVar2
IterVar2 returns the second iteration variable name. When the value is non-empty, the comprehension is a two-variable comprehension.
common/ast/expr.go:283
↓ 12 callers
Method
NewError
NewError associates an error message with a given expression id.
parser/macro.go:294
↓ 12 callers
Method
NewMemberCall
NewMemberCall creates an Expr value representing a member function call.
common/ast/factory.go:37
↓ 12 callers
Function
NewValidator
NewValidator returns a named Validator instance.
common/env/env.go:693
↓ 12 callers
Method
OutputType
OutputType returns the output type of the expression if the Ast has been type-checked, else returns cel.DynType as the parse step cannot infer types.
cel/env.go:102
↓ 12 callers
Method
SpecifierFormat
SpecifierFormat returns the short text representation of the type. e.g. "map<string, int>"
common/env/env.go:874
↓ 12 callers
Method
TypeMap
TypeMap returns the map of expression ids to type-checked types. If the AST is not type-checked, the map will be empty.
common/ast/ast.go:69
↓ 12 callers
Function
callEstimate
(cost checker.CostEstimate, sz *checker.SizeEstimate)
ext/costs.go:84
↓ 12 callers
Function
mustAdaptToExpr
(e *exprpb.Expr)
cel/macro.go:540
↓ 11 callers
Method
AccuIdentName
AccuIdentName returns the name of the accumulator identifier.
parser/macro.go:276
↓ 11 callers
Method
AddIdents
AddIdents configures the checker with a list of variable declarations. If there are overlapping declarations, the method will error.
checker/env.go:115
↓ 11 callers
Method
AsCELType
AsCELType converts the serializable object to a *types.Type value.
common/env/env.go:881
↓ 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:678
↓ 11 callers
Method
FindStructType
FindStructType returns the Type give a qualified type name. For historical reasons, only struct types are expected to be returned through this method
common/types/provider.go:55
↓ 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:321
↓ 11 callers
Method
GetName
GetName returns the fully qualified file path for the file.
common/types/pb/file.go:80
↓ 11 callers
Function
MultilineDescription
MultilineDescription combines multiple lines into a newline separated string.
common/doc.go:68
↓ 11 callers
Function
NewConfig
NewConfig creates an instance of a YAML serializable CEL environment configuration.
common/env/env.go:30
↓ 11 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:50
↓ 11 callers
Function
NewLocation
NewLocation creates a new location.
common/location.go:37
↓ 11 callers
Function
NewTypeParam
NewTypeParam describe a type-param type.
common/env/env.go:783
↓ 11 callers
Method
OverloadDecls
OverloadDecls returns the overload declarations in the order in which they were declared.
common/decls/decls.go:294
↓ 11 callers
Function
UnaryBinding
UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime type-guard which ensures runtime type ag
common/decls/decls.go:851
↓ 11 callers
Function
duration
(seconds, nanos int64)
common/types/duration_test.go:267
↓ 11 callers
Method
newExpr
(id int64, e exprKindCase)
common/ast/factory.go:316
↓ 11 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:2407
↓ 11 callers
Function
safeAdd
(x, y uint64, rest ...uint64)
ext/costs.go:106
↓ 11 callers
Function
testIDGen
(seed int64)
common/ast/expr_test.go:506
↓ 10 callers
Method
CELTypeAdapter
CELTypeAdapter returns the `types.Adapter` configured for the environment.
cel/env.go:707
↓ 10 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
↓ 10 callers
Function
CostTracking
CostTracking enables cost tracking and registers a ActualCostEstimator that can optionally provide a runtime cost estimate for any function calls.
cel/options.go:757
↓ 10 callers
Method
FindIdent
FindIdent takes a qualified identifier name and returns a ref.Val if one exists.
common/types/provider.go:46
↓ 10 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
↓ 10 callers
Function
FormatCELType
FormatCELType formats a types.Type value to a string representation. The type formatting is identical to FormatCheckedType.
checker/format.go:109
↓ 10 callers
Function
FunctionBinding
FunctionBinding provides the implementation of a variadic overload. The provided function is protected by a runtime type-guard which ensures runtime t
common/decls/decls.go:887
↓ 10 callers
Method
GetOffsetRange
GetOffsetRange retrieves an OffsetRange for the given expression id if one exists.
common/ast/ast.go:352
↓ 10 callers
Method
GetOp
GetOp returns the op token.
repl/parser/commands_parser.go:4377
↓ 10 callers
Method
IsEquivalentType
IsEquivalentType indicates whether two types are equivalent. This check ignores type parameter type names.
common/types/types.go:279
↓ 10 callers
Method
IsExactType
IsExactType indicates whether the two types are exactly the same. This check also verifies type parameter type names.
common/types/types.go:274
↓ 10 callers
Method
Line
()
common/location.go:19
↓ 10 callers
Function
NativeTypes
NativeTypes creates a type provider which uses reflect.Type and reflect.Value instances to produce type definitions that can be used within CEL. All
ext/native.go:99
↓ 10 callers
Method
NewAccuIdent
NewAccuIdent returns an accumulator identifier for use with comprehension results.
parser/macro.go:273
↓ 10 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
↓ 10 callers
Function
NewPartialActivation
NewPartialActivation returns an Activation which contains a list of AttributePattern values representing field and index operations that should result
interpreter/activation.go:160
↓ 10 callers
Method
NewQualifier
NewQualifier creates a qualifier on the target object with a given value. The 'val' may be an Attribute or any proto-supported map key type: bool, in
interpreter/attributes.go:62
↓ 10 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
↓ 10 callers
Function
NewVariable
NewVariable returns a serializable variable from a name and type definition
common/env/env.go:244
↓ 10 callers
Function
Optimize
Optimize will pre-compute operations such as list and map construction and optimize call arguments to set membership tests. The set of optimizations w
interpreter/interpreter.go:192
↓ 10 callers
Method
Parent
Parent returns the parent expression node, if one exists.
common/ast/navigable.go:34
↓ 10 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:94
← previous
next →
201–300 of 7,240, ranked by callers