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:
parent
3ad2871193
commit
dd94bfc732
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user