mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Can have splats without identifiers
This commit is contained in:
parent
8a786e0033
commit
caf66da7ac
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user