aboutsummaryrefslogtreecommitdiff
path: root/code_obj.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-17 14:38:05 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-17 14:39:08 -0800
commit7f47d4204039258cec78c767f489b7809b4257ff (patch)
treec8533068b75ab453accfe1f688705e9e94c9e279 /code_obj.lua
parent34a3dd22a4e132bd4e0fe3ce89831c3fe761d3d9 (diff)
In-progress (but working) overhaul of some elements including: function
calls, lib/thing.nom API, multi-assignments, varargs, etc.
Diffstat (limited to 'code_obj.lua')
-rw-r--r--code_obj.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/code_obj.lua b/code_obj.lua
index 376ee0c..69b7976 100644
--- a/code_obj.lua
+++ b/code_obj.lua
@@ -77,7 +77,6 @@ local Code
do
local _class_0
local _base_0 = {
- is_code = true,
text = function(self)
if self.__str == nil then
local buff, indent = { }, 0
@@ -169,7 +168,7 @@ do
_continue_0 = true
break
end
- if b.is_code then
+ if type(b) ~= 'string' then
b.dirty = error
end
bits[#bits + 1] = b
@@ -223,7 +222,7 @@ do
end
end
bits[#bits + 1] = b
- if b.is_code then
+ if type(b) ~= 'string' then
b.dirty = error
end
if not (type(b) == 'string') then
@@ -246,7 +245,7 @@ do
end
for i = 1, n do
local b = select(i, ...)
- if b.is_code then
+ if type(b) ~= 'string' then
b.dirty = error
end
bits[i] = b