1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Python assignment fixes

This commit is contained in:
Timothy Clem 2020-01-13 15:07:37 -08:00
parent 03e1498146
commit ec17dfb47a

View File

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