repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-function-call-8.lua.luau | luau | .luau | function_call(("hello" .. "darkness" .. "my" .. "old" .. "friend" .. "hello" .. "darkness" .. "my" .. "old" .. "friend" .. "!!!!!!!!!!!!"):call())
| 50 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-function-call-comments.lua.luau | luau | .luau | local AppRodux = RoactRodux.connect(
function(state, props)
return {
}
end
-- function(dispatch)
-- return {
-- setCrossSize = function(crossSize)
-- dispatch({
-- type = "SetCrossSize",
-- crossSize = crossSize
-- })
-- end
-- }
-- end
)(AppComponent) | 91 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-function-call.lua.luau | luau | .luau | call "string"
call {foo='bar',baz=1}
call (x,y, z) | 25 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-function-def-comments.lua.luau | luau | .luau | function func(
param_a -- description of a
, param_b -- description of b
) end
| 22 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-function-def-multiline.lua.luau | luau | .luau | function foo(foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo, barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr) end
function foo(foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo, barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)
end
function foobar(fooooo, barrrrrrrrrr, bazzzzzzzzzzzzzzz, fooooooooooo, ba... | 215 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-generic-for-multiline.lua.luau | luau | .luau | local function system(world)
for id, model, lasering, transform in world:query(Components.Model, Components.Lasering, Components.Transform, Components.Mothership) do
end
end
local function system(world)
for id, model, lasering, transform, id, model, lasering, transform, id, model, lasering, transform, id, model, la... | 182 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-generic-for.lua.luau | luau | .luau | for i,v in pairs(table) do print(i,v) end | 15 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-binop-comments-2.lua.luau | luau | .luau | local function logTiger(tiger, depth)
log(
string.rep(" ", depth) ..
"- " ..
-- need to explicitly coerce to a string
tiger.type and (tiger.type.name or tostring(tiger.type)) or "[r00t]",
"[" ..
tiger.commonExtraTentacles ..
(tiger.pendingPartyHats and "*" or "") ..
"]"
)
end
local function logTiger(tiger... | 173 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-binop-comments.lua.luau | luau | .luau | function foo(defaultExport)
if defaultExport == nil then
print(
"lazy: Expected the result of a dynamic import() call. "
.. "Instead received: %s\n\nYour code should look like: \n "
-- Break up imports to avoid accidentally parsing them as dependencies.
-- ROBLOX deviation: Lua syntax in message
... | 234 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-binop-rhs-precendence.lua.luau | luau | .luau | local function findMoney()
for _, existingObject in pairs(workspace:GetChildren()) do
if
existingObject:GetAttribute("MoneyID") == targetCash.id
and existingObject.Name == targetName .. ".money"
then
break
end
end
end
do
do
do
do
do
do
do
function Venue:inspectElectrics(ins... | 293 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-binop.lua.luau | luau | .luau | local foo = x ^ -- comment
y % -- comment
z - -- comment
a <= -- comment
b < -- comment
c >= -- comment
d
| 35 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-call-chain-comments.lua.luau | luau | .luau | -- A
a = A()
-- B
.B()
-- C
.C()
| 17 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-call-chains-2.lua.luau | luau | .luau | local output = Job
:new({
command = "stylua",
args = { "-" },
writer = api.nvim_buf_get_lines(bufnr, 0, -1, false),
})
:sync()
| 48 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-call-chains.lua.luau | luau | .luau | Promise.new():andThen(callThis):andThen(function() print("test") end):andThen()
Promise.new():andThen(callThis):andThen({
true
}):andThen()
this.is.a.large.start:andThen():andThen(function()
print("test")
end):andThen()
local f = this:andThen(callThis):andThen({
true
}).X.Y.Z
this:andThen(callThis):andThen(... | 161 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-equality-op.lua.luau | luau | .luau | assert(StringToHex(HexToString("05 e0 81 91 24 cb b2 2c 49 e2 0f 2e 8b 9a" .. " 47 56 9f fb fe ec d2 ff 1f")) == "05 e0 81 91 24 cb b2 2c 49 e2 0f 2e 8b 9a 47 56 9f fb fe ec d2 ff 1f") | 109 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-prefix-2.lua.luau | luau | .luau | do
do
local CreatedDirection = (
DirectionalCF * CFrame.fromOrientation(0, 0, RNG:NextNumber(0, TAU)) * CFrame.fromOrientation(
math.rad(RNG:NextNumber(
GunMainConfiguration.BulletMinSpreadAngle or GlobalConfiguration.DEFAULT_MIN_SPREAD_ANGLE,
GunMainConfiguration.BulletMaxSpreadAngle or GlobalConfi... | 115 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-hang-prefix.lua.luau | luau | .luau | ("foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" .. "barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr"):format()
do
("foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" .. "barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr"):format()
end
print(("fooooooooooooooooooooooooooooooooo... | 129 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-if-1.lua.luau | luau | .luau | if x == true then return end | 9 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-if-comments-3.lua.luau | luau | .luau | if true then
else
end
if true then
-- this is a comment
-- but this is another comment
-- and another one - we should hence indent the comments overall
else
end
| 44 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-if-comments.lua.luau | luau | .luau | if true then
-- foo
elseif bar then
-- bar
else
-- baz
end | 23 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-indented-multiline-comments.lua.luau | luau | .luau | function foo()
function bar()
function baz()
--[[
comment
]]
local x = 1
end
end
end | 34 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-index-comments.lua.luau | luau | .luau | local x = foo[
index -- test
]
foo[
var -- string
] = baz
local x = foo[
x -- string
][y][z][p
-- string
]
local x = foo[index --[[comment]]]
| 50 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-long-assignment-2.lua.luau | luau | .luau | do
local HitPart, HitPoint, HitNormal, HitMaterial = nil, Ray.Origin + Ray.Direction, Vector3.new(0, 1, 0), Enum.Material.Air
end | 42 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-long-assignment-3.lua.luau | luau | .luau | local something = fooooooooooooooo == barrrrrrrrrrrr and func(arggggggggggggggggggggggggggggggggggggggggg1, argggggggggg2) or somethingeeeeeeeeeeee
| 54 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-long-assignment-4.lua.luau | luau | .luau | do
do
local FrontDistanceX, FrontDistanceY =
self.settings.FWsBoneLen * math.cos(math.rad(self.settings.FWsBoneAngle)),
self.settings.FWsBoneLen * math.sin(math.rad(self.settings.FWsBoneAngle))
end
end
| 56 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-long-assignment.lua.luau | luau | .luau | local LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid = LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid
LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid = LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid
do
local LoadAddOn,... | 214 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiline-comments.lua.luau | luau | .luau | checkVisitorFnArgs(
expect,
ast,
{ ... },
true --[[ isEdited ]]
)
local test --[[foo]] = true
--[[test]]
local x = true | 39 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiline-expressions-2.lua.luau | luau | .luau | if not (one and two and three and not (four and five) and six and not (seven and eight and nine and ten and eleven and twelve and thirteen and fourteen and fifteen and sixteen and seventeen)) then
print("foo")
end
local longString = foo(
"We are wrapping this %s " .. "onto multiple lines " .. "for ease of editing an... | 184 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiline-expressions-3.lua.luau | luau | .luau | do
do
do
do
local text = "Players: " .. #Server_Container.ARandomVariableWhichIsVeryLongSoThatThisGetsOverTheColumnLimit.Players_F:GetChildren() - 1 .. "/20"
local ratio = (minAxis - minAxisSize) / delta * (self.props.maxScaleRatio - self.props.minScaleRatio) + self.props.minScaleRatio
local ratio2 = ... | 138 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiline-expressions-4.lua.luau | luau | .luau | function SetCallsign(Player, Callsign)
if Settings.PolicingSetup.Radio or (table.find(Settings.PolicingSetup.CallsignPrefix, string.sub(Callsign, 1, 2)) and tonumber(string.sub(Callsign, 3, 4))) then
Player:SetAttribute("Callsign", Callsign)
end
end | 73 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiline-expressions-indent-block.lua.luau | luau | .luau | local expr = first_______________________________________________________________________________________________________
and function()
foo()
end | 16 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiline-expressions.lua.luau | luau | .luau | if someReallyLongCondition and someOtherReallyLongCondition and somethingElse and someReallyLongCondition and someOtherReallyLongCondition and somethingElse then
print("foo")
end
foo = someReallyLongCondition * someOtherReallyLongCondition * somethingElse * someReallyLongCondition * someOtherReallyLongCondition * ... | 322 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-multiple-lines-betwen-statements.lua.luau | luau | .luau | local x = 1
local y = 2
local z = 3 | 17 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-number.lua.luau | luau | .luau | local a = 0.5
local b = .5
local c = 100
local d = 5e-5
local e = -.5
local f = .2e-5
local g = -.1e+5
local h = 0x12 | 60 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-repeat-block-2.lua.luau | luau | .luau | local function foo(bar)
local count = 0
repeat
count = count + 1
until count == 10
end | 30 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-repeat-block.lua.luau | luau | .luau | repeat x = x + 1 until true | 9 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-return-hanging-expression-2.lua.luau | luau | .luau | return cframe
-- Clamp & transform into world space
* Vector3.new(
math.clamp(transform.X, -halfSize.X, halfSize.X),
math.clamp(transform.Y, -halfSize.Y, halfSize.Y),
math.clamp(transform.Z, -halfSize.Z, halfSize.Z)
), cframe.Position
| 76 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-return-hanging-expression-3.lua.luau | luau | .luau | function foo()
return (
long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
+ long_variable_name
), (
long_variable_name
+ long_variable_name
+ long_variable... | 309 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-return-hanging-expression.lua.luau | luau | .luau | function foo()
return fooooooooooooooooooo(barrr) or foooooooooooooooooooooooooooooooooooooooooooooooooooooopppo(barrrrrrrrrrrrrr)(hello) or bazzzzzzzzzzzzzzzzzz
end
| 48 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-semicolon-1.lua.luau | luau | .luau | local x = 1; -- comment
do
return; -- bad
end; -- comment
local y; -- comment
z = 5; -- comment
repeat x = x + 1 until x > 5; -- comment
for x,y in pairs(z) do
break; -- comment
end; -- comment
if x then end; -- comment
function foo()
end; -- comment
local function bar()
end; -- comment
for i = 1, 10 do
end; -... | 148 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-semicolon-comments-ordering.lua.luau | luau | .luau | local foo = a <= b --[[ some block comment ]]; -- inline comment
fn() --[[ some block comment 2 ]]; -- inline comment 2
| 32 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-single-arg-function-calls.lua.luau | luau | .luau | do
do
do
do
do
do
jestExpect(ReactIs.typeOf(React.createElement(React.Profiler, { id = "foo", onRender = jest.fn() }))).toBe(ReactIs.Profiler)
end
end
end
end
end
end
| 70 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-string-brackets-index.lua.luau | luau | .luau | local foo = {
[ [[test]] ] = true,
}
foo[ [[test]] ] = false
| 23 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-string-escapes-2.lua.luau | luau | .luau | -- standard escapes
local a = "foo \a \b \f \n \r \t \v \\ \" \'"
-- decimal escapes
local b = "\000 \001 \189 \254 \255"
local b2 = "\1 \2 \71\9"
-- lua 5.2: hex escapes
local c = "hello \x77\x6f\x72\x6c\x64\x99"
-- lua 5.2: \z
local d = "hello \z test"
-- lua 5.3: utf8
local e = "\u{123} \u{255}"
-- wrong:
loca... | 145 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-string-escapes.lua.luau | luau | .luau | local foo = 'this \'string\' has \'escaped\' single quotes with "double quotes"'
local bar = "test \'foo\' \"bar\""
local baz = '\\"""' | 38 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-1.lua.luau | luau | .luau | local foo = {"bar", "baz", "foo", "bar", "baz", "foo", "bar", "baz", "foo", "bar", "baz", "foo", "bar", "baz", "foo", "bar", "baz"}
local foo = {"bar", "baz", "foo", "bar", "baz", "foo",
"bar", "baz", "foo", "bar", "baz", "foo", "bar",
"baz", "foo", "bar", "baz", "foo", "bar", "baz"}
local foo = {
} | 124 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-2.lua.luau | luau | .luau | local foo = { "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa", "aaaa" } | 49 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-3.lua.luau | luau | .luau | local foooooooooooooo = { "barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr" .. "bazzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"}
local barrrrrrrrrrrrr = { foooooooooooooooooo = "barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr" .. "bazzzzz... | 249 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-4.lua.luau | luau | .luau | local thisisathing = {this_is_one = "one", this_is_two = "two", this_is_three = "three", this_is_four = "four", f = "b"}
| 39 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-5.lua.luau | luau | .luau | a = {
key1 = string.format("test", "test", "test", "test", "test", "test", "test", "test", "test", "test", variable_names),
key2 = string.format("test", "test", "test", "test", "test", "test", "test", "test", "test", "test", variable_names),
}
| 80 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-comments.lua.luau | luau | .luau | local x = {
"foo", -- comment
"bar", -- test
"baz" -- test
}
local foo = {
MinSize = call(0, 0),
MaxSize = call(math.huge, 500) -- TODO: Set this up
}
local x = { -- comment
hello = "world",
foo = "bar",
}
local foo = { -- bar
}
local bar = { baz -- bar
}
local baz = {
-- foo
}
local foobar = {
"st... | 141 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-functions.lua.luau | luau | .luau | local foo = {} function foo.bar(baz) print(x,y) end | 15 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-multiline-fields.lua.luau | luau | .luau | local obj = { method1 = function(self) end, method2 = function(self, name) end }
local obj = { method1 = function(self) print(true) end, method2 = function(self, name) end }
local obj = { method1 = function(self) end, method2 = function(self, name) end, method3 = function(self) end, method4 = function(self, name) end... | 135 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-table-wrapping.lua.luau | luau | .luau | local foo = {
{"foobarbazfoobarbaz", "foobarbazfoobarbaz"},
{"foobarbazfoobarbaz", "foobarbazfoobarbaz"},
{"foobarbazfoobarbaz", "foobarbazfoobarbaz"},
{"foobarbazfoobarbaz", "foobarbazfoobarbaz"}
} | 57 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-while-1.lua.luau | luau | .luau | while true do
print("foo")
end | 12 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-lua-while-2.lua.luau | luau | .luau | function foo()
while NextFreq.Access ~= true and not Llama.List.find(NextFreq.Access, Players.LocalPlayer.Team.Name) and NextIndex > #Constants.RADIO_CHANNEL_ORDER do
print("test")
end
end | 46 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-anonymous-function-types.lua.luau | luau | .luau | local Object = {ClassName = "Object"}
Object.__tostring = function(self) return self.ClassName end
Object.__tostring = function(self): string
return self.ClassName
end | 40 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-compound_operators.lua.luau | luau | .luau | x += 1
x -= 7 | 14 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-function-call-comments-1.lua.luau | luau | .luau | do
for _, foo in
applyFoooooo(
aaaaaaaaaaaaaaaaaaaa, --[[:: Array<aaaaaaaaaaaaaaaaa>]]
bbbbbbbbbbbbbbbbbb --[[:: Array<bbbbbbbbbbbbbbb>]]
) :: Array<aaaaaaaaaaaaaaaaa | bbbbbbbbbbbbbbb>
do
end
end
| 70 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-function_types.lua.luau | luau | .luau | function test(x:any, y:number): bar print(test) end | 13 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-function_types_2.lua.luau | luau | .luau | local function foo(bar: Instance, baz: Instance, qux: Instance, quux: Instance, corge: Instance, grault: Instance, garply: Instance, waldo: Instance, fred: Instance, plugh: Instance, xyzzy: Instance, thud: Instance)
end | 61 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-function_types_3.lua.luau | luau | .luau | function foo(args: {
id: string,
fenderer: SubBassGuitar,
fendererInterface: BasGuitarInterface,
})
print("foo")
end
function foo(args: {
id: string,
fenderer: SubBassGuitar,
fendererInterface: BasGuitarInterface,
}, type: string)
print("foo")
end
local subs = {
amps.sub("fenderer-nations", function(
args:... | 135 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-generic-for-multiline.lua.luau | luau | .luau | for _id: number, transform: Components.Transform, angularControls: Components.AngularControls, characterModel: Components.CharacterModel in world:query(Transform, AngularControls, CharacterModel) do
-- ...
end
| 45 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-if-expression-4.lua.luau | luau | .luau | cache:writeQuery({
data = {
items = Array.concat({}, (function()
local ref = if Boing.toXYZBoxinf(data) and data ~= nil
then data.items
else data
return Boing.toXYZBoxinf(ref) and ref
end)() or {}, { item }),
},
})
local error_ = if errors and #(errors :: Array<any>) > 0
then ApolloError.new({ ... | 216 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-if-expression-comments.lua.luau | luau | .luau | local options = if useDisposableConcast
-- Disposable Concast fetches receive a shallow copy of this.options
-- (merged with newOptions), leaving this.options unmodified.
then compact(self.options, newOptions)
else Object.assign(self.options, compact(newOptions))
do
local state: S = if hook ~= nil
t... | 266 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-if-expression.lua.luau | luau | .luau | local scale = if someReallyLongFlagName() or someOtherReallyLongFlagName() then foo else bar
local scale = if someReallyLongFlagName() or someOtherReallyLongFlagName() then foooooooooooooBarrrrrrrrr else barrrrrrrrrBazzzzzz
local scale = if someReallyLongFlagName() or someOtherReallyLongFlagName() then Vector2.new(1,... | 503 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-large_example.lua.luau | luau | .luau | --!strict
type Array<T> = { [number]: T }
type Dictionary<T> = { [string]: T }
local RunService = game:GetService("RunService")
local INVALID_DUMP_VERSION = "API dump is an invalid version `%i` (expected version 1)"
local MODULE_NOT_READY_MESSAGE = "API has not been fetched yet; try using API.isReady() before callin... | 2,050 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-string-brackets-index.lua.luau | luau | .luau | local foo = {
[ [[test]] :: test ] = true,
}
foo[ [[test]] :: test ] = false
| 27 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-string-interpolation-table.lua.luau | luau | .luau | local x = `{ {1} }`
| 9 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-ascription-ambiguous-syntax.lua.luau | luau | .luau | local foo = bar;
(foo :: number).length = true | 12 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-callback-hang-parameters.lua.luau | luau | .luau | export type ObservableQueryFields<TData, TVariables> = ObservableQueryPick<TData, TVariables> & {
fetchMore: ((
_self: any,
fetchMoreOptions: FetchMoreQueryOptions<TVariables, TData> & FetchMoreOptions<TData, TVariables>
) -> Promise<ApolloQueryResult<TData>>) & ((<TData2, TVariables2>(
... | 313 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-callback-hanging-2.lua.luau | luau | .luau | export type XYZ = {
onSubmitTigerFoot: (
FendererID,
Object,
-- Added in v96.1 to support Prelifer priority lamerz
number?,
-- Added in v96.9 to support Star Refresh
boolean?
) -> (),
}
| 64 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-callback-hanging.lua.luau | luau | .luau | export type Thenable<R, U> = {
andTheeeeeeeeeeeeeeen: (any, (R) -> () | Thenable<R, U> | U, (any) -> () | Thenable<R, U> | U) -> () | Thenable<R, U>,
}
| 60 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-generic-variadics.lua.luau | luau | .luau | local function mergeDeep<T...>(...: T...) -- : TupleToIntersection<...T>
return mergeDeepArray({ ... })
end
| 29 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-hanging-3.lua.luau | luau | .luau | export type GraphQLInputType =
GraphQLScalarType
| GraphQLEnumType
| GraphQLInputObjectType
| GraphQLList<GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | GraphQLList<any> | GraphQLNonNull<GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | GraphQLList<GraphQLScalarType | GraphQLEnumType | ... | 166 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-hanging-intersection.lua.luau | luau | .luau | export type Cache_WriteOptions<TResult = any, TVariables = any> = Omit_id_from_DataProxy_Query<TVariables, TResult> & Omit_data_from_DataProxy_WriteOptions<TResult> & { dataId: string?, result: TResult }
| 49 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-hanging-multiline-comment.lua.luau | luau | .luau | export type CoverageReporterWithOptions<K> =
Array<string | Object> --[[ [K, Partial<ReportOptions[K]>] ]]
| nil
export type CoverageReporterWithOptions<K> =
Array<string | Object> --[[ [K, Partial<ReportOptions[K]>] ]]
& nil
| 60 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-hanging.lua.luau | luau | .luau | export type IntrospectionType = IntrospectionScalarType | IntrospectionObjectType | IntrospectionInterfaceType | IntrospectionUnionType | IntrospectionEnumType | IntrospectionInputObjectType
export type IntrospectionOutputType = IntrospectionScalarType | IntrospectionObjectType | IntrospectionInterfaceType | Introspec... | 104 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-multiline-comments.lua.luau | luau | .luau | -- Shouldn't hang since multiline comments arent an issue
export type GraphQLEnumType = --[[ <T> ]]{
name: string,
description: string?,
extensions: ReadOnlyObjMap<any>?,
astNode: EnumTypeDefinitionNode?,
extensionASTNodes: Array<EnumTypeExtensionNode>?,
_values: Array<GraphQLEnumValue --[[ <T> ]]>,
_valueLoo... | 274 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-parentheses-comments.lua.luau | luau | .luau | function foo(): (
nil -- Some comment
)
return nil
end
type X = (
string,
number -- testing
) -> (
number,
string -- testing
)
| 35 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-parentheses-multiline.lua.luau | luau | .luau | type PseudoEnumItemConstructor = (((GuiThemeTypeEnum, string) -> GuiThemeType) & ((GuiBrandTypeEnum, string) -> GuiBrandType) & ((GuiStateModifierEnum, string) -> GuiStateModifier) & ((GuiBrandTypeEnum, string) -> GuiBrandType) & ((GuiStateModifierEnum, string) -> GuiStateModifier) & ((GuiDensityModifierEnum, string) -... | 259 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type-tables-comments.lua.luau | luau | .luau | export type Foo = {
test: boolean -- true
}
| 12 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type_parameter_comments.lua.luau | luau | .luau | function foo(
bar: number,
baz: number -- test
): number
print("test")
end | 22 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-type_tables.lua.luau | luau | .luau | type PromptSettings = {
object: string,
action: string,
holdDuration: number,
keyboardKey: KeyCode,
gamepadKey: KeyCode,
distance: number,
lineOfSight: boolean,
offset: Vector2,
}
export type Sprite = {
Image: string, ImageRectOffset: Vector2, ImageRectSize: Vector2 }
| 77 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-types-declaration-equal-hang.lua.luau | luau | .luau | type SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData> =
watchQueryOptionsModule.SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData>
| 37 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-types-generic-pack.lua.luau | luau | .luau | type X = {
useMemo: <T...>(nextCreate: () -> T..., deps: Array<any> | nil) -> T...,
}
| 31 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-types_comments.lua.luau | luau | .luau | export type IntrospectionNamedTypeRef<
T, -- TODO: add generic constraints and default types: IntrospectionType = IntrospectionType,
P
> = {
kind: any, -- deviation: add this type spec later: $PropertyType<T, 'kind'>,
name: string,
ofType: T -- TODO: this field is missing
}
export type ReactScopeQuery = (
s... | 197 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/stylua-luau-types_example.lua.luau | luau | .luau | local srcWorkspace = script.Parent.Parent
local PromiseModule = require(srcWorkspace.luaUtils.Promise)
type Promise<T> = PromiseModule.Promise<T>
type Resolver<T, U> = any
type Result = any
export type SubscriptionArgs = {
rootValue: any?,
contextValue: any?,
variableValues: { [string]: any },
operatio... | 192 |
ryanlua/roblox-studio-vscode-theme | ryanlua-roblox-studio-vscode-theme-3690651/tests/type-functions.luau | luau | .luau | type function UserDefinedTypeFunction(Foo: type, Bar: type, Qux: type): type
return types.intersectionof(Foo, Bar, Qux)
end
export type function ExportUserDefinedTypeFunction(Foo: type, Bar: type, Qux: type): type
return types.unionof(Foo, Bar, Qux)
end | 75 |
Fear-for-Fun/classy | Fear-for-Fun-classy-311d7ee/lib/init.luau | luau | .luau | --!strict
--[[
Classy: A Classy is useful because writing code for instances becomes much better!
Author: Jaeymo
Version: 1.6.0
License: MIT
Created: 01/18/2026
For issues or feedback message `jaeymo` on Discord!
]]
local CollectionService = game:GetService("CollectionService")
local Packages = script.Parent
... | 3,623 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/.config.luau | luau | .luau | return {
lute = {
lint = {
ignores = {
'scripts/build-roblox-bundle.luau',
'vendor/**',
'luau_packages/**',
'Packages/**',
},
},
},
luau = {
languagemode = 'strict',
aliases = {
lune = '~/.lune/.typedefs/0.10.5/',
lutest = '.',
core = 'core',
lib = 'lib',
runtimes = 'runt... | 218 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/command.luau | luau | .luau | const errors = require '@core/errors'
const suggest = require '@lutest/utils/suggest'
const t = require '@lutest_release'
export type ParsedCommand = {
kind: 'help'
| 'debug_bundle'
| 'doctor'
| 'setup'
| 'test'
| 'todo'
| 'version'
| 'error',
paths: { string }?,
runtime: 'lute' | 'roblox'?,
config_p... | 3,050 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/doctor.luau | luau | .luau | const fs = require '@std/fs'
const config = require '@runtimes/lute/config'
const bundle = require '@runtimes/roblox/bundle'
const credentials = require '@runtimes/roblox/credentials'
const path_utils = require '@lutest/utils/path'
const ui = require '@lutest/utils/ui'
const t = require '@lutest_release'
type ProjectC... | 2,322 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/help.luau | luau | .luau | const ui = require '@lutest/utils/ui'
const t = require '@lutest_release'
const function format_help(): string
return table.concat({
ui.accent.bold 'Lutest',
ui.muted 'A modern test runner for Luau',
'',
ui.section 'Usage',
' lutest <command> [options]',
'',
ui.section 'Run tests',
' test [paths...]... | 537 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/init.luau | luau | .luau | const process = require '@std/process'
const errors = require '@core/errors'
const tty = require '@lutest/utils/tty'
const command = require '@self/command'
const doctor = require '@self/doctor'
const help = require '@self/help'
const setup = require '@self/setup'
const version = require '@self/version'
const reporter ... | 1,714 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/reporter.luau | luau | .luau | const types = require '@core/types'
const path_utils = require '@lutest/utils/path'
const ui = require '@lutest/utils/ui'
const t = require '@lutest_release'
export type TestSuiteResult = types.TestSuiteResult
export type FailedTestResult = types.FailedTestResult
export type TodoTest = {
name: string,
mode: 'todo',
... | 4,416 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/todo.luau | luau | .luau | const reporter = require '@self/reporter'
const t = require '@lutest_release'
export type TodoTest = reporter.TodoTest
export type TodoSuite = reporter.TodoSuite
const function collect_remote_todo_suites(
results: { reporter.TestSuiteResult }
): (
{ TodoSuite },
{ reporter.TestSuiteResult }
)
const todo_suites = ... | 533 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/cli/version.luau | luau | .luau | const t = require '@lutest_release'
const version = require '@core/version'
const function format_version(): string
return `lutest {version.VALUE}`
end
const function print_version()
print(format_version())
end
t.test('should format version output', function()
assert(format_version() == 'lutest 0.7.1')
end)
retu... | 87 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/core/errors.luau | luau | .luau | const stringext = require '@std/stringext'
const ui = require '@lutest/utils/ui'
const t = require '@lutest_release'
export type ErrorContext = {
where: string?,
command: string?,
highlight: string?,
suggestion: string?,
how_to_fix: string?,
details: string?,
}
const SENTINEL = '\31lutest:'
const function appe... | 1,313 |
lutest-dev/lutest | lutest-dev-lutest-8e0fbb4/core/executor.luau | luau | .luau | const types = require '@core/types'
const context = require '@lib/context'
export type TestSpec = types.TestSpec
export type TestResult = types.TestResult
export type TestSuite = types.TestSuite
export type TestSuiteResult = types.TestSuiteResult
export type LifecycleFailure = types.LifecycleFailure
export type TestSc... | 1,466 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.