1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Remove anonymousClass (TSX).

This commit is contained in:
Patrick Thomson 2019-09-17 12:11:54 -04:00
parent 022e8217a0
commit 456cc138f1

View File

@ -228,7 +228,6 @@ expression = handleError everything
jsxElement', jsxElement',
jsxFragment, jsxFragment,
class', class',
anonymousClass,
function, function,
arrowFunction, arrowFunction,
assignmentExpression, assignmentExpression,
@ -318,7 +317,6 @@ constructableExpression = choice [
, function , function
, arrowFunction , arrowFunction
, class' , class'
, anonymousClass
, parenthesizedExpression , parenthesizedExpression
, subscriptExpression , subscriptExpression
, memberExpression , memberExpression
@ -344,9 +342,6 @@ regex = makeTerm <$> symbol Grammar.Regex <*> (Literal.Regex <$> source)
null' :: Assignment Term null' :: Assignment Term
null' = makeTerm <$> symbol Null <*> (Literal.Null <$ rawSource) null' = makeTerm <$> symbol Null <*> (Literal.Null <$ rawSource)
anonymousClass :: Assignment Term
anonymousClass = makeTerm <$> symbol Grammar.AnonymousClass <*> children (Declaration.Class [] <$> emptyTerm <*> (classHeritage' <|> pure []) <*> classBodyStatements)
abstractClass :: Assignment Term abstractClass :: Assignment Term
abstractClass = makeTerm <$> symbol Grammar.AbstractClass <*> children (TSX.Syntax.AbstractClass <$> term typeIdentifier <*> (term typeParameters <|> emptyTerm) <*> (classHeritage' <|> pure []) <*> classBodyStatements) abstractClass = makeTerm <$> symbol Grammar.AbstractClass <*> children (TSX.Syntax.AbstractClass <$> term typeIdentifier <*> (term typeParameters <|> emptyTerm) <*> (classHeritage' <|> pure []) <*> classBodyStatements)