mirror of
https://github.com/github/semantic.git
synced 2024-12-19 04:41:47 +03:00
🔥 argument
This commit is contained in:
parent
6a2994f701
commit
3eded7f4eb
@ -116,8 +116,6 @@ expression = handleError (term everything)
|
|||||||
abcd = a <|> b <|> c <|> d
|
abcd = a <|> b <|> c <|> d
|
||||||
efil = e <|> f <|> i <|> l
|
efil = e <|> f <|> i <|> l
|
||||||
pstv = p <|> s <|> t <|> v
|
pstv = p <|> s <|> t <|> v
|
||||||
a = argument
|
|
||||||
<|> argumentList
|
|
||||||
a = argumentList
|
a = argumentList
|
||||||
<|> assertStatement
|
<|> assertStatement
|
||||||
<|> assignment'
|
<|> assignment'
|
||||||
@ -195,10 +193,6 @@ expressionList = mk <$> symbol ExpressionList <*> children (some expression)
|
|||||||
where mk _ [child] = child
|
where mk _ [child] = child
|
||||||
mk location children = makeTerm location children
|
mk location children = makeTerm location children
|
||||||
|
|
||||||
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 :: Assignment
|
||||||
listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)
|
listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user