1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 09:21:35 +03:00

remove do notation package dupe

This commit is contained in:
Ayman Nadeem 2018-06-01 14:28:02 -07:00
parent e9b5bdf7da
commit c79dd6d6d8

View File

@ -296,10 +296,6 @@ interface = makeTerm <$> symbol InterfaceDeclaration <*> children (normal <|> an
package :: Assignment
package = makeTerm <$> symbol PackageDeclaration <*> children (Java.Syntax.Package <$> someTerm expression)
package = do
loc <- symbol PackageDeclaration
c <- children $ do Java.Syntax.Package <$> someTerm expression
pure (makeTerm loc c)
enum :: Assignment
enum = makeTerm <$> symbol Grammar.EnumDeclaration <*> children (Java.Syntax.EnumDeclaration <$> term identifier <*> manyTerm enumConstant)