1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 18:36:27 +03:00

Fix typeParameters in class assignment

This commit is contained in:
joshvera 2017-08-21 18:50:50 -04:00
parent 3ad2871193
commit dd94bfc732

View File

@ -555,7 +555,7 @@ literal =
<|> makeTerm <$> symbol Regex <*> (Literal.TextElement <$> source)
class' :: Assignment
class' = makeTerm <$> symbol Class <*> children (Declaration.Class <$> expression <*> ((pure . (:[]) <$> typeParameters) <|> pure []) (superclass <|> pure []) <*> classBodyStatements)
class' = makeTerm <$> symbol Class <*> children (Declaration.Class <$> expression <*> (many typeParameter' <|> pure []) (superclass <|> pure []) <*> classBodyStatements)
where superclass = pure <$ symbol Grammar.ClassHeritage <*> children expression
object :: Assignment