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

parse the children of a TypeParameters in class'

This commit is contained in:
joshvera 2017-09-06 09:49:46 +01:00
parent c82fa0e36d
commit df64cade7b

View File

@ -811,7 +811,7 @@ literal =
<|> makeTerm <$> symbol Regex <*> (Literal.TextElement <$> source) <|> makeTerm <$> symbol Regex <*> (Literal.TextElement <$> source)
class' :: Assignment class' :: Assignment
class' = makeClass <$> symbol Class <*> children ((,,,) <$> expression <*> (many typeParameter' <|> pure []) <*> (classHeritage' <|> pure []) <*> classBodyStatements) class' = makeClass <$> symbol Class <*> children ((,,,) <$> identifier <*> ((symbol TypeParameters *> children (many typeParameter')) <|> pure []) <*> (classHeritage' <|> pure []) <*> classBodyStatements)
where makeClass loc (expression, typeParams, classHeritage, statements) = makeTerm loc (Declaration.Class typeParams expression classHeritage statements) where makeClass loc (expression, typeParams, classHeritage, statements) = makeTerm loc (Declaration.Class typeParams expression classHeritage statements)
object :: Assignment object :: Assignment