AnnulusGames vor 1 Jahr
Ursprung
Commit
2ffdec3b79
1 geänderte Dateien mit 1 neuen und 8 gelöschten Zeilen
  1. 1 8
      src/Lua/CodeAnalysis/Compilation/LuaCompiler.cs

+ 1 - 8
src/Lua/CodeAnalysis/Compilation/LuaCompiler.cs

@@ -149,14 +149,7 @@ public sealed class LuaCompiler : ISyntaxNodeVisitor<ScopeCompilationContext, bo
             context.PushInstruction(Instruction.Jmp(0, 0), node.Position);
 
             context.StackPosition = r;
-            if (node.RightNode is IdentifierNode rightIdentifier)
-            {
-                LoadIdentifier(rightIdentifier.Name, context, rightIdentifier.Position, true);
-            }
-            else
-            {
-                node.RightNode.Accept(this, context);
-            }
+            node.RightNode.Accept(this, context);
 
             context.Function.Instructions[testJmpIndex].SBx = context.Function.Instructions.Length - testJmpIndex - 1;
         }