MCPcopy Create free account

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

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

↓ 4 callersFunctionisSkippedFieldName
(name string)
ext/native.go:167
↓ 4 callersMethodlocationByID
(id int64)
checker/checker.go:714
↓ 4 callersFunctionmaybeUnwrapOptional
(t *types.Type)
checker/types.go:49
↓ 4 callersFunctionnewFolder
newFolder creates or initializes a pooled folder instance.
interpreter/interpretable.go:1517
↓ 4 callersFunctionnewIdent
(name string, t *exprpb.Type, v *exprpb.Constant, desc string)
checker/decls/decls.go:115
↓ 4 callersFunctionoptimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callersFunctionparseCIDR
(raw string)
ext/network.go:505
↓ 4 callersMethodpeekLocalVar
(varName string)
checker/cost.go:456
↓ 4 callersMethodpush
(varName string, expr ast.Expr, path []string, size *SizeEstimate, entrySize *entrySizeEstimate)
checker/cost.go:380
↓ 4 callersMethodrelease
(activation Activation)
interpreter/frame.go:345
↓ 4 callersFunctionreleaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1525
↓ 4 callersMethodsizeOrUnknown
(node any)
checker/cost.go:924
↓ 4 callersFunctiontestProtosEnv
testProtosEnv initializes the test environment common to all tests.
ext/protos_test.go:213
↓ 4 callersFunctiontestRegexEnv
(t *testing.T, opts ...cel.EnvOption)
ext/regex_test.go:264
↓ 4 callersFunctiontoFieldName
(fieldNameHandler NativeTypesFieldNameHandler, f reflect.StructField)
ext/native.go:279
↓ 4 callersFunctiontrackAllocatingListCall
trackAllocatingListCall computes costs as a function of the size of the result list with a baseline cost for the call dispatch and the associated list
ext/lists.go:901
↓ 4 callersFunctionuint64ToInt64Lossless
(v uint64)
common/types/overflow.go:426
↓ 3 callersMethodAccuIdentName
AccuIdentName reports the name of the accumulator variable to be used within a comprehension.
common/ast/factory.go:47
↓ 3 callersMethodAdapter
Adapter returns the type adapter to be used for adapting resolved Attribute values.
interpreter/interpretable.go:89
↓ 3 callersMethodAddLimits
AddLimits appends one or more limits to the config.
common/env/env.go:216
↓ 3 callersMethodAddOverload
AddOverload appends a function overload ID to the ReferenceInfo.
common/ast/ast.go:497
↓ 3 callersMethodAddOverload
AddOverload ensures that the new overload does not collide with an existing overload signature; however, if the function signatures are identical, the
common/decls/decls.go:260
↓ 3 callersMethodAddQualifier
AddQualifier proxies the Attribute.AddQualifier method. Note, this method may mutate the current attribute state. If the desire is to clone the Attri
interpreter/interpretable.go:97
↓ 3 callersFunctionAlias
Alias associates a name with a user-defined alias. In general, Abbrevs is preferred to Alias since the names generated from the Abbrevs option are mo
common/containers/container.go:245
↓ 3 callersFunctionAllMatcher
AllMatcher returns true for all descendants of a NavigableExpr, effectively flattening them into a list. Such a result would work well with subsequen
common/ast/navigable.go:98
↓ 3 callersMethodAsyncCall
AsyncCall returns the state of an async call by its callID, or nil if not found.
interpreter/frame.go:275
↓ 3 callersFunctionAuthoringPrompt
AuthoringPrompt creates a prompt template from a CEL environment for the purpose of AI-assisted authoring.
cel/prompt.go:64
↓ 3 callersMethodCheckInterrupt
CheckInterrupt returns whether the evaluation has been interrupted.
interpreter/frame.go:214
↓ 3 callersFunctionCheckedExprToAstWithSource
CheckedExprToAstWithSource converts a checked expression proto message to an Ast, using the provided Source as the textual contents. In general the s
cel/io.go:50
↓ 3 callersMethodClone
Clone makes a shallow copy of the tracker. The different clones can be used independently from each other.
interpreter/runtimecost.go:242
↓ 3 callersFunctionCollectFileDescriptorSet
CollectFileDescriptorSet builds a file descriptor set associated with the file where the input message is declared.
common/types/pb/pb.go:245
↓ 3 callersFunctionCompile
Compile combines the policy compilation and composition steps into a single call. This generates a single CEL AST from a collection of policy express
policy/compiler.go:244
↓ 3 callersFunctionConcurrentDrainStrategy
ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completi
cel/options.go:784
↓ 3 callersMethodCondition
Condition returns the condition CEL expression.
policy/parser.go:318
↓ 3 callersMethodConfigValue
ConfigValue retrieves the value associated with the config key name, if one exists.
common/env/env.go:724
↓ 3 callersFunctionCost
Cost estimates the cost of the parsed and type checked CEL expression.
checker/cost.go:285
↓ 3 callersFunctionCostLimit
CostLimit enables cost tracking and sets configures program evaluation to exit early with a "runtime cost limit exceeded" error if the runtime cost ex
cel/options.go:822
↓ 3 callersMethodDelLetFn
DelLetFn removes a function from the evaluation context. If deleting the function breaks a later expression, this function will return an error withou
repl/evaluator.go:718
↓ 3 callersMethodDescriptor
()
test/proto2pb/test_all_types.pb.go:63
↓ 3 callersFunctionDisableDeclaration
DisableDeclaration disables the function signatures, effectively removing them from the type-check environment while preserving the runtime bindings.
cel/decls.go:293
↓ 3 callersFunctionEnableIdentEscapeSyntax
EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This supports extended types of characters in identifiers, e.g. foo.`baz-bar`.
parser/options.go:147
↓ 3 callersFunctionEqual
Equal returns whether two proto.Message instances are equal using the following criteria: - Messages must share the same instance of the type descrip
common/types/pb/equal.go:45
↓ 3 callersFunctionErrorAsIssues
ErrorAsIssues wraps a Golang error into a CEL common error and issue set. This is a convenience method for early returning from an expression validat
cel/env.go:1008
↓ 3 callersMethodExamples
Examples returns a list of string examples for the overload.
common/decls/decls.go:662
↓ 3 callersFunctionExcludeOverloads
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
common/decls/decls.go:215
↓ 3 callersMethodExec
Exec implements the InterpretableV2 interface method.
interpreter/async.go:100
↓ 3 callersMethodExecuteTest
ExecuteTest executes the test case against the provided list of programs and returns an error if the test fails. During the test execution, the interm
tools/celtest/test_runner.go:1021
↓ 3 callersFunctionExprDeclToDeclaration
ExprDeclToDeclaration converts a protobuf CEL declaration to a CEL-native declaration, either a Variable or Function.
cel/decls.go:399
↓ 3 callersFunctionExprToString
ExprToString converts an AST Expr node back to a string using macro call tracking metadata from source info if any macros are encountered within the e
cel/io.go:131
↓ 3 callersFunctionExpressionSizeCodePointLimit
ExpressionSizeCodePointLimit is an option which limits the maximum code point count of an expression.
parser/options.go:91
↓ 3 callersFunctionExpressionUnnestHeight
ExpressionUnnestHeight determines the height at which nested expressions are split into local variables within the cel.@block declaration.
policy/composer.go:35
↓ 3 callersFunctionFileDescriptorSet
FileDescriptorSet creates a Test Runner Option which adds a file descriptor set to the test runner. The file descriptor set is used to register proto
tools/celtest/test_runner.go:473
↓ 3 callersMethodFindIdentInScope
FindIdentInScope finds the first ident Decl with a matching name in the current Scopes value, or nil if one does not exist. Note: The search is only p
checker/scopes.go:94
↓ 3 callersMethodFindOverload
FindOverload returns an Overload definition matching the provided name.
interpreter/dispatcher.go:29
↓ 3 callersFunctionFindReverse
FindReverse returns the unmangled, text representation of the operator.
common/operators/operators.go:116
↓ 3 callersMethodFnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 callersFunctionFormat
Format formats the value as a string. The result is only intended for human consumption and ignores errors. Do not depend on the output being stable.
common/types/format.go:17
↓ 3 callersMethodGet
Get implements the traits.Indexer interface method.
common/types/list.go:446
↓ 3 callersMethodGetE1
GetE1 returns the e1 rule contexts.
repl/parser/commands_parser.go:4386
↓ 3 callersMethodGetEnumNames
GetEnumNames returns the string names of all enum values in the file.
common/types/pb/file.go:97
↓ 3 callersMethodGetFn
GetFn returns the fn rule contexts.
repl/parser/commands_parser.go:952
↓ 3 callersMethodGetLocationByOffset
GetLocationByOffset returns the line and column information for a given character offset.
common/ast/ast.go:405
↓ 3 callersMethodGetOverloadIDs
GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not t
common/ast/ast.go:79
↓ 3 callersMethodGetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callersMethodGetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 3 callersMethodGetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callersMethodGlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callersMethodHasOptionalOutput
HasOptionalOutput returns whether the rule returns a concrete or optional value. The rule may return an optional value if all match expressions under
policy/compiler.go:71
↓ 3 callersMethodHasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:349
↓ 3 callersFunctionHomogeneousAggregateLiterals
HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provid
cel/options.go:234
↓ 3 callersMethodImports
Imports returns the list of imports associated with the policy.
policy/parser.go:70
↓ 3 callersFunctionIndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:549
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callersMethodInitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 3 callersMethodIsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:321
↓ 3 callersFunctionJSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:46
↓ 3 callersMethodJSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:185
↓ 3 callersMethodLineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:308
↓ 3 callersMethodLocationOffset
LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, an
common/source.go:43
↓ 3 callersFunctionMathVersion
MathVersion sets the library version for math extensions.
ext/math.go:399
↓ 3 callersFunctionMaxExpressionNodeCount
MaxExpressionNodeCount limits the maximum number of expression nodes that may be emitted by the parser, including nodes created by macro expansion.
parser/options.go:103
↓ 3 callersFunctionMaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callersMethodMetadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:90
↓ 3 callersMethodModulo
Modulo returns the result of taking the modulus of the current value by the denominator. A denominator value of zero results in an error.
common/types/traits/math.go:42
↓ 3 callersMethodName
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:359
↓ 3 callersMethodName
Name returns the fully-qualified variable name
common/decls/decls.go:1049
↓ 3 callersMethodNativeToValue
NativeToValue converts various "native" types to ref.Val with this specific implementation providing support for custom proto-based types. This metho
common/types/provider.go:407
↓ 3 callersFunctionNewBufferAndLineOffsetsWithLimit
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing t
common/runes/buffer.go:143
↓ 3 callersFunctionNewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callersFunctionNewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callersFunctionNewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:1018
↓ 3 callersFunctionNewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callersFunctionNewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callersFunctionNewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 3 callersFunctionNewLimit
NewLimit creates a new limit.
common/env/env.go:762
↓ 3 callersFunctionNewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:91
↓ 3 callersFunctionNewMutableMap
NewMutableMap constructs a mutable map from an adapter and a set of map values.
common/types/map.go:99
↓ 3 callersFunctionNewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callersFunctionNewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count.
parser/macro.go:60
← previousnext →801–900 of 7,546, ranked by callers