mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +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)
|
<|> makeTerm <$> symbol Regex <*> (Literal.TextElement <$> source)
|
||||||
|
|
||||||
class' :: Assignment
|
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
|
where superclass = pure <$ symbol Grammar.ClassHeritage <*> children expression
|
||||||
|
|
||||||
object :: Assignment
|
object :: Assignment
|
||||||
|
Loading…
Reference in New Issue
Block a user