1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 02:14:20 +03:00

🔥 argument

This commit is contained in:
Rick Winfrey 2017-08-24 16:22:59 -07:00 committed by joshvera
parent 1bb5cf5a13
commit 446e143ee3

View File

@ -119,8 +119,6 @@ expression = handleError (term everything)
abcd = a <|> b <|> c <|> d
efil = e <|> f <|> i <|> l
pstv = p <|> s <|> t <|> v
a = argument
<|> argumentList
a = argumentList
<|> assertStatement
<|> assignment'
@ -198,10 +196,6 @@ expressionList = mk <$> symbol ExpressionList <*> children (some expression)
where mk _ [child] = child
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 = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)