From e3b0b65a87b891f43281a21169d6fc7e9a5bfd61 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Tue, 17 Sep 2019 12:26:55 -0400 Subject: [PATCH] TypeCaseClause seems (?) to have gone away --- src/Language/Go/Assignment.hs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Language/Go/Assignment.hs b/src/Language/Go/Assignment.hs index aac0eeb87..9e21fb064 100644 --- a/src/Language/Go/Assignment.hs +++ b/src/Language/Go/Assignment.hs @@ -231,7 +231,6 @@ types = , typeDeclaration , typeIdentifier , typeCase - , typeCaseClause , typeSwitchStatement ] @@ -498,16 +497,13 @@ typeAssertion = makeTerm <$> symbol TypeAssertionExpression <*> children (Go.Syn typeCase :: Assignment Term typeCase = symbol TypeCase *> children expressions -typeCaseClause :: Assignment Term -typeCaseClause = makeTerm <$> symbol TypeCaseClause <*> children (Statement.Pattern <$> expression <*> expressions) - typeConversion :: Assignment Term typeConversion = makeTerm <$> symbol TypeConversionExpression <*> children (Go.Syntax.TypeConversion <$> expression <*> expression) typeSwitchStatement :: Assignment Term typeSwitchStatement = makeTerm <$> symbol TypeSwitchStatement <*> children (Go.Syntax.TypeSwitch <$> typeSwitchSubject <*> expressions) where - typeSwitchSubject = makeTerm <$> location <*> manyTermsTill expression (void (symbol TypeCaseClause)) <|> emptyTerm + typeSwitchSubject = makeTerm <$> location <*> manyTermsTill expression (void (symbol TypeCase)) <|> emptyTerm unaryExpression :: Assignment Term unaryExpression = makeTerm' <$> symbol UnaryExpression <*> ( notExpression