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
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:134
↓ 2 callers
Method
normalizeIdent
normalizeIdent returns the interpreted identifier.
parser/parser.go:162
↓ 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
optionalDecls
(t *testing.T)
interpreter/prune_test.go:571
↓ 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
parseTypeElem
()
common/env/io.go:161
↓ 2 callers
Function
partialActivation
(in map[string]any, vars ...any)
interpreter/prune_test.go:543
↓ 2 callers
Method
planCheckedIdent
(id int64, identRef *ast.ReferenceInfo)
interpreter/planner.go:145
↓ 2 callers
Method
pop
(varName string)
checker/cost.go:389
↓ 2 callers
Method
popLocalVar
(varName string)
checker/cost.go:460
↓ 2 callers
Function
protoDeclToFunction
(decl *celpb.Decl)
tools/compiler/compiler.go:406
↓ 2 callers
Method
pushLocalVar
(varName string, e ast.Expr)
checker/cost.go:448
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:849
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:951
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1081
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1149
↓ 2 callers
Method
qualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1261
↓ 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
Function
readPolicy
(t testing.TB, fileName string)
policy/helper_test.go:284
↓ 2 callers
Function
readPolicyConfig
(t testing.TB, fileName string)
policy/helper_test.go:293
↓ 2 callers
Function
readTestSuite
(t testing.TB, fileName string)
policy/helper_test.go:307
↓ 2 callers
Function
reflectTypeOf
reflectTypeOf intercepts the reflect.Type call to ensure that dynamicpb.Message types preserve well-known protobuf reflected types expected by the CEL
common/types/pb/type.go:614
↓ 2 callers
Function
registerFiles
(reg protoTypeRegistry, files *protoregistry.Files)
cel/options.go:428
↓ 2 callers
Method
relSource
(pstr ValueString)
policy/compiler.go:471
↓ 2 callers
Method
relation
(_p int)
parser/gen/cel_parser.go:1347
↓ 2 callers
Method
relation
(_p int)
repl/parser/commands_parser.go:5305
↓ 2 callers
Method
relativeAttr
relativeAttr indicates that the attribute in this case acts as a qualifier and as such needs to be observed to ensure that it's evaluation value is pr
interpreter/planner.go:729
↓ 2 callers
Method
release
(activation Activation)
interpreter/frame.go:227
↓ 2 callers
Function
releaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1483
↓ 2 callers
Method
renumberIDs
(IDGenerator)
common/ast/expr.go:317
↓ 2 callers
Method
resolveSimpleIdent
resolveSimpleIdent determines the resolved attribute for a single identifier.
checker/env.go:152
↓ 2 callers
Method
rewriteVariableName
(ctx *cel.OptimizerContext)
policy/composer.go:238
↓ 2 callers
Function
rlocation
(path string)
conformance/policy/policy_conformance_test.go:288
↓ 2 callers
Method
run
(t *testing.T)
policy/compiler_test.go:355
↓ 2 callers
Function
runtimeTypeAgrees
(env *cel.Env, val ref.Val, declType *envlib.TypeDesc)
repl/evaluator.go:95
↓ 2 callers
Method
sanitizeMacro
(macroID int64, macroExpr ast.Expr)
cel/optimizer.go:566
↓ 2 callers
Function
scientificFormatError
(id int64, badType string)
ext/formatting.go:687
↓ 2 callers
Function
scientificFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:627
↓ 2 callers
Function
simplePkgAlias
(pkgPath string)
ext/native.go:781
↓ 2 callers
Function
sortListByAssociatedKeys
Internal function used for the implementation of sort() and sortBy(). Sorts a list of arbitrary elements, according to the order produced by sorting
ext/lists.go:508
↓ 2 callers
Function
stringFormatError
(id int64, badType string)
ext/formatting.go:691
↓ 2 callers
Function
stringFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:631
↓ 2 callers
Function
stringOrError
(str string, err error)
ext/guards.go:39
↓ 2 callers
Function
stripWhitespace
(a string)
repl/evaluator_test.go:1397
↓ 2 callers
Function
testCases
(t testing.TB)
checker/checker_test.go:37
↓ 2 callers
Function
testCompile
(t testing.TB, env *Env, expr string, want any)
cel/decls_test.go:992
↓ 2 callers
Function
testFds
(t *testing.T)
cel/prompt_test.go:49
↓ 2 callers
Function
testFunction
(t *testing.T, name string, opts ...FunctionOpt)
common/decls/decls_test.go:1387
↓ 2 callers
Function
testListsEnv
(t *testing.T, opts ...cel.EnvOption)
ext/lists_test.go:510
↓ 2 callers
Function
testParse
(t testing.TB, env *Env, expr string, want any)
cel/decls_test.go:965
↓ 2 callers
Function
testSetsEnv
(t *testing.T, opts ...cel.EnvOption)
ext/sets_test.go:478
↓ 2 callers
Method
toExpr
toExpr renders the logic graph into an Expr value, either balancing a tree of logical operations or creating a variadic representation of the logical
parser/helper.go:294
↓ 2 callers
Function
traverseAndCalculateCoverage
(t *testing.T, expr ast.NavigableExpr, p Program, logUnencountered bool, preceedingTabs string, cr *coverageR
tools/celtest/test_coverage_reporter.go:67
↓ 2 callers
Function
tryParse
(t testing.TB, s string)
repl/parser/commands_test.go:34
↓ 2 callers
Function
typeAssignable
(env *cel.Env, rtType ref.Type, declType *envlib.TypeDesc)
repl/evaluator.go:104
↓ 2 callers
Function
uint64ToInt64Checked
uint64ToInt64Checked converts a uint64 to an int64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:392
↓ 2 callers
Function
unescape
Unescape takes a quoted string, unquotes, and unescapes it. This function performs escaping compatible with GoogleSQL.
parser/unescape.go:26
↓ 2 callers
Function
unquote
(s string)
ext/strings_test.go:462
↓ 2 callers
Method
unquote
(ctx any, value string, isBytes bool)
parser/parser.go:881
↓ 2 callers
Function
unwrap
unwrap unwraps the provided proto.Message value, potentially based on the description if the input message is a *dynamicpb.Message which obscures the
common/types/pb/type.go:441
↓ 2 callers
Function
unwrapDynamic
unwrapDynamic unwraps a reflected protobuf Message value. Returns the unwrapped value and 'true' if unwrapped, otherwise the input value and 'false'.
common/types/pb/type.go:524
↓ 2 callers
Function
validateIterator123
(t *testing.T, list traits.Lister)
common/types/list_test.go:895
↓ 2 callers
Function
validateList123
(t *testing.T, list traits.Lister)
common/types/list_test.go:877
↓ 2 callers
Method
validatedDeclarations
validatedDeclarations returns a reference to the validated variable and function declaration scope stack. must be copied before use.
checker/env.go:319
↓ 2 callers
Function
verifySourceInfoCoverage
(t testing.TB, policy *Policy, ast *cel.Ast)
policy/compiler_test.go:543
↓ 2 callers
Function
verifySourceInfoTransfer
verifySourceInfoTransfer checks that each offset range in the compiledRule has a corresponding node in composed
policy/composer_test.go:99
↓ 2 callers
Method
visitCallIndexInternal
(expr ast.Expr, op string)
parser/unparser.go:247
↓ 2 callers
Method
visitExprList
(ctx gen.IExprListContext)
parser/parser.go:838
↓ 2 callers
Method
visitSelectInternal
(operand ast.Expr, testOnly bool, op string, field string)
parser/unparser.go:378
↓ 2 callers
Function
wrapErr
(id int64, message string, err error)
cel/macro.go:369
↓ 2 callers
Method
writeOperatorWithWrapping
writeOperatorWithWrapping outputs the operator and inserts a newline for operators configured in the unparser options.
parser/unparser.go:541
↓ 1 callers
Method
AbsoluteAttribute
AbsoluteAttribute implementation of the AttributeFactory interface which wraps the NamespacedAttribute resolution in an internal attributeMatcher obje
interpreter/attribute_patterns.go:202
↓ 1 callers
Method
AbsoluteAttribute
AbsoluteAttribute refers to a variable value and an optional qualifier path. The namespaceNames represent the names the variable could have based on
interpreter/attributes.go:168
↓ 1 callers
Method
AccuIdent
AccuIdent returns an accumulator identifier for use with comprehension results.
cel/macro.go:124
↓ 1 callers
Method
AccuIdentName
()
common/ast/factory.go:159
↓ 1 callers
Method
AccuInit
()
common/ast/expr.go:558
↓ 1 callers
Method
ActualCost
ActualCost returns the runtime cost
interpreter/runtimecost.go:250
↓ 1 callers
Method
AddIdent
AddIdent adds the ident Decl in the current scope. Note: If the name collides with an existing identifier in the scope, the Decl is overwritten.
checker/scopes.go:73
↓ 1 callers
Method
AddImport
AddImport adds an import to the policy.
policy/parser.go:105
↓ 1 callers
Method
AddVariable
AddVariable adds a variable to the rule.
policy/parser.go:236
↓ 1 callers
Method
AddVariables
AddVariables adds a list of variables to the rule.
policy/parser.go:241
↓ 1 callers
Method
Alias
Alias returns the alias to use when performing cel.bind() calls during inlining.
cel/inlining.go:40
↓ 1 callers
Function
AlphaProtoAsDeclaration
AlphaProtoAsDeclaration converts a v1alpha1.Decl value describing a variable or function into an EnvOption.
cel/decls.go:378
↓ 1 callers
Function
AlphaProtoAsType
AlphaProtoAsType converts a CEL v1alpha1.Type protobuf type to a CEL-native type representation.
common/types/types.go:683
↓ 1 callers
Function
AlphaProtoAsValue
AlphaProtoAsValue converts between google.api.expr.v1alpha1.Value and ref.Val.
cel/io.go:273
↓ 1 callers
Function
AlphaProtoConstantAsVal
AlphaProtoConstantAsVal converts a v1alpha1.Constant protobuf to a CEL-native ref.Val.
common/ast/conversion.go:669
↓ 1 callers
Method
Args
()
common/ast/expr.go:500
↓ 1 callers
Function
Arity
Arity returns the number of argument the operator takes -1 is returned if an undefined symbol is provided
common/operators/operators.go:151
↓ 1 callers
Method
AsFunctionOption
AsFunctionOption converts the serializable form of the Overload into a function declaration option.
common/env/env.go:441
↓ 1 callers
Function
AuthoringPromptWithFieldPaths
AuthoringPromptWithFieldPaths creates a prompt template from a CEL environment for the purpose of AI-assisted authoring. Includes documentation for al
cel/prompt.go:85
↓ 1 callers
Method
Binary
Binary takes a ref.Val and a string representing the current locale identifier and returns the Val formatted as a binary integer, or an error if one o
ext/formatting.go:760
↓ 1 callers
Method
Buffer
Buffer pushes an expression into an internal queue of expressions to write to a string.
common/debug/debug.go:43
↓ 1 callers
Function
CELLexerInit
CELLexerInit initializes any static state used to implement CELLexer. By default the static state used to implement the lexer is lazily initialized du
parser/gen/cel_lexer.go:289
↓ 1 callers
Function
CELParserInit
CELParserInit initializes any static state used to implement CELParser. By default the static state used to implement the parser is lazily initialized
parser/gen/cel_parser.go:187
↓ 1 callers
Method
Calc_Sempred
(localctx antlr.RuleContext, predIndex int)
parser/gen/cel_parser.go:6170
↓ 1 callers
Method
Calc_Sempred
(localctx antlr.RuleContext, predIndex int)
repl/parser/commands_parser.go:10128
↓ 1 callers
Method
CallCost
(function, overloadID string, args []ref.Val, result ref.Val)
interpreter/runtimecost.go:35
← previous
next →
1,301–1,400 of 7,240, ranked by callers