1
1
mirror of https://github.com/github/semantic.git synced 2025-01-05 22:28:10 +03:00

Rb.Assignment

This commit is contained in:
Ayman Nadeem 2020-05-13 14:34:19 -04:00
parent 83b3c6a0a0
commit 23df2d5316

View File

@ -365,7 +365,7 @@ instance ToTags Rb.Assignment where
introduceLhsLocals xs = for_ xs $ \x -> case x of
EPrj (Rb.Lhs (Prj (Rb.Variable (Prj Rb.Identifier {text})))) -> modify (text :)
EPrj Rb.DestructuredLeftAssignment {extraChildren} -> introduceLhsLocals extraChildren
Prj Rb.RestAssignment {extraChildren = Just (Rb.Lhs (Prj (Rb.Variable (Prj Rb.Identifier {text}))))} -> modify (text :)
EPrj Rb.RestAssignment {extraChildren = Just (Parse.Success (Rb.Lhs (Prj (Rb.Variable (Prj Rb.Identifier {text})))))} -> modify (text :)
_ -> pure ()
instance ToTags Rb.OperatorAssignment where