diff options
Diffstat (limited to 'spec/outputs/annotation_before.lua')
| -rw-r--r-- | spec/outputs/annotation_before.lua | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/spec/outputs/annotation_before.lua b/spec/outputs/annotation_before.lua new file mode 100644 index 0000000..874ef37 --- /dev/null +++ b/spec/outputs/annotation_before.lua | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | local B | ||
| 2 | do | ||
| 3 | local _class_0 | ||
| 4 | local _base_0 = { | ||
| 5 | getTag = function(self) | ||
| 6 | return "before" | ||
| 7 | end | ||
| 8 | } | ||
| 9 | if _base_0.__index == nil then | ||
| 10 | _base_0.__index = _base_0 | ||
| 11 | end | ||
| 12 | _class_0 = setmetatable({ | ||
| 13 | __init = function() end, | ||
| 14 | __base = _base_0, | ||
| 15 | __name = "B" | ||
| 16 | }, { | ||
| 17 | __index = _base_0, | ||
| 18 | __call = function(cls, ...) | ||
| 19 | local _self_0 = setmetatable({ }, _base_0) | ||
| 20 | cls.__init(_self_0, ...) | ||
| 21 | return _self_0 | ||
| 22 | end | ||
| 23 | }) | ||
| 24 | _base_0.__class = _class_0 | ||
| 25 | B = _class_0 | ||
| 26 | end | ||
| 27 | -- "before":B | ||
| 28 | local C | ||
| 29 | do | ||
| 30 | local _class_0 | ||
| 31 | local _base_0 = { | ||
| 32 | getTag = function(self) | ||
| 33 | return "after" | ||
| 34 | end | ||
| 35 | } | ||
| 36 | if _base_0.__index == nil then | ||
| 37 | _base_0.__index = _base_0 | ||
| 38 | end | ||
| 39 | _class_0 = setmetatable({ | ||
| 40 | __init = function() end, | ||
| 41 | __base = _base_0, | ||
| 42 | __name = "C" | ||
| 43 | }, { | ||
| 44 | __index = _base_0, | ||
| 45 | __call = function(cls, ...) | ||
| 46 | local _self_0 = setmetatable({ }, _base_0) | ||
| 47 | cls.__init(_self_0, ...) | ||
| 48 | return _self_0 | ||
| 49 | end | ||
| 50 | }) | ||
| 51 | _base_0.__class = _class_0 | ||
| 52 | C = _class_0 | ||
| 53 | end | ||
| 54 | -- "after":C | ||
| 55 | return B():getTag(), C():getTag() | ||
