Skip to content

Commit

Permalink
fix: function node children update (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
JankoLancer authored Nov 18, 2023
1 parent fdd917a commit 925787c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/ast/nodes/function.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FunctionNode extends SlotableNode<EquationRowNode> {

@override
FunctionNode updateChildren(List<EquationRowNode> newChildren) =>
copyWith(functionName: newChildren[0], argument: newChildren[2]);
copyWith(functionName: newChildren[0], argument: newChildren[1]);

@override
Map<String, Object?> toJson() => super.toJson()
Expand Down

0 comments on commit 925787c

Please sign in to comment.