1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 20:31:55 +03:00

Assign listSplat

This commit is contained in:
Rick Winfrey 2017-08-24 16:21:55 -07:00
parent 8d91e7344c
commit 840bef4fbf

View File

@ -194,6 +194,8 @@ argument :: Assignment
argument = makeTerm <$> symbol ListSplatArgument <*> (Syntax.Identifier <$> source)
<|> makeTerm <$> symbol DictionarySplatArgument <*> (Syntax.Identifier <$> source)
<|> makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment <$> expression <*> expression)
listSplat :: Assignment
listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)
parameter :: Assignment
parameter = makeTerm <$> symbol DefaultParameter <*> children (Statement.Assignment <$> expression <*> expression)