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:
parent
e9b5bdf7da
commit
c79dd6d6d8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user