diff options
| author | jantuomi <jans.tuomi@gmail.com> | 2016-08-05 09:57:02 +0300 |
|---|---|---|
| committer | jantuomi <jans.tuomi@gmail.com> | 2016-08-05 09:57:02 +0300 |
| commit | f8f6ecfce7f030522f500327c76c268aa45ca978 (patch) | |
| tree | bd0ee0564496fde8cceeee91504f754337356f13 /src/main/com/jantuomi | |
| parent | e638ff7deab87bf4a5409f5c228d04ee3c57df48 (diff) | |
Fix bug where function parameters were evaluated twice
Diffstat (limited to 'src/main/com/jantuomi')
| -rw-r--r-- | src/main/com/jantuomi/tunkki/core/parser/ast/SymbolNode.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/com/jantuomi/tunkki/core/parser/ast/SymbolNode.java b/src/main/com/jantuomi/tunkki/core/parser/ast/SymbolNode.java index 6eccabf..d85697a 100644 --- a/src/main/com/jantuomi/tunkki/core/parser/ast/SymbolNode.java +++ b/src/main/com/jantuomi/tunkki/core/parser/ast/SymbolNode.java @@ -8,6 +8,7 @@ import com.jantuomi.tunkki.exception.types.TunkkiError; import com.jantuomi.tunkki.exception.types.UndeclaredSymbolTunkkiError; import java.util.ArrayList; +import java.util.Collections; import java.util.List; /** @@ -45,8 +46,7 @@ public class SymbolNode extends ASTNode { Datatype returnValue; try { - List<Datatype> paramValues = evaluateParameters(); - returnValue = State.getInstance().evaluateSymbol(name, paramValues); + returnValue = State.getInstance().evaluateSymbol(name, Collections.emptyList()); } /* If a TunkkiError is caught, pass it on with line information */ |
