MCPcopy Create free account

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

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

↓ 1 callersFunctionisIdentifierChar
(r rune)
common/containers/container.go:290
↓ 1 callersFunctionisIdentifierCharacter
(str string)
common/types/unknown.go:127
↓ 1 callersMethodisJSONSafe
isJSONSafe indicates whether the uint is safely representable as a floating point value in JSON.
common/types/uint.go:260
↓ 1 callersMethodisJSONSafe
isJSONSafe indicates whether the int is safely representable as a floating point value in JSON.
common/types/int.go:299
↓ 1 callersFunctionisLeftRecursive
isLeftRecursive indicates whether the parser resolves the call in a left-recursive manner as this can have an effect of how parentheses affect the ord
parser/unparser.go:512
↓ 1 callersFunctionisLegacyNullable
isLegacyNullable preserves the null-ness compatibility of the original type-checker implementation.
checker/types.go:258
↓ 1 callersFunctionisListOperand
isListOperand reports whether the operand of a total is a list, whose elements are its entire content, rather than a map, whose values are only part o
common/cost/helper.go:184
↓ 1 callersMethodisLocalVar
(name string)
interpreter/planner.go:979
↓ 1 callersFunctionisLower
(r rune)
common/types/map.go:1542
↓ 1 callersFunctionisLowerPrecedence
isLowerPrecedence indicates whether the precedence of the input operator is lower precedence than the (possible) operation represented in the input Ex
parser/unparser.go:533
↓ 1 callersFunctionisMinute
(s string)
common/types/timestamp.go:127
↓ 1 callersFunctionisMonth
(s string)
common/types/timestamp.go:124
↓ 1 callersFunctionisNaN
(val ref.Val)
ext/math.go:692
↓ 1 callersFunctionisNaN
(val ref.Val)
common/stdlib/standard.go:949
↓ 1 callersFunctionisNestedComprehension
(e ast.NavigableExpr)
cel/folding.go:802
↓ 1 callersFunctionisOptimizableListAppend
isOptimizableListAppend mirrors cel-cpp's IsOptimizableListAppend. Returns whether this comprehension appears to be a standard map/filter macro imple
interpreter/planner.go:743
↓ 1 callersFunctionisOptimizableMapInsert
isOptimizableMapInsert mirrors cel-cpp's IsOptimizableMapInsert. Returns whether this comprehension appears to be a macro implementation for map tran
interpreter/planner.go:780
↓ 1 callersFunctionisOptional
(t *types.Type)
checker/types.go:42
↓ 1 callersFunctionisOptionalIndex
(i int, optIndices []int32)
cel/validator.go:424
↓ 1 callersFunctionisOptionalIndex
isOptionalIndex reports whether an overload is an optional index operation, l[?i] or m[?k], which returns an optional holding the element it selects.
common/cost/estimator.go:650
↓ 1 callersFunctionisOptionalNone
(e ast.Expr)
policy/composer.go:635
↓ 1 callersFunctionisOptionalType
isOptionalType reports whether t is an optional type with a value type.
common/cost/estimator.go:1324
↓ 1 callersMethodisOverloadDisabled
isOverloadDisabled returns whether the overloadID is disabled in the current environment.
checker/env.go:331
↓ 1 callersFunctionisPromotedThroughNamedJSONField
isPromotedThroughNamedJSONField reports whether a promoted field is reached through an embedded struct with a json name, in which case the field is se
common/types/native.go:773
↓ 1 callersFunctionisRegexFunction
(fn, overload string)
interpreter/decorators.go:203
↓ 1 callersFunctionisRegexFunctionName
(fn string)
cel/validator.go:606
↓ 1 callersFunctionisReservedIdent
(name string)
parser/unparser.go:100
↓ 1 callersFunctionisRetryable
(err *types.Err)
cel/async/async.go:229
↓ 1 callersFunctionisScalar
isScalar returns true if the given type is known to be of a constant size at compile time. isScalar will return false for strings (they are variable-w
common/cost/estimator.go:1339
↓ 1 callersFunctionisSecond
isSecond permits 60 for a leap second.
common/types/timestamp.go:130
↓ 1 callersFunctionisSelfEqualIdent
isSelfEqualIdent indicates whether the expression is an identifier whose static type guarantees that its runtime value is equal to itself. Matching a
cel/folding.go:742
↓ 1 callersFunctionisSelfEqualType
isSelfEqualType indicates whether all runtime values of the given type are equal to themselves.
cel/folding.go:754
↓ 1 callersFunctionisSkippedField
isSkippedField reports whether the field, or any embedded struct through which it is promoted, satisfies the skip predicate.
common/types/native.go:730
↓ 1 callersMethodisStructCreationAhead
isStructCreationAhead checks whether the current identifier is the root of a struct/message creation expression (`CreateMessage` in grammar: `'.'? IDE
parser/pratt_parser.go:220
↓ 1 callersMethodisTokenTimeValid
(tok *Token)
ext/security/jwt/jwt.go:236
↓ 1 callersFunctionisValidObjectType
(refType reflect.Type)
common/types/native.go:1594
↓ 1 callersFunctionisValidTypeSubstitution
isValidTypeSubstitution returns whether t2 (or its type substitution) is a valid type substitution for t1, and whether t2 has a type substitution in m
checker/types.go:206
↓ 1 callersFunctionisWellKnownType
(t *types.Type)
checker/checker.go:732
↓ 1 callersFunctionisWhitespace
(c byte)
common/env/io.go:382
↓ 1 callersFunctionisYear
(s string)
common/types/timestamp.go:123
↓ 1 callersFunctionjoin
(strs []string)
ext/strings.go:797
↓ 1 callersFunctionjoinSeparator
(strs []string, separator string)
ext/strings.go:793
↓ 1 callersFunctionjoinValSeparator
(strs traits.Lister, separator string)
ext/strings.go:801
↓ 1 callersFunctionjsonFieldType
(t reflect.Type, name string)
common/env/io.go:445
↓ 1 callersFunctionjsonFieldsOf
jsonFieldsOf determines the fields of a struct which are included when serializing to JSON (and by extension YAML), along with their serialized names.
common/types/native.go:682
↓ 1 callersFunctionjsonList
(t *testing.T, elems []any)
common/types/pb/type_test.go:645
↓ 1 callersFunctionk8sParserOpts
()
conformance/policy/policy_conformance_test.go:168
↓ 1 callersMethodkeyToFoldAny
(k K)
common/types/map.go:673
↓ 1 callersFunctionkindOf
kindOf returns the kind of the type as defined in the checked.proto.
checker/format.go:183
↓ 1 callersFunctionlastIgnored
(stack []string, name string)
common/ast/equiv.go:189
↓ 1 callersFunctionlastIndexOf
(str, substr string)
ext/strings.go:672
↓ 1 callersMethodlateBoundBinding
lateBoundBinding returns the runtime binding for an overload whose implementation is supplied by the activation at evaluation time. There is no imple
common/decls/decls.go:906
↓ 1 callersMethodlateBoundDispatcher
lateBoundDispatcher creates the runtime signature check for a late-bound overload.
common/decls/decls.go:917
↓ 1 callersMethodlateBoundDispatcher
lateBoundDispatcher creates a runtime dispatcher over the late-bound overloads of the function. This mirrors the dynamic dispatch performed for funct
common/decls/decls.go:930
↓ 1 callersMethodlaunch
launch returns a call's cached result, or starts the call (subject to the launch limiter) and returns an Unknown referencing its callID while the resu
interpreter/async.go:331
↓ 1 callersFunctionlegacyInTimeZone
legacyInTimeZone resolves a timezone argument the way cel-go did before v0.31.0: numeric offsets of the form [+-]HH:MM are not range checked.
cel/timestamp_legacy.go:65
↓ 1 callersFunctionlegacyTimestampAccessor
legacyTimestampAccessor builds a binding for a timestamp accessor with a timezone argument.
cel/timestamp_legacy.go:95
↓ 1 callersFunctionlegacyTimezoneOverload
(function, overloadID string, get func(time.Time) int)
cel/timestamp_legacy.go:105
↓ 1 callersFunctionlimitIDByName
(name string)
cel/options.go:146
↓ 1 callersFunctionlimitNameByID
(id limitID)
cel/options.go:141
↓ 1 callersMethodlistAdapter
()
common/types/list.go:225
↓ 1 callersFunctionlistDistinctCostModel
listDistinctCostModel models l.distinct(): it compares every pair of elements. Its tracker raises the factor for string and bytes elements, which a mo
ext/lists.go:1257
↓ 1 callersFunctionlistElementNode
(list cost.AstNode)
common/cost/cost_test.go:710
↓ 1 callersFunctionlistFlattenCostModel
(id string, legacy bool)
ext/lists.go:1288
↓ 1 callersFunctionlistFlattenDepthCostModel
(id string, legacy bool)
ext/lists.go:1300
↓ 1 callersFunctionlistJoinCostModel
listJoinCostModel models l.join(): it reads the list once and builds the concatenated result.
ext/strings.go:969
↓ 1 callersFunctionlistJoinStringCostModel
listJoinStringCostModel models l.join(delim): it reads the list once and builds the result with delimiters between elements.
ext/strings.go:979
↓ 1 callersFunctionlistReverseCostModel
(id string)
ext/lists.go:1246
↓ 1 callersFunctionlistSetOpCostModel
(id string, costFactor float64)
ext/lists.go:1350
↓ 1 callersFunctionlistSliceCostModel
listSliceCostModel models l.slice(start, end): it copies end - start elements of the receiver, and its size is also at most the receiver's.
ext/lists.go:1228
↓ 1 callersFunctionlistSortCostModels
(legacy bool)
ext/lists.go:1329
↓ 1 callersFunctionlistStringOrError
(strs []string, err error)
ext/guards.go:46
↓ 1 callersFunctionlistsCostAllowlistV0
listsCostAllowlistV0 returns the legacy violations for a lists library version under ModelVersion0.
common/cost/cost_bounds_test.go:599
↓ 1 callersFunctionlistsExprs
listsExprs returns the list extension calls to check. Functions are gated by the version that introduced them: slice at v0, flatten at v1, sort/sortBy
common/cost/cost_bounds_test.go:283
↓ 1 callersFunctionlistsRangeCostModel
listsRangeCostModel models lists.range(n): it builds n ints, each of size 1 under both built-in strategies.
ext/lists.go:1239
↓ 1 callersFunctionliteralFlattenLengthAnyDepth
literalFlattenLengthAnyDepth bounds the flattened length of a fully literal list over every depth: the depths which expand a level of the literal, of
ext/lists.go:1084
↓ 1 callersFunctionliteralFlattenLengthWithin
literalFlattenLengthWithin is literalFlattenLength for flattening which expands at most maxFlattenLevels levels of the literal.
ext/lists.go:1074
↓ 1 callersMethodloadContainerOption
(idx int, args []string)
repl/evaluator.go:1179
↓ 1 callersMethodloadDescriptorFromFile
(p string, textfmt bool)
repl/evaluator.go:1297
↓ 1 callersMethodloadDescriptorFromPackage
(pkg string)
repl/evaluator.go:1261
↓ 1 callersMethodloadDescriptors
(args []string)
repl/evaluator.go:1306
↓ 1 callersMethodloadExtensionOption
(idx int, args []string)
repl/evaluator.go:1194
↓ 1 callersMethodloadExtensionOptionType
(extType string)
repl/evaluator.go:1214
↓ 1 callersFunctionloadFileDescriptorSet
(path string, textfmt bool)
repl/evaluator.go:1229
↓ 1 callersFunctionlocationCodeEnvOption
()
policy/test/cel_test_runner.go:36
↓ 1 callersFunctionlocationCodeEnvOption
()
conformance/policy/policy_conformance_test.go:153
↓ 1 callersMethodlookupFunction
lookupFunction returns a Decl proto for typeName as a function in env. Returns nil if no such function is found in env.
checker/env.go:257
↓ 1 callersMethodlookupLocal
(name string)
policy/composer.go:143
↓ 1 callersMethodlookupRefVal
lookupRefVal performs a direct map lookup for maps whose key type K is ref.Val.
common/types/map.go:850
↓ 1 callersFunctionlowerASCII
(str string)
ext/strings.go:720
↓ 1 callersFunctionmakeExprMessageType
(structType string)
common/types/provider.go:950
↓ 1 callersMethodmakeFieldGetter
(refField reflect.StructField)
common/types/native.go:1023
↓ 1 callersMethodmakeFieldTester
(refField reflect.StructField)
common/types/native.go:973
↓ 1 callersFunctionmakeMatcher
(locale string)
ext/formatting.go:259
↓ 1 callersFunctionmakeParamVar
(env *cel.Env, id string, t *envlib.TypeDesc)
repl/evaluator.go:129
↓ 1 callersFunctionmakeRefFieldType
(t *exprpb.Type, isSet ref.FieldTester, getFrom ref.FieldGetter, isJSONField bool)
common/types/provider.go:962
↓ 1 callersFunctionmapFieldGetter
(t *NativeType, refField reflect.StructField, offset uintptr, expectedPtrTyp, expectedStructTyp unsafe.Pointer
common/types/native.go:958
↓ 1 callersMethodmatch
(c rune)
parser/lexer.go:265
↓ 1 callersMethodmatchIgnoreCase
(c rune)
parser/lexer.go:269
↓ 1 callersFunctionmatchInConstantList
(a *ast.AST)
ext/sets.go:160
← previousnext →3,201–3,300 of 9,178, ranked by callers