1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Can have splats without identifiers

This commit is contained in:
Timothy Clem 2020-01-14 08:37:58 -08:00
parent 8a786e0033
commit caf66da7ac

View File

@ -128,10 +128,10 @@ expressionList :: Assignment (Term Loc)
expressionList = makeTerm'' <$> symbol ExpressionList <*> children (someTerm expression) expressionList = makeTerm'' <$> symbol ExpressionList <*> children (someTerm expression)
listSplat :: Assignment (Term Loc) listSplat :: Assignment (Term Loc)
listSplat = makeTerm <$> symbol ListSplat <*> children (someTerm expression) listSplat = makeTerm <$> symbol ListSplat <*> children (manyTerm expression)
dictionarySplat :: Assignment (Term Loc) dictionarySplat :: Assignment (Term Loc)
dictionarySplat = makeTerm <$> symbol DictionarySplat <*> children (someTerm expression) dictionarySplat = makeTerm <$> symbol DictionarySplat <*> children (manyTerm expression)
keywordArgument :: Assignment (Term Loc) keywordArgument :: Assignment (Term Loc)
keywordArgument = makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment [] <$> term expression <*> term expression) keywordArgument = makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment [] <$> term expression <*> term expression)