MCPcopy Create free account

hub / github.com/Shopify/go-lua / functions

Functions673 in github.com/Shopify/go-lua

↓ 121 callersMethoda
Note: the gc optimizer cannot inline through multiple function calls. Manually inline for now. func (i instruction) a() int { return i.arg(posA, siz
instructions.go:151
↓ 73 callersMethodb
()
instructions.go:152
↓ 68 callersMethodError
Error generates a Lua error. The error message must be on the stack top. The error can be any of any Lua type. This function will panic(). http://ww
lua.go:1171
↓ 65 callersMethodopCode
()
instructions.go:136
↓ 59 callersMethodstep
()
stack.go:205
↓ 56 callersMethodPushString
PushString pushes a string onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushstring
lua.go:886
↓ 51 callersMethodc
()
instructions.go:153
↓ 45 callersMethodhook
()
vm.go:294
↓ 45 callersMethodhooked
()
vm.go:292
↓ 45 callersMethodindexToValue
(index int)
lua.go:491
↓ 42 callersMethodassert
(cond bool)
code.go:293
↓ 40 callersFunctionopmode
(t, a, b, c, m int)
instructions.go:212
↓ 37 callersMethodPushValue
PushValue pushes a copy of the element at index onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushvalue
lua.go:1427
↓ 36 callersFunctionErrorf
Errorf raises an error. The error message format is given by format plus any extra arguments, following the same rules as PushFString. It also adds at
auxiliary.go:209
↓ 34 callersFunctionCheckString
CheckString checks whether the function argument at index is a string and returns this string. This function uses ToString to get its result, so all
auxiliary.go:317
↓ 33 callersMethodPop
Pop pops n elements from the stack. http://www.lua.org/manual/5.2/manual.html#lua_pop
lua.go:1474
↓ 31 callersMethodadvance
()
scanner.go:123
↓ 28 callersMethodEncodeABC
(op opCode, a, b, c int)
code.go:320
↓ 28 callersMethodpush
(v value)
stack.go:5
↓ 28 callersMethodstackIndex
(slot int)
stack.go:145
↓ 26 callersFunctionNewState
NewState creates a new thread running in a new, independent state. http://www.lua.org/manual/5.2/manual.html#lua_newstate
lua.go:456
↓ 26 callersMethodPushNumber
PushNumber pushes a number onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushnumber
lua.go:1437
↓ 26 callersMethodnext
(t *table, key int)
tables.go:224
↓ 25 callersMethodTop
Top returns the index of the top element in the stack. Because Lua indices start at 1, this result is equal to the number of elements in the stack (he
lua.go:1367
↓ 25 callersMethodapiPush
(v value)
lua.go:297
↓ 25 callersMethodjump
(pc int)
code.go:416
↓ 25 callersFunctionk
(field int, constants []value, frame []value)
vm.go:948
↓ 25 callersMethodk
(field int)
vm.go:261
↓ 24 callersMethodPushNil
PushNil pushes a nil value onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushnil
lua.go:1432
↓ 24 callersMethodbase
()
stack.go:146
↓ 23 callersMethodSetField
SetField does the equivalent of table[key]=v where table is the value at index and v is the value on top of the stack. This function pops the value f
lua.go:481
↓ 23 callersMethodsbx
()
instructions.go:156
↓ 22 callersFunctionArgumentCheck
ArgumentCheck checks whether cond is true. If not, raises an error with a standard message.
auxiliary.go:308
↓ 22 callersFunctionCheckInteger
(l *State, index int)
auxiliary.go:349
↓ 22 callersMethodTypeOf
TypeOf returns the type of the value at index, or TypeNone for a non-valid (but acceptable) index. http://www.lua.org/manual/5.2/manual.html#lua_type
lua.go:665
↓ 20 callersMethodPushInteger
PushInteger pushes n onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushinteger
lua.go:1442
↓ 20 callersMethodSetTop
SetTop accepts any index, or 0, and sets the stack top to index. If the new top is larger than the old one, then the new elements are filled with nil.
lua.go:556
↓ 20 callersMethodToString
ToString converts the Lua value at index to a Go string. The Lua value must also be a string or a number; otherwise the function returns false for i
lua.go:800
↓ 19 callersFunctionCheckNumber
(l *State, index int)
auxiliary.go:334
↓ 19 callersFunctionCheckType
CheckType checks whether the function argument at index has type t. See Type for the encoding of types for t.
auxiliary.go:294
↓ 19 callersFunctionmakeExpression
(kind, info int)
code.go:282
↓ 19 callersMethodruntimeError
(message string)
debug.go:40
↓ 18 callersMethodString
String returns the name of Type t. http://www.lua.org/manual/5.2/manual.html#lua_typename
lua.go:1393
↓ 17 callersMethodassert
(cond bool)
debug.go:115
↓ 17 callersMethodclose
(level int)
stack.go:103
↓ 16 callersMethodField
Field pushes onto the stack the value table[name], where table is the table on the stack at the given index. This call may trigger a metamethod for th
lua.go:996
↓ 16 callersMethodProtectedCall
ProtectedCall calls a function in protected mode. Both argCount and resultCount have the same meaning as in Call. If there are no errors during the ca
lua.go:381
↓ 16 callersMethodcheckElementCount
(n int)
lua.go:304
↓ 16 callersFunctionmathUnaryOp
(f func(float64) float64)
math.go:10
↓ 15 callersFunctionOptString
OptString returns the string at index if it is a string. If this argument is absent or is nil, returns def. Otherwise, raises an error.
auxiliary.go:327
↓ 15 callersMethodRawGetInt
RawGetInt pushes onto the stack the value table[key] where table is the value at index on the stack. The access is raw, as it doesn't invoke metametho
lua.go:1015
↓ 15 callersMethodarith
(rb, rc value, op tm)
vm.go:9
↓ 15 callersMethodsaveAndAdvance
()
scanner.go:131
↓ 14 callersMethodCall
Call calls a function. To do so, use the following protocol: first, the function to be called is pushed onto the stack; then, the arguments to the fun
lua.go:1358
↓ 14 callersMethodIsNoneOrNil
IsNoneOrNil verifies that the value at index is either nil or invalid. http://www.lua.org/manual/5.2/manual.html#lua_isnonornil.
lua.go:1526
↓ 14 callersFunctionOptInteger
(l *State, index, def int)
auxiliary.go:357
↓ 14 callersMethodPushBoolean
PushBoolean pushes a boolean value with value b onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushboolean
lua.go:1452
↓ 14 callersMethodfreeExpression
(e exprDesc)
code.go:567
↓ 14 callersMethodtestNext
(t rune)
scanner.go:522
↓ 13 callersMethodExpressionToNextRegister
(e exprDesc)
code.go:677
↓ 13 callersMethodInstruction
(e exprDesc)
code.go:294
↓ 13 callersMethodMakeLocalVariable
(name string)
code.go:162
↓ 13 callersMethodcheckNext
(t rune)
parser.go:40
↓ 13 callersMethodsyntaxError
(message string)
scanner.go:81
↓ 13 callersMethodtoNumber
(r value)
types.go:277
↓ 12 callersFunctionCheckAny
CheckAny checks whether the function has an argument of any type (including nil) at position index.
auxiliary.go:301
↓ 12 callersFunctionLoadString
(l *State, s string)
auxiliary.go:525
↓ 12 callersMethodisJumpListWalkable
(list int)
code.go:424
↓ 12 callersMethodskip
()
stack.go:147
↓ 11 callersFunctionCheckUnsigned
(l *State, index int)
auxiliary.go:364
↓ 11 callersFunctionFileResult
FileResult produces the return values for file-related functions in the standard library (io.open, os.rename, file:seek, etc.).
auxiliary.go:560
↓ 11 callersMethodexpressionToRegisterOrConstant
(e exprDesc)
code.go:710
↓ 11 callersMethodisLua
()
stack.go:143
↓ 10 callersMethodDischargeVariables
(e exprDesc)
code.go:597
↓ 10 callersMethodEnterBlock
(isLoop bool)
code.go:129
↓ 10 callersMethodIsNil
IsNil verifies that the value at index is nil. http://www.lua.org/manual/5.2/manual.html#lua_isnil
lua.go:1506
↓ 10 callersMethodLeaveBlock
()
code.go:232
↓ 10 callersMethodRawSetInt
RawSetInt does the equivalent of table[n]=v where table is the table at index and v is the value at the top of the stack. This function pops the valu
lua.go:1123
↓ 10 callersMethodReserveRegisters
(n int)
code.go:555
↓ 10 callersFunctionclear
(r []value)
vm.go:276
↓ 10 callersMethodread
(data interface{})
undump.go:33
↓ 10 callersMethodreadInt
()
undump.go:42
↓ 10 callersMethodupValue
(i int)
stack.go:20
↓ 10 callersMethodwriteInt
(i int)
dump.go:22
↓ 9 callersMethodPatchToHere
(list int)
code.go:507
↓ 9 callersMethodPushUnsigned
PushUnsigned pushes n onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushunsigned
lua.go:1447
↓ 9 callersMethodReplace
Replace moves the top element into the given valid index without shifting any element (therefore replacing the value at the given index), and then pop
lua.go:605
↓ 9 callersMethodToBoolean
ToBoolean converts the Lua value at index to a Go boolean. Like all tests in Lua, the only false values are false booleans and nil. Otherwise, all oth
lua.go:1411
↓ 9 callersMethodcall
Call a Go or Lua function. The function to be called is at function. The arguments are on the stack, right after the function. On return, all the resu
stack.go:370
↓ 9 callersMethodcheckMatch
(what, who rune, where int)
scanner.go:535
↓ 9 callersMethodcheckName
()
parser.go:23
↓ 9 callersFunctionexpectEqual
(t *testing.T, x, y interface{}, m string)
parser_test.go:88
↓ 9 callersFunctionisFalse
(s value)
types.go:63
↓ 9 callersMethodsave
(c rune)
scanner.go:141
↓ 9 callersMethodscanError
(message string, token rune)
scanner.go:101
↓ 9 callersMethodsetTop
(top int)
stack.go:150
↓ 9 callersMethodtableAt
(t value, key value)
vm.go:22
↓ 9 callersFunctionvalidate
(expected, actual interface{}, description string, t *testing.T)
undump_test.go:85
↓ 8 callersMethodConcatenate
(l1, l2 int)
code.go:515
↓ 8 callersMethodExpressionToAnyRegister
(e exprDesc)
code.go:684
next →1–100 of 673, ranked by callers