MCPcopy Create free account

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

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

↓ 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 callersFunctionmustTypeCheck
(t testing.TB, expr string, opts ...any)
common/ast/navigable_test.go:557
↓ 15 callersMethodnextMacroID
()
parser/helper.go:329
↓ 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 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
↓ 14 callersMethodEnterRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5919
↓ 14 callersMethodExitRule
(listener antlr.ParseTreeListener)
parser/gen/cel_parser.go:5925
↓ 14 callersMethodIDs
IDs returns the list of ids with recorded values.
interpreter/evalstate.go:24
↓ 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 callersFunctionNewErrors
NewErrors creates a new instance of the Errors type.
common/errors.go:32
↓ 14 callersMethodNewInterpretable
NewInterpretable creates an InterpretableV2 from a checked expression and an optional list of PlannerOption values.
interpreter/interpreter.go:36
↓ 14 callersFunctionNewOptionalType
NewOptionalType creates an abstract parameterized type instance corresponding to CEL's notion of optional.
common/types/types.go:525
↓ 14 callersFunctionNewSourceInfo
NewSourceInfo creates a simple SourceInfo object from an input common.Source value.
common/ast/ast.go:193
↓ 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:140
↓ 13 callersMethodBindings
Bindings produces a set of function bindings, if any are defined.
common/decls/decls.go:328
↓ 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 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
↓ 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 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
↓ 13 callersMethodMultiplyByCostFactor
MultiplyByCostFactor multiplies a SizeEstimate by a cost factor and returns the CostEstimate with the nearest integer of the result, rounded up.
checker/cost.go:134
↓ 13 callersFunctionNewAttributePattern
NewAttributePattern produces a new mutable AttributePattern based on a variable name.
interpreter/attribute_patterns.go:54
↓ 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 callersFunctionNoSuchOverloadErr
NoSuchOverloadErr returns a new types.Err instance with a no such overload message.
common/types/err.go:89
↓ 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:112
↓ 13 callersFunctionactualSize
(value ref.Val)
ext/costs.go:62
↓ 13 callersMethodnextID
()
cel/optimizer.go:222
↓ 12 callersFunctionEnableOptionalSyntax
EnableOptionalSyntax enables syntax for optional field and index selection.
parser/options.go:125
↓ 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 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
↓ 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 callersFunctionNewValidator
NewValidator returns a named Validator instance.
common/env/env.go:693
↓ 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:102
↓ 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 callersFunctioncallEstimate
(cost checker.CostEstimate, sz *checker.SizeEstimate)
ext/costs.go:84
↓ 12 callersFunctionmustAdaptToExpr
(e *exprpb.Expr)
cel/macro.go:540
↓ 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:321
↓ 11 callersMethodGetName
GetName returns the fully qualified file path for the file.
common/types/pb/file.go:80
↓ 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 callersFunctionNewTypeParam
NewTypeParam describe a type-param type.
common/env/env.go:783
↓ 11 callersMethodOverloadDecls
OverloadDecls returns the overload declarations in the order in which they were declared.
common/decls/decls.go:294
↓ 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:851
↓ 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:2407
↓ 11 callersFunctionsafeAdd
(x, y uint64, rest ...uint64)
ext/costs.go:106
↓ 11 callersFunctiontestIDGen
(seed int64)
common/ast/expr_test.go:506
↓ 10 callersMethodCELTypeAdapter
CELTypeAdapter returns the `types.Adapter` configured for the environment.
cel/env.go:707
↓ 10 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
↓ 10 callersFunctionCostTracking
CostTracking enables cost tracking and registers a ActualCostEstimator that can optionally provide a runtime cost estimate for any function calls.
cel/options.go:757
↓ 10 callersMethodFindIdent
FindIdent takes a qualified identifier name and returns a ref.Val if one exists.
common/types/provider.go:46
↓ 10 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
↓ 10 callersFunctionFormatCELType
FormatCELType formats a types.Type value to a string representation. The type formatting is identical to FormatCheckedType.
checker/format.go:109
↓ 10 callersFunctionFunctionBinding
FunctionBinding provides the implementation of a variadic overload. The provided function is protected by a runtime type-guard which ensures runtime t
common/decls/decls.go:887
↓ 10 callersMethodGetOffsetRange
GetOffsetRange retrieves an OffsetRange for the given expression id if one exists.
common/ast/ast.go:352
↓ 10 callersMethodGetOp
GetOp returns the op token.
repl/parser/commands_parser.go:4377
↓ 10 callersMethodIsEquivalentType
IsEquivalentType indicates whether two types are equivalent. This check ignores type parameter type names.
common/types/types.go:279
↓ 10 callersMethodIsExactType
IsExactType indicates whether the two types are exactly the same. This check also verifies type parameter type names.
common/types/types.go:274
↓ 10 callersMethodLine
()
common/location.go:19
↓ 10 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
↓ 10 callersMethodNewAccuIdent
NewAccuIdent returns an accumulator identifier for use with comprehension results.
parser/macro.go:273
↓ 10 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
↓ 10 callersFunctionNewPartialActivation
NewPartialActivation returns an Activation which contains a list of AttributePattern values representing field and index operations that should result
interpreter/activation.go:160
↓ 10 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
↓ 10 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
↓ 10 callersFunctionNewVariable
NewVariable returns a serializable variable from a name and type definition
common/env/env.go:244
↓ 10 callersFunctionOptimize
Optimize will pre-compute operations such as list and map construction and optimize call arguments to set membership tests. The set of optimizations w
interpreter/interpreter.go:192
↓ 10 callersMethodParent
Parent returns the parent expression node, if one exists.
common/ast/navigable.go:34
↓ 10 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:94
← previousnext →201–300 of 7,240, ranked by callers