1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
local a = setmetatable({
close = true,
}, {
__close = function(self)
return print("out of scope")
end
})
local b = setmetatable({ }, {
__add = function(left, right)
return right - left
end
})
local c = setmetatable({
key1 = true,
key2 = true
}, {
__add = add
})
local w = setmetatable({ }, {
[name] = 123,
["new"] = function(self, val)
return {
val
}
end
})
getmetatable(w)["new"](getmetatable(w)[name])
do
local _ <close> = setmetatable({ }, {
__close = function()
return print("out of scope")
end
})
end
local d, e = a.close, getmetatable(a).__close
local f = getmetatable(a):__close(1)
getmetatable(a).__add = function(x, y)
return x + y
end
do
local new = a.new
local close, closeA
do
local _obj_0 = getmetatable(a)
close, closeA = _obj_0.__close, _obj_0.__close
end
print(new, close, closeA)
end
do
local x, new, var, close, closeA, num, add, sub
x = 123
local _obj_0 = a.b.c
new, var = _obj_0.new, _obj_0.var
local _obj_1 = getmetatable(_obj_0)
close, closeA = _obj_1.__close, _obj_1.__close
_obj_1 = func()
num = _obj_1.num
local _obj_2 = getmetatable(_obj_1)
add, sub = _obj_2.__add, _obj_2.__sub
end
x.abc = 123
setmetatable(a.b, { })
setmetatable(func(), mt)
a = 1
setmetatable(b.c, mt)
d, e = "abc", nil
local is_same = getmetatable(a).__index == getmetatable(a).__index
setmetatable(a, {
__index = tb
})
getmetatable(a).__index = tb
getmetatable(a).__index = tb
local mt = getmetatable(a)
tb:func(#list)
do
local _obj_0 = getmetatable(tb)
_obj_0["func"](_obj_0, list)
end
do
local _obj_0 = getmetatable(tb)
_obj_0["func"](_obj_0, list)
end
local index, setFunc
do
local _obj_0 = getmetatable(require("module"))
index, setFunc = _obj_0.__index, _obj_0.__newindex
end
do
local _with_0 = tb
print(getmetatable(_with_0).__add, getmetatable(_with_0.x):__index("key"))
do
local _obj_0 = getmetatable(getmetatable(getmetatable(_with_0).__index).__add)
a = _obj_0["new"](_obj_0, 123)
end
b = t(#getmetatable(_with_0).__close.test)
c = t(#getmetatable(_with_0).__close(_with_0.test))
end
mt = getmetatable(a)
a = setmetatable({ }, mt)
a = setmetatable({ }, {
__index = mt
})
local index
index = getmetatable(a).__index
index = getmetatable(a).__index
do
local ctor, update
local _obj_0 = getmetatable(a)
ctor, update = _obj_0.new, _obj_0.update
end
do
local ctor, update
local _obj_0 = getmetatable(a)
ctor, update = _obj_0.new, _obj_0.update
end
local tb = { }
do
do
local _obj_0 = getmetatable(tb)
f = _obj_0["value" .. tostring(x < y)](_obj_0, 123, ...)
end
f((function(...)
local _obj_0 = getmetatable(tb)
return _obj_0['value'](_obj_0, 123, ...)
end)(...))
do
local _obj_0 = getmetatable(tb)
_obj_0[ [[ value
1
]]](_obj_0, 123, ...)
end
local _obj_0 = getmetatable(tb)
return _obj_0["value" .. tostring(x > y)](_obj_0, 123, ...)
end
do
do
local _obj_0 = getmetatable(tb)
f = _obj_0['value'](_obj_0, 123, ...)
end
f((function(...)
local _obj_0 = getmetatable(tb)
return _obj_0['value'](_obj_0, 123, ...)
end)(...))
do
local _obj_0 = getmetatable(tb)
_obj_0['value'](_obj_0, 123, ...)
end
local _obj_0 = getmetatable(tb)
return _obj_0['value'](_obj_0, 123, ...)
end
do
f = getmetatable(tb)["value"](123, ...)
f = getmetatable(tb)["value" .. tostring(x < y)](123, ...)
f(getmetatable(tb)['value'](123, ...))
getmetatable(tb)[ [[ value
1]]](123, ...)
return getmetatable(tb)["value" .. tostring(x > y)](123, ...)
end
return nil
|