From e97330fe83d4df4778cf1cce6b017f35564b8318 Mon Sep 17 00:00:00 2001 From: joshvera Date: Tue, 17 Jan 2017 13:19:46 -0500 Subject: [PATCH] Map short var declarations to var assignments --- src/Language/Go.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/Go.hs b/src/Language/Go.hs index 62e220604..017ba317e 100644 --- a/src/Language/Go.hs +++ b/src/Language/Go.hs @@ -89,7 +89,7 @@ termConstructor source sourceSpan name range children _ = case name of -- TODO: Handle multiple var specs "var_declaration" -> toVarDecls children "var_spec" -> toVarAssignment children - "short_var_declaration" -> listToVarDecls children + "short_var_declaration" -> toVarAssignment children "if_statement" -> toIfStatement children "call_expression" -> withDefaultInfo $ case children of [id] -> S.FunctionCall id []