1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 04:10:29 +03:00

Assign dictionarySplat

This commit is contained in:
Rick Winfrey 2017-08-24 16:22:03 -07:00 committed by joshvera
parent 7b03af69a2
commit 6e579b09e8

View File

@ -200,6 +200,9 @@ argument = makeTerm <$> symbol ListSplatArgument <*> (Syntax.Identifier <$> sour
listSplat :: Assignment
listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)
dictionarySplat :: Assignment
dictionarySplat = makeTerm <$> symbol DictionarySplat <*> (Syntax.Identifier <$> source)
parameter :: Assignment
parameter = makeTerm <$> symbol DefaultParameter <*> children (Statement.Assignment <$> expression <*> expression)
<|> makeTerm <$> symbol ListSplatParameter <*> (Syntax.Identifier <$> source)