We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0457129 commit c90f91fCopy full SHA for c90f91f
src/Application/HydraScript.Application.CodeGeneration/Visitors/InstructionProvider.cs
@@ -249,9 +249,9 @@ public AddressedInstructions Visit(PrintStatement visitable)
249
250
result.AddRange(visitable.Expression.Accept(_expressionVisitor));
251
var name = result.OfType<Simple>().Last().Left!;
252
- result.Add(new AsString(name));
253
-
254
- result.Add(new Print((result[result.End] as AsString)!.Left!));
+ var nameAsString = new AsString(name);
+ result.Add(nameAsString);
+ result.Add(new Print(nameAsString.Left!));
255
256
return result;
257
}
0 commit comments