From ae564763083c4beae12efb1916d62c01230c3971 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 22 Feb 2017 17:49:25 -0500 Subject: [PATCH] Remove var_assignment and VarAssignment case --- src/Language/JavaScript.hs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Language/JavaScript.hs b/src/Language/JavaScript.hs index e977d5e72..a43b06345 100644 --- a/src/Language/JavaScript.hs +++ b/src/Language/JavaScript.hs @@ -27,7 +27,6 @@ termAssignment _ category children -> Just $ S.MethodCall target method (toList . unwrap =<< args) (FunctionCall, function : args) -> Just $ S.FunctionCall function (toList . unwrap =<< args) (Ternary, condition : cases) -> Just $ S.Ternary condition cases - (VarAssignment, [ x, y ]) -> Just $ S.VarAssignment x y (VarDecl, _) -> Just . S.Indexed $ toVarDeclOrAssignment <$> children (Object, _) -> Just . S.Object Nothing $ foldMap toTuple children (DoWhile, [ expr, body ]) -> Just $ S.DoWhile expr body @@ -112,7 +111,6 @@ categoryForJavaScriptProductionName name = case name of "subscript_access" -> SubscriptAccess "regex" -> Regex "template_string" -> TemplateString - "var_assignment" -> VarAssignment "variable_declaration" -> VarDecl "trailing_variable_declaration" -> VarDecl "switch_statement" -> Switch