1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Wrap function call name in term

This commit is contained in:
joshvera 2018-01-18 12:13:04 -05:00
parent 90a24bab28
commit 9bde03ad06

View File

@ -287,7 +287,7 @@ scopedCallExpression = makeTerm <$> symbol ScopedCallExpression <*> children (Ex
where makeMemberAccess loc expr memberName = makeTerm loc (Expression.MemberAccess expr memberName)
functionCallExpression :: Assignment
functionCallExpression = makeTerm <$> symbol FunctionCallExpression <*> children (Expression.Call [] <$> (qualifiedName <|> callableExpression) <*> arguments <*> emptyTerm)
functionCallExpression = makeTerm <$> symbol FunctionCallExpression <*> children (Expression.Call [] <$> (term (qualifiedName <|> callableExpression)) <*> arguments <*> emptyTerm)
callableExpression :: Assignment
callableExpression = choice [