From 24b69f0dbd2d934183c43ebaaf6bcb3a847b9cf3 Mon Sep 17 00:00:00 2001 From: joshvera Date: Thu, 1 Dec 2016 16:06:56 -0500 Subject: [PATCH] Expand call expressions to take more than one argument --- src/Language/Go.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Language/Go.hs b/src/Language/Go.hs index 69e0205b2..e3956514f 100644 --- a/src/Language/Go.hs +++ b/src/Language/Go.hs @@ -71,6 +71,7 @@ termConstructor source sourceSpan name range children = case name of "if_statement" -> toIfStatement children "call_expression" -> withDefaultInfo $ case children of [id] -> S.FunctionCall id [] + id : rest -> S.FunctionCall id rest rest -> S.Error rest "const_declaration" -> toConsts children "const_spec" -> toConsts children