MCPcopy Create free account

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

Functions9,178 in github.com/cel-expr/cel-go

↓ 1 callersFunctionobserveAll
observeAll returns an EvalObserver which reports each observation to all of the observers.
interpreter/planner.go:103
↓ 1 callersFunctionoperandLiteral
operandLiteral returns the value of an Arg or Target operand which is a literal.
common/cost/helper.go:115
↓ 1 callersMethodoperandNode
(e QuantityExpr)
common/cost/helper.go:111
↓ 1 callersFunctionoptString
(m map[string]any, key string)
ext/security/jwt/jwt.go:426
↓ 1 callersMethodoptimizeRule
(ctx *cel.OptimizerContext, r *CompiledRule, asList bool)
policy/composer.go:188
↓ 1 callersFunctionoptionalChainExprs
optionalChainExprs are chains which stop at the optional itself.
common/cost/cost_bounds_test.go:410
↓ 1 callersFunctionoptionalExprs
optionalExprs returns optional `or` / `orValue` chains to check. These short-circuit: the receiver is always evaluated, but every alternative after i
common/cost/cost_bounds_test.go:405
↓ 1 callersFunctionoptionalLiteralValue
optionalLiteralValue returns the value an optional list element contributes: nothing for optional.none(), the argument of optional.of(x) or optional.o
common/cost/default_strategy.go:535
↓ 1 callersFunctionoptionalValueOf
optionalValueOf reports whether value is an optional, and if so returns the value it holds, or nil when the optional is empty.
common/cost/default_strategy.go:290
↓ 1 callersFunctionoptionalValueSize
optionalValueSize returns the size of the value being compared, unwrapping nested optional values to the value they contain, and reporting a size of 1
cel/library.go:784
↓ 1 callersMethodoptionalValueSize
optionalValueSize estimates the value an optional-typed expression holds from the size hints for its path and the value's type.
common/cost/estimator.go:675
↓ 1 callersFunctionoverlappingIdentifierError
(name string)
checker/env.go:374
↓ 1 callersFunctionoverlappingMacroError
(name string, argCount int)
checker/env.go:378
↓ 1 callersFunctionpackAny
(t *testing.T, m proto.Message)
common/types/pb/equal_test.go:357
↓ 1 callersMethodparse
(expr runes.Buffer, desc string)
parser/antlr_parser.go:249
↓ 1 callersMethodparse
()
parser/pratt_parser.go:445
↓ 1 callersFunctionparseAndComposeRule
(t testing.TB, policyYAML, filename string, composerOpts ...ComposerOption)
policy/composer_test.go:293
↓ 1 callersFunctionparseAndFormatClause
parseAndFormatClause parses the format clause at the start of the given string with val, and returns how many characters were consumed and the substit
ext/formatting.go:831
↓ 1 callersFunctionparseAndFormatClauseV2
parseAndFormatClause parses the format clause at the start of the given string with val, and returns how many characters were consumed and the substit
ext/formatting_v2.go:721
↓ 1 callersMethodparseBytesLiteral
()
parser/pratt_parser.go:1117
↓ 1 callersMethodparseConcreteType
()
common/env/io.go:270
↓ 1 callersFunctionparseCustomPolicyVariableType
(t string)
tools/celtest/test_runner_test.go:139
↓ 1 callersMethodparseDoubleLiteral
()
parser/pratt_parser.go:1085
↓ 1 callersFunctionparseEnv
(t *testing.T, name, path string)
tools/compiler/compiler_test.go:353
↓ 1 callersFunctionparseFormattingClause
(formatStr string, callback formatStringInterpolator, maxPrecision int)
ext/formatting.go:846
↓ 1 callersFunctionparseFormattingClauseV2
(formatStr string, callback formatStringInterpolatorV2, maxPrecision int)
ext/formatting_v2.go:736
↓ 1 callersMethodparseIdentOrCall
(canBeStructName *bool)
parser/pratt_parser.go:968
↓ 1 callersMethodparseIdentifier
()
common/env/io.go:339
↓ 1 callersMethodparseImport
(ctx ParserContext, _ *Policy, node *yaml.Node)
policy/parser.go:780
↓ 1 callersMethodparseImports
(ctx ParserContext, policy *Policy, node *yaml.Node)
policy/parser.go:770
↓ 1 callersMethodparseIntLiteral
()
parser/pratt_parser.go:1037
↓ 1 callersMethodparseList
()
parser/pratt_parser.go:899
↓ 1 callersMethodparseLogicalChain
parseLogicalChain parses a run of '&&' or '||' operators following lhs, which is lhsDepth deep, and leaves the depth of the resulting expression in la
parser/pratt_parser.go:546
↓ 1 callersMethodparseMap
()
parser/pratt_parser.go:932
↓ 1 callersMethodparseMatches
(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
policy/parser.go:890
↓ 1 callersMethodparseNamespaceIdentifier
()
common/env/io.go:314
↓ 1 callersMethodparseNegativeDoubleLiteral
(opID int64)
parser/pratt_parser.go:1096
↓ 1 callersMethodparseNegativeIntLiteral
(opID int64)
parser/pratt_parser.go:1053
↓ 1 callersFunctionparsePrecision
(formatStr string, maxPrecision int)
ext/formatting.go:875
↓ 1 callersFunctionparsePrecisionV2
(formatStr string, maxPrecision int)
ext/formatting_v2.go:765
↓ 1 callersMethodparsePrimary
(canBeStructName *bool)
parser/pratt_parser.go:812
↓ 1 callersMethodparseSelectorChain
()
parser/pratt_parser.go:560
↓ 1 callersMethodparseSignaturePrefix
(sig string)
ext/security/hmac/hmac.go:365
↓ 1 callersMethodparseStringLiteral
()
parser/pratt_parser.go:1106
↓ 1 callersMethodparseStruct
(objID int64, structName string)
parser/pratt_parser.go:706
↓ 1 callersMethodparseTernary
parseTernary parses the branches of a conditional whose condition, lhs, is condDepth deep, and leaves the depth of the conditional in lastParsedDepth.
parser/pratt_parser.go:526
↓ 1 callersMethodparseTypeParamIdent
()
common/env/io.go:360
↓ 1 callersMethodparseUintLiteral
()
parser/pratt_parser.go:1068
↓ 1 callersMethodparseUnaryOps
()
parser/pratt_parser.go:743
↓ 1 callersMethodparseVariableInline
(ctx ParserContext, _ *Policy, v *Variable, node *yaml.Node)
policy/parser.go:857
↓ 1 callersMethodparseVariableObject
(ctx ParserContext, policy *Policy, v *Variable, node *yaml.Node)
policy/parser.go:873
↓ 1 callersMethodparseVariables
(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
policy/parser.go:834
↓ 1 callersMethodparseYAML
(src *Source)
policy/parser.go:596
↓ 1 callersMethodparseYAMLConfig
(conf []byte)
repl/evaluator.go:917
↓ 1 callersMethodplanCall
planCall creates a callable Interpretable while specializing for common functions and invocation patterns. Specifically, conditional operators &&, ||,
interpreter/planner.go:257
↓ 1 callersMethodplanCallAsync
planCallAsync generates an asynchronous callable Interpretable.
interpreter/planner.go:364
↓ 1 callersMethodplanCallBinary
planCallBinary generates a binary callable Interpretable.
interpreter/planner.go:426
↓ 1 callersMethodplanCallConditional
planCallConditional generates a conditional / ternary (c ? t : f) Interpretable.
interpreter/planner.go:517
↓ 1 callersMethodplanCallEqual
planCallEqual generates an equals (==) Interpretable.
interpreter/planner.go:483
↓ 1 callersMethodplanCallIndex
planCallIndex either extends an attribute with the argument to the index operation, or creates a relative attribute based on the return of a function
interpreter/planner.go:545
↓ 1 callersMethodplanCallLateBound
planCallLateBound generates a late-bound callable Interpretable.
interpreter/planner.go:342
↓ 1 callersMethodplanCallLogicalAnd
planCallLogicalAnd generates a logical and (&&) Interpretable.
interpreter/planner.go:501
↓ 1 callersMethodplanCallLogicalOr
planCallLogicalOr generates a logical or (||) Interpretable.
interpreter/planner.go:509
↓ 1 callersMethodplanCallNotEqual
planCallNotEqual generates a not equals (!=) Interpretable.
interpreter/planner.go:492
↓ 1 callersMethodplanCallUnary
planCallUnary generates a unary callable Interpretable.
interpreter/planner.go:398
↓ 1 callersMethodplanCallVarArgs
planCallVarArgs generates a variable argument callable Interpretable.
interpreter/planner.go:455
↓ 1 callersMethodplanCallZero
planCallZero generates a zero-arity callable Interpretable.
interpreter/planner.go:382
↓ 1 callersMethodplanComprehension
planComprehension generates an Interpretable fold operation.
interpreter/planner.go:677
↓ 1 callersMethodplanConst
planConst generates a constant valued Interpretable.
interpreter/planner.go:815
↓ 1 callersMethodplanCreateList
planCreateList generates a list construction Interpretable.
interpreter/planner.go:580
↓ 1 callersMethodplanCreateMap
planCreateStruct generates a map or object construction Interpretable.
interpreter/planner.go:609
↓ 1 callersMethodplanCreateStruct
planCreateObj generates an object construction Interpretable.
interpreter/planner.go:643
↓ 1 callersMethodplanIdent
planIdent creates an Interpretable that resolves an identifier from an Activation.
interpreter/planner.go:153
↓ 1 callersMethodplanSelect
planSelect creates an Interpretable with either: a) selects a field from a map or proto. b) creates a field presence test for a select within a has
interpreter/planner.go:201
↓ 1 callersMethodpop
()
cel/fieldpaths.go:45
↓ 1 callersMethodpopIgnored
(prev int)
common/ast/equiv.go:175
↓ 1 callersMethodpopLocalVars
(names ...string)
interpreter/planner.go:964
↓ 1 callersFunctionprimitiveType
(primitive celpb.Type_PrimitiveType)
common/types/types.go:851
↓ 1 callersFunctionprintCoverageReport
(t *testing.T, exprString string, cr *coverageReport)
tools/celtest/test_coverage_reporter.go:129
↓ 1 callersFunctionpropagateVisitedness
propagateVisitedness implements two rules for extending the coverage report: - If a node is visited, all its ancestors are visited. - If a node is vis
tools/celtest/test_runner.go:1072
↓ 1 callersFunctionprotoCall
(id int64, call CallExpr)
common/ast/conversion.go:327
↓ 1 callersFunctionprotoComprehension
(id int64, comp ComprehensionExpr)
common/ast/conversion.go:356
↓ 1 callersFunctionprotoDeclToFunctionsAndVariables
(declarations []*celpb.Decl)
tools/compiler/compiler.go:339
↓ 1 callersFunctionprotoIdent
(id int64, name string)
common/ast/conversion.go:394
↓ 1 callersFunctionprotoList
(id int64, list ListExpr)
common/ast/conversion.go:405
↓ 1 callersFunctionprotoLiteral
(id int64, val ref.Val)
common/ast/conversion.go:425
↓ 1 callersFunctionprotoMap
(id int64, m MapExpr)
common/ast/conversion.go:438
↓ 1 callersFunctionprotoMapEntry
(id int64, e MapEntry)
common/ast/conversion.go:457
↓ 1 callersFunctionprotoSelect
(id int64, s SelectExpr)
common/ast/conversion.go:476
↓ 1 callersFunctionprotoStruct
(id int64, s StructExpr)
common/ast/conversion.go:493
↓ 1 callersFunctionprotoStructField
(id int64, f StructField)
common/ast/conversion.go:513
↓ 1 callersMethodprune
(node ast.Expr)
interpreter/prune.go:271
↓ 1 callersFunctionpruneDuplicateDecls
(conf *env.Config)
repl/evaluator.go:835
↓ 1 callersFunctionpruneOptionalElements
pruneOptionalElements works from the bottom up to resolve optional elements within aggregate literals. Note, many aggregate literals will be resolved
cel/folding.go:343
↓ 1 callersFunctionpruneOptionalListElements
(ctx *OptimizerContext, e ast.Expr)
cel/folding.go:357
↓ 1 callersFunctionpruneOptionalMapEntries
(ctx *OptimizerContext, e ast.Expr)
cel/folding.go:394
↓ 1 callersFunctionpruneOptionalStructFields
(ctx *OptimizerContext, e ast.Expr)
cel/folding.go:438
↓ 1 callersFunctionptr
(v T)
common/cost/optional_test.go:179
↓ 1 callersMethodpush
(pathStep string, celType *Type)
cel/fieldpaths.go:40
↓ 1 callersMethodpushIgnored
(comp1, comp2 ComprehensionExpr)
common/ast/equiv.go:151
← previousnext →3,401–3,500 of 9,178, ranked by callers