1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Order matters here - fix parse-examples

This commit is contained in:
Timothy Clem 2018-04-09 13:39:17 -07:00
parent a29af60bf2
commit 7b54a26859

View File

@ -307,7 +307,7 @@ methodCall = makeTerm' <$> symbol MethodCall <*> children (require <|> load <|>
nameExpression = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children expression nameExpression = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children expression
call :: Assignment call :: Assignment
call = makeTerm <$> symbol Call <*> children (Expression.MemberAccess <$> expression <*> (expressions <|> args)) call = makeTerm <$> symbol Call <*> children (Expression.MemberAccess <$> expression <*> (args <|> expressions))
where where
args = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children expressions args = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children expressions