MCPcopy Create free account

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

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

↓ 1 callersMethodShouldRepeat
()
patcher/operator_override.go:52
↓ 1 callersFunctionSlice
(array, from, to any)
vm/runtime/runtime.go:164
↓ 1 callersMethodSliceNode
(node *ast.SliceNode)
compiler/compiler.go:761
↓ 1 callersFunctionSortValues
SortValues makes the internal sortValues function available to the test package.
internal/spew/internal_test.go:82
↓ 1 callersFunctionSprint
Sprint is a wrapper for fmt.Sprint that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It ret
internal/spew/spew.go:114
↓ 1 callersFunctionSprintln
Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It
internal/spew/spew.go:136
↓ 1 callersFunctionStartDebugger
(program *Program, env any)
debug/debugger.go:16
↓ 1 callersMethodString
()
ast/print.go:40
↓ 1 callersMethodString
()
ast/print.go:142
↓ 1 callersMethodStringNode
(node *ast.StringNode)
compiler/compiler.go:411
↓ 1 callersFunctionSubset
Subset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. ass
internal/testify/require/require.go:1916
↓ 1 callersFunctionSubsetf
Subsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. as
internal/testify/require/require.go:1931
↓ 1 callersFunctionSubtract
(a, b interface{})
vm/runtime/helpers[generated].go:2429
↓ 1 callersFunctionToBool
(a any)
vm/runtime/runtime.go:416
↓ 1 callersFunctionToInt64
(a any)
vm/runtime/runtime.go:354
↓ 1 callersMethodUnaryNode
(node *ast.UnaryNode)
compiler/compiler.go:427
↓ 1 callersMethodVariableDeclaratorNode
(node *ast.VariableDeclaratorNode)
compiler/compiler.go:1241
↓ 1 callersMethodVisit
(node *Node)
ast/visitor.go:6
↓ 1 callersFunctionWarnOnAny
WarnOnAny tells the compiler to warn if expression return any type.
expr.go:121
↓ 1 callersMethodWidth
()
internal/spew/internal_test.go:46
↓ 1 callersFunctionWithinDurationf
WithinDurationf asserts that the two times are within duration delta of each other. assert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second
internal/testify/require/require.go:1983
↓ 1 callersFunctionWithinRange
WithinRange asserts that a time is within a time range (inclusive). assert.WithinRange(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(t
internal/testify/require/require.go:1996
↓ 1 callersFunctionWithinRangef
WithinRangef asserts that a time is within a time range (inclusive). assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add
internal/testify/require/require.go:2009
↓ 1 callersMethodWrap
(err error)
file/error.go:70
↓ 1 callersFunctionWriteContextDiff
Compare two sequences of lines; generate the delta as a context diff. Context diffs are a compact way of showing line changes and a few lines of cont
internal/difflib/difflib.go:677
↓ 1 callersFunctionWriteUnifiedDiff
Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of cont
internal/difflib/difflib.go:562
↓ 1 callersFunctionZerof
Zerof asserts that i is the zero value for its type.
internal/testify/require/require.go:2031
↓ 1 callersFunctionaddArrayDumpTests
()
internal/spew/dump_test.go:305
↓ 1 callersFunctionaddArrayFormatterTests
()
internal/spew/format_test.go:500
↓ 1 callersFunctionaddBoolDumpTests
()
internal/spew/dump_test.go:223
↓ 1 callersFunctionaddBoolFormatterTests
()
internal/spew/format_test.go:349
↓ 1 callersFunctionaddCgoDumpTests
()
internal/spew/dumpcgo_test.go:33
↓ 1 callersFunctionaddChanDumpTests
()
internal/spew/dump_test.go:797
↓ 1 callersFunctionaddChanFormatterTests
()
internal/spew/format_test.go:1132
↓ 1 callersFunctionaddCircularDumpTests
()
internal/spew/dump_test.go:866
↓ 1 callersFunctionaddCircularFormatterTests
()
internal/spew/format_test.go:1258
↓ 1 callersFunctionaddComplexDumpTests
()
internal/spew/dump_test.go:277
↓ 1 callersFunctionaddComplexFormatterTests
()
internal/spew/format_test.go:448
↓ 1 callersFunctionaddErrorDumpTests
()
internal/spew/dump_test.go:944
↓ 1 callersFunctionaddErrorFormatterTests
()
internal/spew/format_test.go:1397
↓ 1 callersFunctionaddFloatDumpTests
()
internal/spew/dump_test.go:249
↓ 1 callersFunctionaddFloatFormatterTests
()
internal/spew/format_test.go:396
↓ 1 callersFunctionaddFuncDumpTests
()
internal/spew/dump_test.go:823
↓ 1 callersFunctionaddFuncFormatterTests
()
internal/spew/format_test.go:1179
↓ 1 callersFunctionaddIntDumpTests
()
internal/spew/dump_test.go:89
↓ 1 callersFunctionaddIntFormatterTests
()
internal/spew/format_test.go:95
↓ 1 callersFunctionaddInterfaceDumpTests
()
internal/spew/dump_test.go:524
↓ 1 callersFunctionaddInterfaceFormatterTests
()
internal/spew/format_test.go:720
↓ 1 callersFunctionaddMapDumpTests
()
internal/spew/dump_test.go:550
↓ 1 callersFunctionaddMapFormatterTests
()
internal/spew/format_test.go:767
↓ 1 callersFunctionaddPanicDumpTests
()
internal/spew/dump_test.go:929
↓ 1 callersFunctionaddPanicFormatterTests
()
internal/spew/format_test.go:1370
↓ 1 callersFunctionaddPassthroughFormatterTests
()
internal/spew/format_test.go:1424
↓ 1 callersFunctionaddSliceDumpTests
()
internal/spew/dump_test.go:403
↓ 1 callersFunctionaddSliceFormatterTests
()
internal/spew/format_test.go:585
↓ 1 callersFunctionaddStringDumpTests
()
internal/spew/dump_test.go:508
↓ 1 callersFunctionaddStringFormatterTests
()
internal/spew/format_test.go:693
↓ 1 callersFunctionaddStructDumpTests
()
internal/spew/dump_test.go:651
↓ 1 callersFunctionaddStructFormatterTests
()
internal/spew/format_test.go:886
↓ 1 callersFunctionaddUintDumpTests
()
internal/spew/dump_test.go:156
↓ 1 callersFunctionaddUintFormatterTests
()
internal/spew/format_test.go:222
↓ 1 callersFunctionaddUintptrDumpTests
()
internal/spew/dump_test.go:742
↓ 1 callersFunctionaddUintptrFormatterTests
()
internal/spew/format_test.go:1036
↓ 1 callersFunctionaddUnsafePointerDumpTests
()
internal/spew/dump_test.go:769
↓ 1 callersFunctionaddUnsafePointerFormatterTests
()
internal/spew/format_test.go:1084
↓ 1 callersMethodaddVariable
(name string)
compiler/compiler.go:169
↓ 1 callersMethodallocScope
allocScope returns a pointer to a Scope from the pool, growing the pool if needed. Callers must set Len and exactly one of: Ints, Floats, Strings, Any
vm/vm.go:700
↓ 1 callersFunctionapplySumPredicate
applySumPredicate tries to compute the result of sum(m..n, predicate) at compile time. Returns (result, true) if optimization is possible, (0, false)
optimizer/sum_range.go:113
↓ 1 callersFunctionarrayEqualCases
(xs ...[]string)
vm/runtime/helpers/main.go:93
↓ 1 callersMethodarrayNode
(node *ast.ArrayNode)
checker/checker.go:1315
↓ 1 callersMethodbeginScope
(name string, index int)
compiler/compiler.go:1259
↓ 1 callersMethodbinaryNode
(node *ast.BinaryNode)
checker/checker.go:320
↓ 1 callersMethodbuildDefaultFormat
buildDefaultFormat recreates the original format string without precision and width information to pass in to fmt.Sprintf in the case of an unrecogniz
internal/spew/format.go:47
↓ 1 callersMethodbuiltinNode
(node *ast.BuiltinNode)
checker/checker.go:695
↓ 1 callersFunctioncalcRelativeError
(expected, actual interface{})
internal/testify/assert/assertions.go:1461
↓ 1 callersMethodcall
(fn any, kind int)
vm/func_types[generated].go:103
↓ 1 callersMethodcallNode
(node *ast.CallNode)
checker/checker.go:638
↓ 1 callersFunctioncallerName
callerName gives the function name (qualified with a package path) for the caller after skip frames (where 0 means the current function).
internal/testify/assert/assertion_compare_test.go:117
↓ 1 callersFunctioncanSortSimply
canSortSimply tests whether a reflect.Kind is a primitive that can be sorted directly, or whether it should be considered for sorting by surrogate key
internal/spew/common.go:256
↓ 1 callersMethodchainB
()
internal/difflib/difflib.go:151
↓ 1 callersMethodchainNode
(node *ast.ChainNode)
checker/checker.go:511
↓ 1 callersMethodcheck
(tree *parser.Tree)
checker/checker.go:125
↓ 1 callersMethodcheckBuiltinGet
(node *ast.BuiltinNode)
checker/checker.go:959
↓ 1 callersFunctioncheckFunc
(fn *builtin.Function, name string, operator string)
patcher/operator_override.go:139
↓ 1 callersFunctioncheckType
(fnType nature.Nature, fn string, operator string)
patcher/operator_override.go:129
↓ 1 callersFunctioncombinedOperator
(fn, op string)
optimizer/predicate_combination.go:46
↓ 1 callersFunctioncompareTokens
(i1, i2 []Token)
parser/lexer/lexer_test.go:364
↓ 1 callersMethodconditionalNode
(node *ast.ConditionalNode)
checker/checker.go:1283
↓ 1 callersMethodconstructOrigFormat
constructOrigFormat recreates the original format string including precision and width information to pass along to the standard fmt package. This al
internal/spew/format.go:65
↓ 1 callersMethodcreateMemberNode
(n *MemberNode, loc file.Location)
parser/parser.go:127
↓ 1 callersFunctioncreateNestedMapExpr
(t *testing.T, depth int)
vm/vm_test.go:1358
↓ 1 callersMethodderefParam
(in reflect.Type, param ast.Node)
compiler/compiler.go:1325
↓ 1 callersFunctiondump
(v reflect.Value, ident string)
ast/dump.go:13
↓ 1 callersMethoddumpPtr
dumpPtr handles formatting of pointers by indirecting them as necessary.
internal/spew/dump.go:81
↓ 1 callersMethoddumpSlice
dumpSlice handles formatting of arrays and slices. Byte (uint8 under reflection) arrays and slices are dumped in hexdump -C fashion.
internal/spew/dump.go:161
↓ 1 callersMethodemitEOF
()
parser/lexer/lexer.go:121
↓ 1 callersMethodendScope
()
compiler/compiler.go:1263
↓ 1 callersFunctionestimateFnArgsCount
estimateFnArgsCount inspects a *Program and estimates how many function arguments will be required to run it.
vm/vm.go:795
↓ 1 callersFunctionextractCodeBlocksWithTitle
(markdown string)
test/examples/markdown.go:13
↓ 1 callersFunctionextractPointerAndConstantWithPosition
extractPointerAndConstantWithPosition extracts pointer (#) and integer constant from a binary node. Returns (pointer, constant, pointerOnLeft) or (nil
optimizer/sum_range.go:156
← previousnext →801–900 of 2,191, ranked by callers