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
↓ 2 callers
Function
PruneAst
TODO Consider having a separate walk of the AST that finds common subexpressions. This can be called before or after constant folding to find common s
interpreter/prune.go:69
↓ 2 callers
Method
QualId
()
repl/parser/commands_parser.go:3210
↓ 2 callers
Method
QualifierValueEquals
QualifierValueEquals returns true if the input value is equal to the value held in the Qualifier.
interpreter/attribute_patterns.go:138
↓ 2 callers
Method
Qualifiers
Qualifiers returns the list of qualifiers associated with the Attribute.
interpreter/attributes.go:126
↓ 2 callers
Method
Qualify
Qualify performs a qualification, e.g. field selection, on the input object and returns the value of the access and whether the value was set. A non-n
interpreter/attributes.go:80
↓ 2 callers
Method
RangeList
RangeList iterates over the list and calls the provided function for each element. If the function returns false, the iteration will stop.
policy/yaml.go:31
↓ 2 callers
Function
ReferenceInfoToProto
ReferenceInfoToProto converts a ReferenceInfo instance to a protobuf Reference suitable for serialization.
common/ast/conversion.go:612
↓ 2 callers
Function
RegexVersion
RegexVersion configures the version of the Regex library definitions to use. See [Regex] for supported values.
ext/regex.go:118
↓ 2 callers
Method
RegisterType
RegisterType registers a type value with the provider which ensures the provider is aware of how to map the type to an identifier. If the `ref.Type`
common/types/provider.go:383
↓ 2 callers
Method
ReportErrorAtID
ReportErrorAtID records an error at a source location and expression id.
common/errors.go:55
↓ 2 callers
Method
Reset
Reset clears the previously recorded expression values.
interpreter/evalstate.go:34
↓ 2 callers
Method
ResultType
ResultType returns the output type of the expression if the Ast has been type-checked, else returns chkdecls.Dyn as the parse step cannot infer the ty
cel/env.go:91
↓ 2 callers
Method
SetCondition
SetCondition sets the CEL condition for the match.
policy/parser.go:359
↓ 2 callers
Method
SetExpression
SetExpression sets the variable expression.
policy/parser.go:293
↓ 2 callers
Method
SetOutput
SetOutput sets the output expression for the match.
policy/parser.go:364
↓ 2 callers
Method
SetRule
SetRule sets the rule for the match.
policy/parser.go:374
↓ 2 callers
Method
SetType
SetType sets the type of the expression node at the given id.
common/ast/ast.go:59
↓ 2 callers
Function
SetsVersion
SetsVersion sets the library version for set extensions.
ext/sets.go:90
↓ 2 callers
Function
SingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
cel/decls.go:287
↓ 2 callers
Method
Size
Size implements the traits.Sizer interface method.
common/types/list.go:268
↓ 2 callers
Method
Sort
Sort is a convenience method: x.Sort() calls Sort(x).
cel/folding_test.go:921
↓ 2 callers
Method
Sort
Sort is a convenience method: x.Sort() calls Sort(x).
common/types/unknown.go:340
↓ 2 callers
Method
StartCommand
()
repl/parser/commands_parser.go:490
↓ 2 callers
Method
String
String takes a ref.Val and a string representing the current locale identifier and returns the Val formatted as a string, or an error if one occurred.
ext/formatting_v2.go:642
↓ 2 callers
Function
StringsLocale
StringsLocale configures the library with the given locale. The locale tag will be checked for validity at the time that EnvOptions are configured. If
ext/strings.go:347
↓ 2 callers
Function
StringsValidateFormatCalls
StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have valid formatting clauses and valid argument types for
ext/strings.go:374
↓ 2 callers
Method
SubsetFunction
SubsetFunction produces a function declaration which matches the supported subset, or nil if the function is not supported by the LibrarySubset. For
common/env/env.go:581
↓ 2 callers
Method
SubsetMacro
SubsetMacro indicates whether the macro function should be included in the library subset.
common/env/env.go:625
↓ 2 callers
Function
TestRunnerOptionsFromFlags
TestRunnerOptionsFromFlags returns a TestRunnerOption which configures the following attributes of the test runner using the parsed flags and the opti
tools/celtest/test_runner.go:184
↓ 2 callers
Function
ToFoldableList
ToFoldableList will create a Foldable version of a list suitable for key-value pair iteration. For values which are already Foldable, this call is a
common/types/list.go:573
↓ 2 callers
Function
ToFoldableMap
ToFoldableMap will create a Foldable version of a map suitable for key-value pair iteration. For values which are already Foldable, this call is a no
common/types/map.go:996
↓ 2 callers
Method
ToImmutableList
()
common/types/traits/lister.go:35
↓ 2 callers
Function
TwoVarComprehensionsVersion
TwoVarComprehensionsVersion sets the library version for two-variable comprehensions.
ext/comprehensions.go:175
↓ 2 callers
Method
Type
Type implements the ref.Val interface method.
ext/native.go:600
↓ 2 callers
Method
Type
()
common/types/object.go:162
↓ 2 callers
Method
Type
Type of the expression. If the expression is type-checked, the type check metadata is returned. If the expression has not been type-checked, the type
common/ast/navigable.go:31
↓ 2 callers
Method
TypeProvider
TypeProvider returns the `ref.TypeProvider` configured for the environment. Deprecated: use CELTypeProvider()
cel/env.go:726
↓ 2 callers
Function
TypeToExprType
TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
cel/decls.go:363
↓ 2 callers
Function
TypeVariable
TypeVariable creates a new type identifier for use within a types.Provider
common/decls/decls.go:1006
↓ 2 callers
Method
UnknownAttributePatterns
UnknownAttributePaths returns a set of AttributePattern values which match Attribute expressions for data accesses whose values are not yet known.
interpreter/activation.go:175
↓ 2 callers
Function
UnparseExprType
UnparseExprType pretty-prints a type (proto representation) for the REPL.
repl/typefmt.go:32
↓ 2 callers
Function
ValidatedDeclarations
ValidatedDeclarations provides a references to validated declarations which will be copied into new checker instances.
checker/options.go:38
↓ 2 callers
Method
Value
Value returns the constant value of the instruction.
interpreter/interpretable.go:78
↓ 2 callers
Function
VariableDeclToExprDecl
VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
common/decls/decls.go:1011
↓ 2 callers
Function
VariableWithDoc
VariableWithDoc creates an instance of a variable declaration with a variable name, type, and doc string.
cel/decls.go:149
↓ 2 callers
Method
Variables
Variables returns a shallow copy of the variables associated with the environment.
cel/env.go:633
↓ 2 callers
Method
WithJSONFieldNames
WithJSONFieldNames configures the registry with the JSON field name support enabled or disabled.
common/types/provider.go:190
↓ 2 callers
Function
WrapOnOperators
WrapOnOperators specifies which operators to perform word wrapping on an output expression when its string length exceeds the column limit set by Wrap
parser/unparser.go:622
↓ 2 callers
Function
actualSize
actualSize returns the size of the value for all traits.Sizer values, a fixed size for all proto-based objects, and a size of 1 for all other value ty
interpreter/runtimecost.go:336
↓ 2 callers
Function
adaptLiteral
adaptLiteral converts a runtime CEL value to its equivalent literal expression. For strongly typed values, the type-provider will be used to reconstr
cel/folding.go:393
↓ 2 callers
Method
add
(from, to *types.Type)
checker/mapping.go:31
↓ 2 callers
Method
addLetFn
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:493
↓ 2 callers
Method
addLetVar
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:441
↓ 2 callers
Method
addOption
(opt Optioner, isYAML bool)
repl/evaluator.go:509
↓ 2 callers
Method
addTerm
addTerm adds an operation identifier and term to the set of terms to be balanced.
parser/helper.go:287
↓ 2 callers
Function
addTimeDurationChecked
addDurationChecked performs addition with overflow detection of a time.Time and time.Duration. If the operation fails due to overflow the error retur
common/types/overflow.go:196
↓ 2 callers
Function
addUint64NoOverflow
addUint64NoOverflow adds non-negative ints. If the result is exceeds math.MaxUint64, math.MaxUint64 is returned.
checker/cost.go:224
↓ 2 callers
Function
aliasAs
(kind, qualifiedName, alias string, requireQualified bool)
common/containers/container.go:249
↓ 2 callers
Method
applyContextOptions
(env *cel.Env)
repl/evaluator.go:369
↓ 2 callers
Function
applyQualifiers
(vars Activation, obj any, qualifiers []Qualifier)
interpreter/attributes.go:1302
↓ 2 callers
Function
assertFuncEquals
(t *testing.T, got, want *decls.FunctionDecl)
common/env/env_test.go:1493
↓ 2 callers
Function
binaryFormatError
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting.go:667
↓ 2 callers
Function
binaryFormatErrorV2
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting_v2.go:607
↓ 2 callers
Method
calc
(_p int)
parser/gen/cel_parser.go:1613
↓ 2 callers
Method
calc
(_p int)
repl/parser/commands_parser.go:5571
↓ 2 callers
Method
checkAttempts
(recognizer antlr.Parser)
parser/parser.go:299
↓ 2 callers
Function
checkInvalidArgs
(meh cel.MacroExprFactory, funcName string, args []ast.Expr)
ext/math.go:889
↓ 2 callers
Function
checkOptionArgs
(idx int, args []string)
repl/evaluator.go:1172
↓ 2 callers
Method
checkSelectField
(e, operand ast.Expr, field string, optional bool)
checker/checker.go:215
↓ 2 callers
Function
clauseForType
(argType ref.Type)
ext/formatting.go:39
↓ 2 callers
Function
collectEnumValues
collectEnumValues accumulates the enum values within an enum declaration.
common/types/pb/file.go:187
↓ 2 callers
Function
collectExtensions
(extensions protoreflect.ExtensionDescriptors, msgExtensionMap map[string][]protoreflect.ExtensionDescriptor)
common/types/pb/file.go:199
↓ 2 callers
Function
collectParamNames
(paramNames map[string]struct{}, arg *types.Type)
common/decls/decls.go:1072
↓ 2 callers
Function
compareIntDouble
(i Int, d Double)
common/types/compare.go:33
↓ 2 callers
Function
compareUintDouble
(u Uint, d Double)
common/types/compare.go:47
↓ 2 callers
Function
compareUintInt
(u Uint, i Int)
common/types/compare.go:65
↓ 2 callers
Function
compareUnknownIDs
(expectedUnknownIDs, actualUnknownIDs []int64)
tools/celtest/test_runner.go:813
↓ 2 callers
Method
compile
(t testing.TB, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:308
↓ 2 callers
Function
computeCost
(t *testing.T, expr string, vars []*decls.VariableDecl, ctx Activation, options []CostTrackerOption)
interpreter/runtimecost_test.go:112
↓ 2 callers
Method
computeUnknownVars
computeUnknownVars determines a set of missing variables based on the input activation and the environment's configured declaration set.
cel/env.go:945
↓ 2 callers
Method
condition
condition returns the condition associated with the output.
policy/composer.go:415
↓ 2 callers
Method
configure
configure applies a series of EnvOptions to the current environment.
cel/env.go:817
↓ 2 callers
Method
configuredExpressionSizeLimit
configuredExpressionSizeLimit returns the effective expression size code point limit. A zero value means "use the parser default".
cel/env.go:441
↓ 2 callers
Function
constructActivation
(t *testing.T, in any)
interpreter/runtimecost_test.go:177
↓ 2 callers
Function
convertProto
(src, dst proto.Message)
common/types/types.go:816
↓ 2 callers
Method
copySizeEstimates
(dst, src ast.Expr)
checker/cost.go:938
↓ 2 callers
Method
create
(parent, child Activation)
interpreter/frame.go:219
↓ 2 callers
Function
customPolicyParserOption
()
tools/celtest/test_runner_test.go:124
↓ 2 callers
Function
decObserveEval
decObserveEval records evaluation state into an EvalState object.
interpreter/decorators.go:33
↓ 2 callers
Function
decimalFormatError
(id int64, badType string)
ext/formatting.go:671
↓ 2 callers
Function
decimalFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:611
↓ 2 callers
Method
decorate
decorate applies the InterpretableDecorator functions to the given Interpretable. Both the Interpretable and error generated by a Plan step are accept
interpreter/planner.go:112
↓ 2 callers
Function
doubleToInt64Checked
doubleToInt64Checked converts a double to an int64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:302
↓ 2 callers
Function
doubleToUint64Checked
doubleToInt64Checked converts a double to a uint64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:312
↓ 2 callers
Function
envOptionToConfig
(t *testing.T, name string, opts ...cel.EnvOption)
tools/compiler/compiler_test.go:359
↓ 2 callers
Function
envProtoToConfig
(pbEnv *configpb.Environment)
tools/compiler/compiler.go:270
↓ 2 callers
Function
equalMessage
(mx, my protoreflect.Message)
common/types/pb/equal.go:54
↓ 2 callers
Function
estimateListSortCost
estimateListSortCost estimates an O(n^2) sort operation with a cost factor of 2 for the equality operations which occur during the sort computation.
ext/lists.go:708
↓ 2 callers
Function
estimateTraversal
estimateTraversal computes cost as a function of the size of the target object and whether the call allocates memory.
ext/costs.go:44
↓ 2 callers
Method
eval
(t testing.TB, expr string)
policy/compiler_test.go:467
← previous
next →
1,101–1,200 of 7,240, ranked by callers