mirror of
https://github.com/github/semantic.git
synced 2025-01-01 11:46:14 +03:00
Ignore EnumBody in enumDeclaration
This commit is contained in:
parent
cd4612c512
commit
0a935efc77
@ -611,7 +611,7 @@ typeAliasDeclaration = makeTypeAliasDecl <$> symbol Grammar.TypeAliasDeclaration
|
|||||||
where makeTypeAliasDecl loc (identifier, typeParams, body) = makeTerm loc (Declaration.TypeAliasDeclaration [typeParams] identifier body)
|
where makeTypeAliasDecl loc (identifier, typeParams, body) = makeTerm loc (Declaration.TypeAliasDeclaration [typeParams] identifier body)
|
||||||
|
|
||||||
enumDeclaration :: Assignment
|
enumDeclaration :: Assignment
|
||||||
enumDeclaration = makeTerm <$> symbol Grammar.EnumDeclaration <*> children (TypeScript.Syntax.EnumDeclaration <$> term identifier <*> manyTerm (propertyName <|> enumAssignment))
|
enumDeclaration = makeTerm <$> symbol Grammar.EnumDeclaration <*> children (TypeScript.Syntax.EnumDeclaration <$> term identifier <*> (symbol EnumBody *> children (manyTerm (propertyName <|> enumAssignment))))
|
||||||
|
|
||||||
enumAssignment :: Assignment
|
enumAssignment :: Assignment
|
||||||
enumAssignment = makeTerm <$> symbol Grammar.EnumAssignment <*> children (Statement.Assignment [] <$> term propertyName <*> term expression)
|
enumAssignment = makeTerm <$> symbol Grammar.EnumAssignment <*> children (Statement.Assignment [] <$> term propertyName <*> term expression)
|
||||||
|
Loading…
Reference in New Issue
Block a user