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

Assign listSplat

This commit is contained in:
Rick Winfrey 2017-08-24 16:21:55 -07:00 committed by joshvera
parent 9f1d1f43b9
commit 7b03af69a2

View File

@ -197,6 +197,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)