MCPcopy Create free account

hub / github.com/expr-lang/expr / functions

Functions2,191 in github.com/expr-lang/expr

↓ 1 callersFunctionfieldByIndex
(v reflect.Value, field *Field)
vm/runtime/runtime.go:128
↓ 1 callersFunctionfieldName
(fieldName string, tag reflect.StructTag)
checker/nature/utils.go:9
↓ 1 callersFunctionfields
(t *Type)
docgen/markdown.go:81
↓ 1 callersMethodfindLongestMatch
Find longest matching block in a[alo:ahi] and b[blo:bhi]. If IsJunk is not defined: Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where
internal/difflib/difflib.go:224
↓ 1 callersMethodfindSuitableOperatorOverloadInFunctions
(l, r reflect.Type)
patcher/operator_override.go:82
↓ 1 callersMethodfindSuitableOperatorOverloadInTypes
(l, r reflect.Type)
patcher/operator_override.go:64
↓ 1 callersFunctionflatten
(arg reflect.Value, depth int)
builtin/lib.go:526
↓ 1 callersMethodformat
()
file/error.go:74
↓ 1 callersFunctionformatListDiff
(listA, listB interface{}, extraA, extraB []interface{})
internal/testify/assert/assertions.go:1157
↓ 1 callersMethodformatPtr
formatPtr handles formatting of pointers by indirecting them as necessary.
internal/spew/format.go:105
↓ 1 callersMethodgetMethodset
(t reflect.Type, k reflect.Kind)
checker/nature/nature.go:171
↓ 1 callersMethodgetSlow
(c *Cache, name string)
checker/nature/nature.go:404
↓ 1 callersMethodgrow
()
internal/ring/ring.go:69
↓ 1 callersFunctionhumanizeBytes
(b uint64)
repl/repl.go:134
↓ 1 callersMethodidentifierNode
(node *ast.IdentifierNode)
checker/checker.go:249
↓ 1 callersFunctionindentMessageLines
Aligns the provided message so that all lines after the first line start at the same location as the first line. Assumes that the first line starts at
internal/testify/assert/assertions.go:305
↓ 1 callersFunctioninitSpewTests
()
internal/spew/spew_test.go:126
↓ 1 callersFunctioninvalidateTrees
(trees ...*parser.Tree)
checker/checker_bench_test.go:104
↓ 1 callersFunctionisPointerPlusAcc
isPointerPlusAcc checks if the node represents `# + #acc` pattern
optimizer/sum_range.go:71
↓ 1 callersFunctionisPrivate
(s string)
ast/dump.go:57
↓ 1 callersFunctionlabeledOutput
labeledOutput returns a string consisting of the provided labeledContent. Each labeled output is appended in the following manner: \t{{label}}:{{ali
internal/testify/assert/assertions.go:386
↓ 1 callersMethodlookupVariable
(name string)
compiler/compiler.go:1267
↓ 1 callersMethodmapNode
(node *ast.MapNode)
checker/checker.go:1333
↓ 1 callersFunctionmean
(depth int, args ...any)
builtin/lib.go:348
↓ 1 callersFunctionmedian
(depth int, args ...any)
builtin/lib.go:445
↓ 1 callersMethodmemberNode
(node *ast.MemberNode)
checker/checker.go:515
↓ 1 callersFunctionmessageFromMsgAndArgs
(msgAndArgs ...interface{})
internal/testify/assert/assertions.go:284
↓ 1 callersMethodmethod
(c *Cache, name string)
checker/nature/utils.go:200
↓ 1 callersFunctionnewValuesSorter
newValuesSorter initializes a valuesSorter instance, which holds a set of surrogate keys on which the data should be sorted. It uses flags in ConfigS
internal/spew/common.go:228
↓ 1 callersMethodnodeParent
()
compiler/compiler.go:107
↓ 1 callersMethodoptimize
()
compiler/compiler.go:1337
↓ 1 callersMethodpairNode
(node *ast.PairNode)
checker/checker.go:1340
↓ 1 callersMethodparseArrayExpression
(token Token)
parser/parser.go:700
↓ 1 callersMethodparseComparison
(left Node, token Token, precedence int)
parser/parser.go:907
↓ 1 callersMethodparseConditional
(node Node)
parser/parser.go:366
↓ 1 callersMethodparseConditionalIf
()
parser/parser.go:338
↓ 1 callersFunctionparseLabeledOutput
parseLabeledOutput does the inverse of labeledOutput - it takes a formatted output string and turns it back into a slice of labeledContent.
internal/testify/assert/assertions_test.go:2928
↓ 1 callersMethodparseMapExpression
(token Token)
parser/parser.go:724
↓ 1 callersMethodparsePredicate
()
parser/parser.go:668
↓ 1 callersMethodparsePrimary
()
parser/parser.go:394
↓ 1 callersMethodparseSecondary
()
parser/parser.go:447
↓ 1 callersMethodparseVariableDeclaration
()
parser/parser.go:323
↓ 1 callersMethodpointerNode
(node *ast.PointerNode)
checker/checker.go:1225
↓ 1 callersMethodpredicateNode
(node *ast.PredicateNode)
checker/checker.go:1212
↓ 1 callersMethodscanEscape
(quote rune)
parser/lexer/lexer.go:203
↓ 1 callersMethodscanNumber
()
parser/lexer/state.go:80
↓ 1 callersMethodscanRawString
(quote rune)
parser/lexer/lexer.go:271
↓ 1 callersMethodsequenceNode
(node *ast.SequenceNode)
checker/checker.go:1272
↓ 1 callersMethodskipSpaces
()
parser/lexer/lexer.go:158
↓ 1 callersMethodsliceNode
(node *ast.SliceNode)
checker/checker.go:605
↓ 1 callersFunctionstringNode
(_ int)
test/gen/gen.go:191
↓ 1 callersFunctionsumArrayFold
(array *ArrayNode)
optimizer/sum_array.go:22
↓ 1 callersFunctiontestAutogeneratedFunction
()
internal/testify/assert/assertions_test.go:2001
↓ 1 callersFunctiontestRing
(t *testing.T, r *Ring[T], ops ...ringOp[T])
internal/ring/ring_test.go:85
↓ 1 callersFunctiontestRingOp
(t *testing.T, r *Ring[T], op ringOp[T])
internal/ring/ring_test.go:96
↓ 1 callersMethodtoFloatNode
(number float64)
parser/parser.go:561
↓ 1 callersFunctiontraverseAndReplaceIntegerNodesWithFloatNodes
(node *ast.Node, newNature Nature)
checker/checker.go:1175
↓ 1 callersFunctiontraverseAndReplaceIntegerNodesWithIntegerNodes
(node *ast.Node, newNature Nature)
checker/checker.go:1193
↓ 1 callersMethodunaryNode
(node *ast.UnaryNode)
checker/checker.go:291
↓ 1 callersFunctionunescape
Unescape takes a quoted string, unquotes, and unescapes it.
parser/lexer/utils.go:15
↓ 1 callersFunctionunescapeByteChar
unescapeByteChar unescapes a single character or escape sequence from a bytes literal. Unlike unescapeChar, this only supports byte-level escapes (\x,
parser/lexer/utils.go:261
↓ 1 callersFunctionunescapeBytes
unescapeBytes takes a quoted string, unquotes, and unescapes it as bytes.
parser/lexer/utils.go:58
↓ 1 callersFunctionunescapeChar
unescapeChar takes a string input and returns the following info: value - the escaped unicode rune at the front of the string. multibyte - whether
parser/lexer/utils.go:110
↓ 1 callersMethoduse
(t reflect.Type, ops ...option)
docgen/docgen.go:122
↓ 1 callersFunctionvalueSortLess
valueSortLess returns whether the first value should sort before the second value. It is used by valueSorter.Less as part of the sort.Interface imple
internal/spew/common.go:295
↓ 1 callersMethodvariableDeclaratorNode
(node *ast.VariableDeclaratorNode)
checker/checker.go:1250
MethodAFunc
AFunc is a method what goes before Func in the alphabet.
compiler/compiler_test.go:43
FunctionAbs
(x any)
builtin/lib.go:60
MethodAdd
(a int, b *int)
test/issues/688/issue_test.go:17
MethodAdd
(a, b int)
test/mock/mock.go:116
MethodAdd
(a, b float64)
test/playground/env.go:135
MethodAge
()
test/playground/env.go:13
MethodAndCondition
(a, b Condition)
test/operator/issues584/issues584_test.go:28
MethodAndConditions
(a Conditions, b Condition)
test/operator/issues584/issues584_test.go:32
MethodAny
(x any)
test/issues/688/issue_test.go:25
MethodAsAny
()
patcher/value/value_example_test.go:19
MethodAsAny
()
patcher/value/value_test.go:20
MethodAsAny
()
patcher/value/value_test.go:36
MethodAsAny
()
patcher/value/value_test.go:48
MethodAsAny
()
patcher/value/value_test.go:64
MethodAsArray
()
patcher/value/value_test.go:72
MethodAsInt
()
patcher/value/value_example_test.go:15
MethodAsInt
()
patcher/value/value_test.go:16
MethodAsInt
()
patcher/value/value_test.go:28
MethodAsMap
()
patcher/value/value_test.go:80
MethodAsString
()
patcher/value/value_test.go:44
MethodAsString
()
patcher/value/value_test.go:56
MethodAuthorEmail
()
test/playground/env.go:85
MethodBar
()
test/interface/interface_method_test.go:31
MethodBar
()
test/operator/issues584/issues584_test.go:22
MethodBar
()
test/deref/deref_test.go:119
FunctionBenchmarkBytesEqual
(b *testing.B)
internal/testify/assert/assertions_test.go:2498
FunctionBenchmarkCall_callTyped
(b *testing.B)
test/bench/bench_call_test.go:15
FunctionBenchmarkCall_eval
(b *testing.B)
test/bench/bench_call_test.go:41
FunctionBenchmarkChecker
(b *testing.B)
checker/checker_bench_test.go:15
FunctionBenchmarkCountGtZero
Benchmarks for count > 0 → any
optimizer/count_any_test.go:117
FunctionBenchmarkCountGtZeroLargeEarlyMatch
(b *testing.B)
optimizer/count_any_test.go:127
FunctionBenchmarkCountGtZeroNoMatch
(b *testing.B)
optimizer/count_any_test.go:137
FunctionBenchmarkCountGteOneEarlyMatch
Benchmarks for count >= 1 → any
optimizer/count_any_test.go:148
FunctionBenchmarkCountGteOneNoMatch
(b *testing.B)
optimizer/count_any_test.go:158
← previousnext →901–1,000 of 2,191, ranked by callers