1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

remove comma from makeFunction

This commit is contained in:
joshvera 2017-08-21 19:16:28 -04:00
parent 1de404a679
commit 0921f1baa0

View File

@ -662,7 +662,7 @@ constraint = makeTerm <$> symbol Grammar.Constraint <*> children (Language.TypeS
function :: Assignment
function = makeFunction <$> symbol Grammar.Function <*> children ((,,) <$> identifier <*> callSignatureParts <*> statements)
where makeFunction loc (id, (typeParams, params, annotation), statements) = makeTerm loc (Declaration.Function [typeParams, annotation] id, params)
where makeFunction loc (id, (typeParams, params, annotation), statements) = makeTerm loc (Declaration.Function [typeParams, annotation] id params)
ty :: Assignment
ty = primaryType <|> unionType <|> intersectionType <|> functionTy <|> constructorTy