Skip to content

Commit 021a3ff

Browse files
committed
truly -> truthy
1 parent 082327a commit 021a3ff

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

script/vm/compiler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ local compilerSwitch = util.switch()
14471447
vm.setNode(source, node2)
14481448
else
14491449
vm.getNode(source):merge(node1)
1450-
vm.getNode(source):setTruly()
1450+
vm.getNode(source):setTruthy()
14511451
vm.getNode(source):merge(node2)
14521452
end
14531453
end

script/vm/node.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function mt:isNullable()
114114
end
115115

116116
---@return vm.node
117-
function mt:setTruly()
117+
function mt:setTruthy()
118118
if self.optional == true then
119119
self.optional = nil
120120
end

script/vm/runner.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mt.index = 1
1616
---@field _hasSorted boolean
1717

1818
---@class vm.runner.step
19-
---@field type 'truly' | 'falsy' | 'as' | 'add' | 'remove' | 'object' | 'save' | 'load' | 'merge'
19+
---@field type 'truthy' | 'falsy' | 'as' | 'add' | 'remove' | 'object' | 'save' | 'load' | 'merge'
2020
---@field pos integer
2121
---@field order? integer
2222
---@field node? vm.node
@@ -49,7 +49,7 @@ function mt:_compileNarrowByFilter(filter, outStep, blockStep)
4949
local exp = filter[1]
5050
if exp.type == 'getlocal' and exp.node == self.loc then
5151
self.steps[#self.steps+1] = {
52-
type = 'truly',
52+
type = 'truthy',
5353
pos = filter.finish,
5454
ref1 = outStep,
5555
}
@@ -125,7 +125,7 @@ function mt:_compileNarrowByFilter(filter, outStep, blockStep)
125125
ref1 = outStep,
126126
}
127127
self.steps[#self.steps+1] = {
128-
type = 'truly',
128+
type = 'truthy',
129129
copy = true,
130130
pos = filter.finish,
131131
ref1 = blockStep,
@@ -261,7 +261,7 @@ local function checkAssert(loc, node)
261261
if parent.type == 'callargs'
262262
and parent.parent.node.special == 'assert'
263263
and parent[1] == loc then
264-
node:setTruly()
264+
node:setTruthy()
265265
end
266266
return node
267267
end
@@ -281,8 +281,8 @@ function mt:launch(callback)
281281
context.node = node
282282
end
283283
end
284-
if step.type == 'truly' then
285-
node:setTruly()
284+
if step.type == 'truthy' then
285+
node:setTruthy()
286286
elseif step.type == 'falsy' then
287287
node:setFalsy()
288288
elseif step.type == 'as' then

0 commit comments

Comments
 (0)