From 79853c7857f9d3c10ed64fcde77f53c277eab935 Mon Sep 17 00:00:00 2001 From: Tristan Brice Velloza Kildaire Date: Sat, 11 May 2024 10:57:39 +0200 Subject: [PATCH] FunctionCall - use a weight of `2` to fix re-ordering of ourselves when occuring as a `Statement` in the body of some `Container` which applies re-ordering --- source/tlang/compiler/symbols/data.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/tlang/compiler/symbols/data.d b/source/tlang/compiler/symbols/data.d index aebcf084..d81774c8 100644 --- a/source/tlang/compiler/symbols/data.d +++ b/source/tlang/compiler/symbols/data.d @@ -1144,6 +1144,9 @@ public final class FunctionCall : Call, MStatementSearchable, MStatementReplacea { super(functionName); this.arguments = arguments; + + /* Weighted as 2 */ + weight = 2; } public override string toString()