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:
parent
f3d29d894e
commit
e97330fe83
@ -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 []
|
||||
|
Loading…
Reference in New Issue
Block a user