diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/MoonP/moon_compiler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/MoonP/moon_compiler.cpp b/src/MoonP/moon_compiler.cpp index 271bc06..6ce4e48 100644 --- a/src/MoonP/moon_compiler.cpp +++ b/src/MoonP/moon_compiler.cpp | |||
@@ -4115,13 +4115,14 @@ private: | |||
4115 | } | 4115 | } |
4116 | _buf << indent(1) << "__base = "sv << baseVar; | 4116 | _buf << indent(1) << "__base = "sv << baseVar; |
4117 | if (!className.empty()) { | 4117 | if (!className.empty()) { |
4118 | _buf << ","sv << nll(classDecl) << indent(1) << "__name = "sv << className << (extend ? s(","sv) : Empty) << nll(classDecl); | 4118 | _buf << ","sv << nll(classDecl); |
4119 | } else { | 4119 | _buf << indent(1) << "__name = "sv << className; |
4120 | _buf << (extend ? s(","sv) : Empty) << nll(classDecl); | ||
4121 | } | 4120 | } |
4122 | if (extend) { | 4121 | if (extend) { |
4123 | _buf << indent(1) << "__parent = "sv << parentVar << nll(classDecl); | 4122 | _buf << ","sv << nll(classDecl); |
4123 | _buf << indent(1) << "__parent = "sv << parentVar; | ||
4124 | } | 4124 | } |
4125 | _buf << nll(classDecl); | ||
4125 | _buf << indent() << "}, {"sv << nll(classDecl); | 4126 | _buf << indent() << "}, {"sv << nll(classDecl); |
4126 | if (extend) { | 4127 | if (extend) { |
4127 | _buf << indent(1) << "__index = function(cls, name)"sv << nll(classDecl); | 4128 | _buf << indent(1) << "__index = function(cls, name)"sv << nll(classDecl); |