MCPcopy Create free account

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

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

↓ 16 callersFunctionNewTypeDesc
NewTypeDesc describes a simple or complex type with parameters.
common/env/env.go:778
↓ 16 callersFunctionmakeQualifier
(t testing.TB, attrs AttributeFactory, fieldType *types.Type, qualID int64, val any)
interpreter/attributes_test.go:1337
↓ 15 callersMethodAddLetVar
AddLetVar adds a let variable to the evaluation context. The expression is planned but evaluated lazily.
repl/evaluator.go:612
↓ 15 callersMethodArgTypes
ArgTypes contains the set of argument types expected by the overload. For member functions ArgTypes[0] represents the member operand type.
common/decls/decls.go:686
↓ 15 callersMethodCELTypeProvider
CELTypeProvider returns the `types.Provider` configured for the environment.
cel/env.go:745
↓ 15 callersFunctionCompare
Compare compares two strings, a for actual, e for expected, and returns true or false. The comparison is done, by filtering out whitespace (i.e. space
test/compare.go:24
↓ 15 callersMethodDescription
Description gives a brief description of the source. Example descriptions are a file name or ui element.
common/source.go:32
↓ 15 callersMethodFunction
Function name to match.
parser/macro.go:103
↓ 15 callersFunctionFunctions
Functions returns the set of standard library function declarations and definitions for CEL.
common/stdlib/standard.go:903
↓ 15 callersMethodGetId
GetId returns the id rule contexts.
repl/parser/commands_parser.go:1568
↓ 15 callersMethodIterVar
IterVar returns the iteration variable name. For one-variable comprehensions, the iter var refers to the element value when iterating over a list, or
common/ast/expr.go:278
↓ 15 callersMethodMerge
Merge combines an existing function declaration with another. If a function is extended, by say adding new overloads to an existing function, then it
common/decls/decls.go:143
↓ 15 callersMethodNewInterpretable
NewInterpretable creates an InterpretableV2 from a checked expression and an optional list of PlannerOption values.
interpreter/interpreter.go:36
↓ 15 callersMethodNewList
NewList creates a list literal instruction with an optional set of elements.
parser/macro.go:205
↓ 15 callersFunctionNewOptionalType
NewOptionalType creates an abstract parameterized type instance corresponding to CEL's notion of optional.
common/types/types.go:525
↓ 15 callersFunctionNewSourceInfo
NewSourceInfo creates a simple SourceInfo object from an input common.Source value.
common/ast/ast.go:201
↓ 15 callersMethodOptionalIndices
OptionalIndicies returns the list of optional indices in the list literal.
common/ast/expr.go:185
↓ 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 callersMethodResolveName
ResolveName returns a value from the activation by qualified name, or false if the name could not be found.
interpreter/activation.go:30
↓ 15 callersMethodnextMacroID
()
parser/helper.go:333
↓ 15 callersFunctionrangedSizeEstimate
(min, max uint64)
ext/costs.go:88
↓ 15 callersFunctionsafeAdd
(x, y uint64, rest ...uint64)
ext/costs.go:106
↓ 14 callersMethodArgs
Args returns the normalized arguments to the function overload. For receiver-style functions, the receiver target is arg 0.
interpreter/interpretable.go:130
↓ 14 callersFunctionCostTracking
CostTracking enables cost tracking and registers a ActualCostEstimator that can optionally provide a runtime cost estimate for any function calls.
cel/options.go:810
↓ 14 callersMethodEnterRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5919
↓ 14 callersMethodExitRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5925
↓ 14 callersFunctionFunctionBinding
FunctionBinding provides the implementation of a variadic overload. The provided function is protected by a runtime type-guard which ensures runtime t
cel/decls.go:339
↓ 14 callersMethodIsAssignableType
IsAssignableType determines whether the current type is type-check assignable from the input fromType.
common/types/types.go:314
↓ 14 callersMethodIterVar2
IterVar2 returns the second iteration variable name. When the value is non-empty, the comprehension is a two-variable comprehension.
common/ast/expr.go:283
↓ 14 callersFunctionNewErrors
NewErrors creates a new instance of the Errors type.
common/errors.go:32
↓ 14 callersFunctionNewPartialActivation
NewPartialActivation returns an Activation which contains a list of AttributePattern values representing field and index operations that should result
interpreter/activation.go:173
↓ 14 callersMethodNewStruct
NewStruct creates an Expr value representing a struct literal with a given type name and a set of field initializers.
common/ast/factory.go:72
↓ 14 callersFunctionValOrErr
ValOrErr either returns the existing error or creates a new one. TODO: Audit the use of this function and standardize the error messages and codes.
common/types/err.go:107
↓ 14 callersMethodlocation
(e ast.Expr)
checker/checker.go:710
↓ 14 callersFunctionmustParseType
(t testing.TB, name string)
repl/evaluator_test.go:32
↓ 14 callersFunctionnewFormatError
(id int64, msg string, args ...any)
ext/formatting.go:700
↓ 14 callersMethodnewID
(ctx any)
parser/helper.go:144
↓ 13 callersFunctionAsyncBinding
AsyncBinding provides the implementation of an asynchronous overload. The provided function is called in its own goroutine with the provided context.
cel/decls.go:361
↓ 13 callersMethodEvaluate
Evaluate sets up a CEL evaluation using the current REPL context.
repl/evaluator.go:1461
↓ 13 callersFunctionExprToProto
ExprToProto serializes an ast.Expr value to a protobuf Expr representation.
common/ast/conversion.go:282
↓ 13 callersMethodID
ID value corresponding to the expression node.
interpreter/interpretable.go:32
↓ 13 callersMethodIsZeroValue
IsZeroValue indicates whether the object is the zero value for the type.
common/types/traits/zeroer.go:20
↓ 13 callersFunctionMaybeMergeUnknowns
MaybeMergeUnknowns determines whether an input value and another, possibly nil, unknown will produce an unknown result. If the input `val` is another
common/types/unknown.go:279
↓ 13 callersFunctionNativeTypes
NativeTypes creates a type provider which uses reflect.Type and reflect.Value instances to produce type definitions that can be used within CEL. All
ext/native.go:99
↓ 13 callersFunctionNewJSONList
NewJSONList returns a traits.Lister based on structpb.ListValue instance.
common/types/list.go:80
↓ 13 callersFunctionNewLibrarySubset
NewLibrarySubset returns an empty library subsetting config which permits all library features.
common/env/env.go:521
↓ 13 callersMethodNewList
NewList creates an Expr value representing a list literal expression with optional indices. Optional indices will typically be empty unless the CEL o
common/ast/factory.go:55
↓ 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:509
↓ 13 callersFunctionNewValidator
NewValidator returns a named Validator instance.
common/env/env.go:693
↓ 13 callersFunctionNoSuchOverloadErr
NoSuchOverloadErr returns a new types.Err instance with a no such overload message.
common/types/err.go:89
↓ 13 callersMethodPath
Path returns a field path through the provided type declarations to the type of the AstNode, or nil if the AstNode does not represent type directly re
checker/cost.go:61
↓ 13 callersFunctionPostOrderVisit
PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).
common/ast/navigable.go:175
↓ 13 callersMethodReferenceMap
ReferenceMap returns the map of expression id to identifier, constant, and function references.
common/ast/ast.go:87
↓ 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 callersMethodSlice
(i, j int)
common/runes/buffer.go:27
↓ 13 callersMethodSourceInfo
SourceInfo returns the source metadata associated with the parse / type-check passes.
common/ast/ast.go:43
↓ 13 callersFunctionStdLib
StdLib returns an EnvOption for the standard library of CEL functions and macros.
cel/library.go:130
↓ 13 callersMethodTypeName
TypeName returns the qualified type name of the type. The type name is also used as the type's identifier name at type-check and interpretation time.
common/types/ref/reference.go:32
↓ 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:499
↓ 13 callersMethodValidate
Validate validates a given Ast within an Environment and collects a set of potential issues. The ValidatorConfig is generated from the set of ASTVali
cel/validator.go:139
↓ 13 callersMethodnextID
()
cel/optimizer.go:222
↓ 12 callersMethodActualCost
ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled. Otherwise, returns nil if the cost was not enabled
cel/program.go:156
↓ 12 callersFunctionEnableOptionalSyntax
EnableOptionalSyntax enables syntax for optional field and index selection.
parser/options.go:138
↓ 12 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
↓ 12 callersFunctionNewConstantFoldingOptimizer
NewConstantFoldingOptimizer creates an optimizer which inlines constant scalar an aggregate literal values within function calls and select statements
cel/folding.go:62
↓ 12 callersMethodNewError
NewError associates an error message with a given expression id.
parser/macro.go:294
↓ 12 callersMethodNewMemberCall
NewMemberCall creates an Expr value representing a member function call.
common/ast/factory.go:37
↓ 12 callersMethodOutputType
OutputType returns the output type of the expression if the Ast has been type-checked, else returns cel.DynType as the parse step cannot infer types.
cel/env.go:106
↓ 12 callersMethodOverloadDecls
OverloadDecls returns the overload declarations in the order in which they were declared.
common/decls/decls.go:295
↓ 12 callersMethodParent
Parent returns the parent expression node, if one exists.
common/ast/navigable.go:34
↓ 12 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:111
↓ 12 callersMethodSpecifierFormat
SpecifierFormat returns the short text representation of the type. e.g. "map<string, int>"
common/env/env.go:874
↓ 12 callersMethodTypeMap
TypeMap returns the map of expression ids to type-checked types. If the AST is not type-checked, the map will be empty.
common/ast/ast.go:69
↓ 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 callersFunctionmustAdaptToExpr
(e *exprpb.Expr)
cel/macro.go:540
↓ 12 callersFunctionmustProgram
mustProgram compiles an expression and constructs a Program, separating EnvOptions and ProgramOptions.
cel/program_async_test.go:931
↓ 11 callersMethodAccuIdentName
AccuIdentName returns the name of the accumulator identifier.
parser/macro.go:276
↓ 11 callersMethodAddIdents
AddIdents configures the checker with a list of variable declarations. If there are overlapping declarations, the method will error.
checker/env.go:115
↓ 11 callersMethodAsCELType
AsCELType converts the serializable object to a *types.Type value.
common/env/env.go:881
↓ 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:678
↓ 11 callersMethodFindStructType
FindStructType returns the Type give a qualified type name. For historical reasons, only struct types are expected to be returned through this method
common/types/provider.go:55
↓ 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 callersMethodGetName
GetName returns the fully qualified file path for the file.
common/types/pb/file.go:80
↓ 11 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
↓ 11 callersFunctionMultilineDescription
MultilineDescription combines multiple lines into a newline separated string.
common/doc.go:68
↓ 11 callersFunctionNewConfig
NewConfig creates an instance of a YAML serializable CEL environment configuration.
common/env/env.go:30
↓ 11 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:50
↓ 11 callersFunctionNewLocation
NewLocation creates a new location.
common/location.go:37
↓ 11 callersFunctionNewPartialAttributeFactory
NewPartialAttributeFactory returns an AttributeFactory implementation capable of performing AttributePattern matches with PartialActivation inputs.
interpreter/attribute_patterns.go:182
↓ 11 callersMethodNewQualifier
NewQualifier creates a qualifier on the target object with a given value. The 'val' may be an Attribute or any proto-supported map key type: bool, in
interpreter/attributes.go:62
↓ 11 callersFunctionNewTypeParam
NewTypeParam describe a type-param type.
common/env/env.go:783
↓ 11 callersFunctionOverloadCostEstimate
OverloadCostEstimate binds a FunctionCoster to a specific function overload ID. When a OverloadCostEstimate is provided, it will override the cost ca
checker/cost.go:277
↓ 11 callersFunctionOverloadCostTracker
OverloadCostTracker binds an overload ID to a runtime FunctionTracker implementation. OverloadCostTracker instances augment or override ActualCostEst
interpreter/runtimecost.go:218
↓ 11 callersMethodPop
Pop returns the parent frame, releasing the current frame back to the pool.
interpreter/frame.go:166
↓ 11 callersMethodSetContext
SetContext sets the context for the execution frame.
interpreter/frame.go:98
↓ 11 callersFunctionUnaryBinding
UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime type-guard which ensures runtime type ag
common/decls/decls.go:903
↓ 11 callersFunctionduration
(seconds, nanos int64)
common/types/duration_test.go:267
↓ 11 callersMethodnewExpr
(id int64, e exprKindCase)
common/ast/factory.go:316
↓ 11 callersFunctionnewStandardInterpreter
newStandardInterpreter builds a Dispatcher and TypeProvider with support for all of the CEL builtins defined in the language definition.
interpreter/interpreter_test.go:2594
← previousnext →201–300 of 7,546, ranked by callers