1
1
mirror of https://github.com/github/semantic.git synced 2025-01-05 14:11:33 +03:00

Map short var declarations to var assignments

This commit is contained in:
joshvera 2017-01-17 13:19:46 -05:00
parent f3d29d894e
commit e97330fe83

View File

@ -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 []