MCPcopy Create free account

hub / github.com/cel-expr/cel-go / functions

Functions7,240 in github.com/cel-expr/cel-go

↓ 2 callersFunctionnormalizeIDs
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 callersMethodnormalizeIdent
normalizeIdent returns the interpreted identifier.
parser/parser.go:162
↓ 2 callersFunctionoctalFormatError
(id int64, badType string)
ext/formatting.go:683
↓ 2 callersFunctionoctalFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:623
↓ 2 callersFunctionoptionalDecls
(t *testing.T)
interpreter/prune_test.go:571
↓ 2 callersFunctionparseConfigYaml
(t *testing.T, doc string)
policy/config_test.go:244
↓ 2 callersFunctionparseFormatString
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 callersFunctionparseFormatStringV2
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 callersMethodparseTypeElem
()
common/env/io.go:161
↓ 2 callersFunctionpartialActivation
(in map[string]any, vars ...any)
interpreter/prune_test.go:543
↓ 2 callersMethodplanCheckedIdent
(id int64, identRef *ast.ReferenceInfo)
interpreter/planner.go:145
↓ 2 callersMethodpop
(varName string)
checker/cost.go:389
↓ 2 callersMethodpopLocalVar
(varName string)
checker/cost.go:460
↓ 2 callersFunctionprotoDeclToFunction
(decl *celpb.Decl)
tools/compiler/compiler.go:406
↓ 2 callersMethodpushLocalVar
(varName string, e ast.Expr)
checker/cost.go:448
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:849
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:951
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1081
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1149
↓ 2 callersMethodqualifyInternal
(vars Activation, obj any, presenceTest, presenceOnly bool)
interpreter/attributes.go:1261
↓ 2 callersFunctionquoteForCEL
quoteForCEL takes a formatted, unquoted value and quotes it in a manner suitable for embedding directly in CEL.
ext/formatting.go:189
↓ 2 callersFunctionreadPolicy
(t testing.TB, fileName string)
policy/helper_test.go:284
↓ 2 callersFunctionreadPolicyConfig
(t testing.TB, fileName string)
policy/helper_test.go:293
↓ 2 callersFunctionreadTestSuite
(t testing.TB, fileName string)
policy/helper_test.go:307
↓ 2 callersFunctionreflectTypeOf
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 callersFunctionregisterFiles
(reg protoTypeRegistry, files *protoregistry.Files)
cel/options.go:428
↓ 2 callersMethodrelSource
(pstr ValueString)
policy/compiler.go:471
↓ 2 callersMethodrelation
(_p int)
parser/gen/cel_parser.go:1347
↓ 2 callersMethodrelation
(_p int)
repl/parser/commands_parser.go:5305
↓ 2 callersMethodrelativeAttr
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 callersMethodrelease
(activation Activation)
interpreter/frame.go:227
↓ 2 callersFunctionreleaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1483
↓ 2 callersMethodrenumberIDs
(IDGenerator)
common/ast/expr.go:317
↓ 2 callersMethodresolveSimpleIdent
resolveSimpleIdent determines the resolved attribute for a single identifier.
checker/env.go:152
↓ 2 callersMethodrewriteVariableName
(ctx *cel.OptimizerContext)
policy/composer.go:238
↓ 2 callersFunctionrlocation
(path string)
conformance/policy/policy_conformance_test.go:288
↓ 2 callersMethodrun
(t *testing.T)
policy/compiler_test.go:355
↓ 2 callersFunctionruntimeTypeAgrees
(env *cel.Env, val ref.Val, declType *envlib.TypeDesc)
repl/evaluator.go:95
↓ 2 callersMethodsanitizeMacro
(macroID int64, macroExpr ast.Expr)
cel/optimizer.go:566
↓ 2 callersFunctionscientificFormatError
(id int64, badType string)
ext/formatting.go:687
↓ 2 callersFunctionscientificFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:627
↓ 2 callersFunctionsimplePkgAlias
(pkgPath string)
ext/native.go:781
↓ 2 callersFunctionsortListByAssociatedKeys
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 callersFunctionstringFormatError
(id int64, badType string)
ext/formatting.go:691
↓ 2 callersFunctionstringFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:631
↓ 2 callersFunctionstringOrError
(str string, err error)
ext/guards.go:39
↓ 2 callersFunctionstripWhitespace
(a string)
repl/evaluator_test.go:1397
↓ 2 callersFunctiontestCases
(t testing.TB)
checker/checker_test.go:37
↓ 2 callersFunctiontestCompile
(t testing.TB, env *Env, expr string, want any)
cel/decls_test.go:992
↓ 2 callersFunctiontestFds
(t *testing.T)
cel/prompt_test.go:49
↓ 2 callersFunctiontestFunction
(t *testing.T, name string, opts ...FunctionOpt)
common/decls/decls_test.go:1387
↓ 2 callersFunctiontestListsEnv
(t *testing.T, opts ...cel.EnvOption)
ext/lists_test.go:510
↓ 2 callersFunctiontestParse
(t testing.TB, env *Env, expr string, want any)
cel/decls_test.go:965
↓ 2 callersFunctiontestSetsEnv
(t *testing.T, opts ...cel.EnvOption)
ext/sets_test.go:478
↓ 2 callersMethodtoExpr
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 callersFunctiontraverseAndCalculateCoverage
(t *testing.T, expr ast.NavigableExpr, p Program, logUnencountered bool, preceedingTabs string, cr *coverageR
tools/celtest/test_coverage_reporter.go:67
↓ 2 callersFunctiontryParse
(t testing.TB, s string)
repl/parser/commands_test.go:34
↓ 2 callersFunctiontypeAssignable
(env *cel.Env, rtType ref.Type, declType *envlib.TypeDesc)
repl/evaluator.go:104
↓ 2 callersFunctionuint64ToInt64Checked
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 callersFunctionunescape
Unescape takes a quoted string, unquotes, and unescapes it. This function performs escaping compatible with GoogleSQL.
parser/unescape.go:26
↓ 2 callersFunctionunquote
(s string)
ext/strings_test.go:462
↓ 2 callersMethodunquote
(ctx any, value string, isBytes bool)
parser/parser.go:881
↓ 2 callersFunctionunwrap
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 callersFunctionunwrapDynamic
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 callersFunctionvalidateIterator123
(t *testing.T, list traits.Lister)
common/types/list_test.go:895
↓ 2 callersFunctionvalidateList123
(t *testing.T, list traits.Lister)
common/types/list_test.go:877
↓ 2 callersMethodvalidatedDeclarations
validatedDeclarations returns a reference to the validated variable and function declaration scope stack. must be copied before use.
checker/env.go:319
↓ 2 callersFunctionverifySourceInfoCoverage
(t testing.TB, policy *Policy, ast *cel.Ast)
policy/compiler_test.go:543
↓ 2 callersFunctionverifySourceInfoTransfer
verifySourceInfoTransfer checks that each offset range in the compiledRule has a corresponding node in composed
policy/composer_test.go:99
↓ 2 callersMethodvisitCallIndexInternal
(expr ast.Expr, op string)
parser/unparser.go:247
↓ 2 callersMethodvisitExprList
(ctx gen.IExprListContext)
parser/parser.go:838
↓ 2 callersMethodvisitSelectInternal
(operand ast.Expr, testOnly bool, op string, field string)
parser/unparser.go:378
↓ 2 callersFunctionwrapErr
(id int64, message string, err error)
cel/macro.go:369
↓ 2 callersMethodwriteOperatorWithWrapping
writeOperatorWithWrapping outputs the operator and inserts a newline for operators configured in the unparser options.
parser/unparser.go:541
↓ 1 callersMethodAbsoluteAttribute
AbsoluteAttribute implementation of the AttributeFactory interface which wraps the NamespacedAttribute resolution in an internal attributeMatcher obje
interpreter/attribute_patterns.go:202
↓ 1 callersMethodAbsoluteAttribute
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 callersMethodAccuIdent
AccuIdent returns an accumulator identifier for use with comprehension results.
cel/macro.go:124
↓ 1 callersMethodAccuIdentName
()
common/ast/factory.go:159
↓ 1 callersMethodAccuInit
()
common/ast/expr.go:558
↓ 1 callersMethodActualCost
ActualCost returns the runtime cost
interpreter/runtimecost.go:250
↓ 1 callersMethodAddIdent
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 callersMethodAddImport
AddImport adds an import to the policy.
policy/parser.go:105
↓ 1 callersMethodAddVariable
AddVariable adds a variable to the rule.
policy/parser.go:236
↓ 1 callersMethodAddVariables
AddVariables adds a list of variables to the rule.
policy/parser.go:241
↓ 1 callersMethodAlias
Alias returns the alias to use when performing cel.bind() calls during inlining.
cel/inlining.go:40
↓ 1 callersFunctionAlphaProtoAsDeclaration
AlphaProtoAsDeclaration converts a v1alpha1.Decl value describing a variable or function into an EnvOption.
cel/decls.go:378
↓ 1 callersFunctionAlphaProtoAsType
AlphaProtoAsType converts a CEL v1alpha1.Type protobuf type to a CEL-native type representation.
common/types/types.go:683
↓ 1 callersFunctionAlphaProtoAsValue
AlphaProtoAsValue converts between google.api.expr.v1alpha1.Value and ref.Val.
cel/io.go:273
↓ 1 callersFunctionAlphaProtoConstantAsVal
AlphaProtoConstantAsVal converts a v1alpha1.Constant protobuf to a CEL-native ref.Val.
common/ast/conversion.go:669
↓ 1 callersMethodArgs
()
common/ast/expr.go:500
↓ 1 callersFunctionArity
Arity returns the number of argument the operator takes -1 is returned if an undefined symbol is provided
common/operators/operators.go:151
↓ 1 callersMethodAsFunctionOption
AsFunctionOption converts the serializable form of the Overload into a function declaration option.
common/env/env.go:441
↓ 1 callersFunctionAuthoringPromptWithFieldPaths
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 callersMethodBinary
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 callersMethodBuffer
Buffer pushes an expression into an internal queue of expressions to write to a string.
common/debug/debug.go:43
↓ 1 callersFunctionCELLexerInit
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 callersFunctionCELParserInit
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 callersMethodCalc_Sempred
(localctx antlr.RuleContext, predIndex int)
parser/gen/cel_parser.go:6170
↓ 1 callersMethodCalc_Sempred
(localctx antlr.RuleContext, predIndex int)
repl/parser/commands_parser.go:10128
↓ 1 callersMethodCallCost
(function, overloadID string, args []ref.Val, result ref.Val)
interpreter/runtimecost.go:35
← previousnext →1,301–1,400 of 7,240, ranked by callers