mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
Add <*> to class assignment
This commit is contained in:
parent
173660daec
commit
c75caedf65
@ -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 <*> (many typeParameter' <|> 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