mirror of
https://github.com/github/semantic.git
synced 2025-01-02 12:23:08 +03:00
TypeCaseClause seems (?) to have gone away
This commit is contained in:
parent
3ea0361bb0
commit
e3b0b65a87
@ -231,7 +231,6 @@ types =
|
|||||||
, typeDeclaration
|
, typeDeclaration
|
||||||
, typeIdentifier
|
, typeIdentifier
|
||||||
, typeCase
|
, typeCase
|
||||||
, typeCaseClause
|
|
||||||
, typeSwitchStatement
|
, typeSwitchStatement
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -498,16 +497,13 @@ typeAssertion = makeTerm <$> symbol TypeAssertionExpression <*> children (Go.Syn
|
|||||||
typeCase :: Assignment Term
|
typeCase :: Assignment Term
|
||||||
typeCase = symbol TypeCase *> children expressions
|
typeCase = symbol TypeCase *> children expressions
|
||||||
|
|
||||||
typeCaseClause :: Assignment Term
|
|
||||||
typeCaseClause = makeTerm <$> symbol TypeCaseClause <*> children (Statement.Pattern <$> expression <*> expressions)
|
|
||||||
|
|
||||||
typeConversion :: Assignment Term
|
typeConversion :: Assignment Term
|
||||||
typeConversion = makeTerm <$> symbol TypeConversionExpression <*> children (Go.Syntax.TypeConversion <$> expression <*> expression)
|
typeConversion = makeTerm <$> symbol TypeConversionExpression <*> children (Go.Syntax.TypeConversion <$> expression <*> expression)
|
||||||
|
|
||||||
typeSwitchStatement :: Assignment Term
|
typeSwitchStatement :: Assignment Term
|
||||||
typeSwitchStatement = makeTerm <$> symbol TypeSwitchStatement <*> children (Go.Syntax.TypeSwitch <$> typeSwitchSubject <*> expressions)
|
typeSwitchStatement = makeTerm <$> symbol TypeSwitchStatement <*> children (Go.Syntax.TypeSwitch <$> typeSwitchSubject <*> expressions)
|
||||||
where
|
where
|
||||||
typeSwitchSubject = makeTerm <$> location <*> manyTermsTill expression (void (symbol TypeCaseClause)) <|> emptyTerm
|
typeSwitchSubject = makeTerm <$> location <*> manyTermsTill expression (void (symbol TypeCase)) <|> emptyTerm
|
||||||
|
|
||||||
unaryExpression :: Assignment Term
|
unaryExpression :: Assignment Term
|
||||||
unaryExpression = makeTerm' <$> symbol UnaryExpression <*> ( notExpression
|
unaryExpression = makeTerm' <$> symbol UnaryExpression <*> ( notExpression
|
||||||
|
Loading…
Reference in New Issue
Block a user