From 9ec06997c53c952aa64a3594532bbff33732301f Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 14 Nov 2023 19:38:19 -0500 Subject: [PATCH] Function call indexing works --- src/abstract_tree/function_call.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/abstract_tree/function_call.rs b/src/abstract_tree/function_call.rs index 4c5863e..de6cd5a 100644 --- a/src/abstract_tree/function_call.rs +++ b/src/abstract_tree/function_call.rs @@ -18,10 +18,10 @@ impl AbstractTree for FunctionCall { fn from_syntax_node(source: &str, node: Node) -> Result { debug_assert_eq!("function_call", node.kind()); - let function_node = node.child(0).unwrap(); + let function_node = node.child(1).unwrap(); let mut arguments = Vec::new(); - for index in 1..node.child_count() { + for index in 2..node.child_count() - 1 { let node = node.child(index).unwrap(); if node.is_named() {