MCPcopy Create free account

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

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

↓ 15 callersFunctionPartialVars
PartialVars returns a PartialActivation which contains variables and a set of AttributePattern values that indicate variables or parts of variables wh
cel/program.go:114
↓ 15 callersFunctionPostOrderVisit
PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).
common/ast/navigable.go:175
↓ 15 callersMethodRegisterMessage
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 callersMethodSourceInfo
SourceInfo returns the source metadata associated with the parse / type-check passes.
common/ast/ast.go:43
↓ 15 callersFunctioninterpret
(t testing.TB, env *Env, expr string, vars any)
cel/cel_test.go:5234
↓ 15 callersMethodlocation
(e ast.Expr)
checker/checker.go:706
↓ 15 callersFunctionnewStandardInterpreter
newStandardInterpreter builds a Dispatcher and TypeProvider with support for all of the CEL builtins defined in the language definition.
interpreter/interpreter_test.go:2838
↓ 15 callersFunctionnewTestRegistry
(t testing.TB)
checker/env_test.go:98
↓ 15 callersMethodnextID
(tok token)
parser/pratt_parser.go:265
↓ 15 callersMethodnextMacroID
()
parser/helper.go:370
↓ 14 callersMethodEnterRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5919
↓ 14 callersMethodExitRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5925
↓ 14 callersMethodFunction
Function returns the name of the function being called.
common/cost/tracker.go:39
↓ 14 callersMethodHasTrait
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
↓ 14 callersMethodIsAssignableType
IsAssignableType determines whether the current type is type-check assignable from the input fromType.
common/types/types.go:314
↓ 14 callersMethodMultiply
Multiply returns the result of multiplying the current and input value.
common/types/traits/math.go:48
↓ 14 callersFunctionNewBuffer
NewBuffer returns an efficient implementation of Buffer for the given text based on the ranges of the encoded code points contained within.
common/runes/buffer.go:129
↓ 14 callersFunctionNewConfig
NewConfig creates an instance of a YAML/JSON serializable CEL environment configuration.
common/env/env.go:30
↓ 14 callersFunctionNewConstantFoldingOptimizer
NewConstantFoldingOptimizer creates an optimizer which inlines constant scalar an aggregate literal values within function calls and select statements
cel/folding.go:62
↓ 14 callersFunctionWithSizingStrategy
WithSizingStrategy sets the SizingStrategy used to resolve sizes during both cost estimation and runtime cost tracking. A nil strategy is ignored, le
common/cost/version.go:223
↓ 14 callersFunctionmustParseType
(t testing.TB, name string)
repl/evaluator_test.go:32
↓ 14 callersFunctionmustProgram
mustProgram compiles an expression and constructs a Program, separating EnvOptions and ProgramOptions.
cel/program_async_test.go:1088
↓ 14 callersFunctionnewFormatError
(id int64, msg string, args ...any)
ext/formatting.go:700
↓ 14 callersMethodnewID
(ctx any)
parser/helper.go:144
↓ 14 callersMethodreportSyntaxError
(ctx any, format string, args ...any)
parser/pratt_parser.go:332
↓ 13 callersFunctionElemTotal
ElemTotal creates an expression referencing the combined size of every element of a list, or every value of a map, under the sizing strategy in effect
common/cost/model.go:399
↓ 13 callersMethodEvaluate
Evaluate sets up a CEL evaluation using the current REPL context.
repl/evaluator.go:1461
↓ 13 callersMethodExtend
Extend creates a new Container with the existing settings and applies a series of ContainerOptions to further configure the new container.
common/containers/container.go:60
↓ 13 callersMethodID
ID value corresponding to the expression node.
interpreter/interpretable.go:32
↓ 13 callersMethodNewComprehension
NewComprehension creates an Expr value representing a one-variable comprehension over a value range.
common/ast/factory.go:31
↓ 13 callersMethodNewError
NewError associates an error message with a given expression id.
parser/macro.go:294
↓ 13 callersFunctionNewJSONList
NewJSONList returns a traits.Lister based on structpb.ListValue instance.
common/types/list.go:150
↓ 13 callersFunctionNewJSONStruct
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:64
↓ 13 callersFunctionNewLibrarySubset
NewLibrarySubset returns an empty library subsetting config which permits all library features.
common/env/env.go:523
↓ 13 callersFunctionNewNullableType
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:535
↓ 13 callersFunctionNewPartialAttributeFactory
NewPartialAttributeFactory returns an AttributeFactory implementation capable of performing AttributePattern matches with PartialActivation inputs.
interpreter/attribute_patterns.go:182
↓ 13 callersMethodNewStructField
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
↓ 13 callersFunctionNoSuchOverloadErr
NoSuchOverloadErr returns a new types.Err instance with a no such overload message.
common/types/err.go:89
↓ 13 callersMethodResolveCandidateNames
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 callersFunctionSafeMultiply
SafeMultiply returns the product of the input values, saturating at math.MaxUint64.
common/cost/cost.go:106
↓ 13 callersMethodSize
Size returns the actual runtime size of a value.
common/cost/model.go:79
↓ 13 callersMethodSourceInfo
SourceInfo returns the policy file metadata about expression positions.
policy/parser.go:83
↓ 13 callersMethodSpecifierFormat
SpecifierFormat returns the short text representation of the type. e.g. "map<string, int>"
common/env/env.go:876
↓ 13 callersMethodUpdateExpr
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:505
↓ 13 callersMethodadvance
(n int32)
parser/lexer.go:261
↓ 13 callersMethodnextID
()
cel/optimizer.go:223
↓ 12 callersMethodApproximateAggregateSize
ApproximateAggregateSize returns the aggregate size of the input value along with an indication of whether the computation was aborted due to the calc
common/types/size_calc.go:163
↓ 12 callersFunctionAttributePattern
AttributePattern returns an AttributePattern that matches a top-level variable. The pattern is mutable, and its methods support the specification of o
cel/program.go:178
↓ 12 callersMethodContextEval
ContextEval evaluates the program with a set of input variables and a context object in order to support cancellation and timeouts. This method must b
cel/program.go:59
↓ 12 callersFunctionEnablePrattParser
EnablePrattParser enables the Pratt parser implementation instead of the ANTLR parser.
parser/options.go:181
↓ 12 callersFunctionEqual
Equal returns whether the two ref.Value are heterogeneously equivalent.
common/types/util.go:41
↓ 12 callersMethodFindIdent
FindIdent takes a qualified identifier name and returns a ref.Val if one exists.
common/types/provider.go:51
↓ 12 callersMethodFold
Fold calls the FoldEntry method for each (key, value) pair in the map.
common/types/map.go:124
↓ 12 callersMethodGetName
GetName returns the fully qualified file path for the file.
common/types/pb/file.go:80
↓ 12 callersFunctionIntArg
IntArg creates an expression referencing the integer value of the argument at the given index. At runtime, an argument which is not an integer reads
common/cost/model.go:271
↓ 12 callersMethodLine
()
common/location.go:19
↓ 12 callersFunctionList
List creates an expression representing a list with the given length and element size. The estimate is the size the sizing strategy assigns to such a
common/cost/model.go:981
↓ 12 callersMethodMacroCalls
MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression node where the macro was inserted into the AST, and
common/ast/ast.go:318
↓ 12 callersFunctionManualEstimator
ManualEstimator sets a custom FunctionEstimator for an overload (or BeforeVersion entry) whose static estimate cannot be expressed declaratively with
common/cost/model.go:1133
↓ 12 callersMethodMaybeAttribute
MaybeAttribute creates an attribute that refers to either a field selection or a namespaced variable name. Only expressions which have not been type-
interpreter/attributes.go:49
↓ 12 callersFunctionNewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 12 callersMethodNewList
NewList creates a CreateList instruction where the list is comprised of the optional set of elements provided as arguments.
cel/macro.go:81
↓ 12 callersFunctionNewVariable
NewVariable returns a serializable variable from a name and type definition
common/env/env.go:244
↓ 12 callersMethodOverloadDecls
OverloadDecls returns the overload declarations in the order in which they were declared.
common/decls/decls.go:310
↓ 12 callersFunctionOverloadTracker
OverloadTracker binds an overload ID to a runtime FunctionTracker implementation. OverloadTracker instances augment or override ActualCostEstimator d
common/cost/tracker.go:102
↓ 12 callersMethodParent
Parent returns the parent expression node, if one exists.
common/ast/navigable.go:34
↓ 12 callersFunctionPopulateMacroCalls
PopulateMacroCalls ensures that the original call signatures replaced by expanded macros are preserved in the `SourceInfo` of parse result.
parser/options.go:132
↓ 12 callersMethodReflectType
ReflectType returns the backing Go reflect.Type associated with the struct (or nil if non-reflected).
common/types/struct.go:26
↓ 12 callersMethodSetConfig
SetConfig sets the set of map key-value pairs associated with this validator's configuration.
common/env/env.go:720
↓ 12 callersFunctionStringsVersion
StringsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equ
ext/strings.go:361
↓ 12 callersFunctionasyncReturning
asyncReturning returns an AsyncOp that immediately produces the given value, while counting the number of times the implementation is invoked.
interpreter/async_test.go:40
↓ 12 callersMethodcheck
(e ast.Expr)
checker/checker.go:82
↓ 12 callersFunctionmustAdaptToExpr
(e *exprpb.Expr)
cel/macro.go:540
↓ 12 callersMethodnewExpr
(ctx any)
parser/helper.go:151
↓ 12 callersFunctiontestIDGen
(seed int64)
common/ast/expr_test.go:506
↓ 12 callersFunctiontestNativeEnv
testEnv initializes the test environment common to all tests.
ext/native_test.go:1499
↓ 11 callersMethodAccuIdentName
AccuIdentName returns the name of the accumulator identifier.
parser/macro.go:276
↓ 11 callersMethodActualCost
ActualCost returns the runtime cost.
common/cost/tracker.go:173
↓ 11 callersMethodAddVariables
AddVariables adds one or more variables to the config.
common/env/env.go:132
↓ 11 callersMethodAsCELType
AsCELType converts the serializable object to a *types.Type value.
common/env/env.go:883
↓ 11 callersMethodContent
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
↓ 11 callersFunctionCostTrackerOptions
CostTrackerOptions configures a set of options for cost-tracking. Note, CostTrackerOptions is a no-op unless CostTracking is also enabled.
cel/options.go:923
↓ 11 callersMethodExpr
()
repl/parser/commands_parser.go:4558
↓ 11 callersFunctionExprTypeToType
ExprTypeToType converts a protobuf CEL type representation to a CEL-native type representation.
common/types/types.go:704
↓ 11 callersMethodFindStructFieldType
FindStructFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/provider.go:68
↓ 11 callersMethodFoldEntry
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
↓ 11 callersFunctionFunctionVars
FunctionVars returns a FunctionActivation combining the variable bindings from `vars` with the late-bound function implementations from `funcs`. Funct
cel/program.go:161
↓ 11 callersMethodGetFrom
GetFrom returns the accessor method associated with the field on the proto generated struct. If the field is not set, the proto default value is retu
common/types/pb/type.go:294
↓ 11 callersMethodGetMacroCall
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:329
↓ 11 callersMethodGetOffsetRange
GetOffsetRange retrieves an OffsetRange for the given expression id if one exists.
common/ast/ast.go:360
↓ 11 callersMethodIs
Is implements errors.Is.
common/types/err.go:160
↓ 11 callersMethodIsEquivalentType
IsEquivalentType indicates whether two types are equivalent. This check ignores type parameter type names.
common/types/types.go:279
↓ 11 callersFunctionListSizeEstimate
ListSizeEstimate returns a SizeEstimate for a list with the given list length and element size.
common/cost/cost.go:209
↓ 11 callersFunctionMultilineDescription
MultilineDescription combines multiple lines into a newline separated string.
common/doc.go:68
↓ 11 callersMethodNewAST
NewAST creates an AST from the current expression using the tracked source info which is modified and managed by the OptimizerContext.
cel/optimizer.go:274
↓ 11 callersMethodNewAccuIdent
NewAccuIdent creates an Expr value representing an accumulator identifier within a comprehension.
common/ast/factory.go:44
↓ 11 callersMethodNewComprehensionTwoVar
NewComprehensionTwoVar creates a new two-variable comprehension instruction. - iterRange represents the expression that resolves to a list or map whe
parser/macro.go:260
↓ 11 callersMethodNewComprehensionTwoVar
NewComprehensionTwoVar creates an Expr value representing a two-variable comprehension over a value range.
common/ast/factory.go:34
↓ 11 callersFunctionNewList
NewList returns a traits.Lister backed by a typed Go slice []T.
common/types/list.go:115
↓ 11 callersFunctionNewLocation
NewLocation creates a new location.
common/location.go:37
← previousnext →301–400 of 9,178, ranked by callers