mirror of
https://github.com/github/semantic.git
synced 2025-01-02 12:23:08 +03:00
Combine list splat parameter and arguments assignments
This commit is contained in:
parent
e61251f589
commit
a83a6a7e49
@ -154,7 +154,7 @@ expression = await
|
|||||||
<|> expressionList
|
<|> expressionList
|
||||||
<|> keywordArgument
|
<|> keywordArgument
|
||||||
<|> keywordIdentifier
|
<|> keywordIdentifier
|
||||||
<|> listSplatParameter
|
<|> listSplat
|
||||||
<|> literal
|
<|> literal
|
||||||
<|> memberAccess
|
<|> memberAccess
|
||||||
<|> notOperator
|
<|> notOperator
|
||||||
@ -175,8 +175,9 @@ typedDefaultParameter = symbol TypedDefaultParameter >>= \ loc -> children (make
|
|||||||
makeAnnotation loc identifier' type' value' = makeTerm loc (Type.Annotation (makeAssignment loc identifier' value') type')
|
makeAnnotation loc identifier' type' value' = makeTerm loc (Type.Annotation (makeAssignment loc identifier' value') type')
|
||||||
makeAssignment loc identifier' value' = makeTerm loc (Statement.Assignment identifier' value')
|
makeAssignment loc identifier' value' = makeTerm loc (Statement.Assignment identifier' value')
|
||||||
|
|
||||||
listSplatParameter :: Assignment
|
listSplat :: Assignment
|
||||||
listSplatParameter = makeTerm <$> symbol ListSplatParameter <*> (Syntax.Identifier <$> source)
|
listSplat = makeTerm <$> symbol ListSplatParameter <*> (Syntax.Identifier <$> source)
|
||||||
|
<|> makeTerm <$> symbol ListSplatArgument <*> (Syntax.Identifier <$> source)
|
||||||
|
|
||||||
dictionarySplat :: Assignment
|
dictionarySplat :: Assignment
|
||||||
dictionarySplat = makeTerm <$> symbol DictionarySplatParameter <*> (Syntax.Identifier <$> source)
|
dictionarySplat = makeTerm <$> symbol DictionarySplatParameter <*> (Syntax.Identifier <$> source)
|
||||||
|
Loading…
Reference in New Issue
Block a user