1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Update typeDeclaration to use manyTerm

This commit is contained in:
Rick Winfrey 2017-11-20 17:08:15 -08:00
parent f44d0dc3fc
commit 77aedf0d1d

View File

@ -359,17 +359,17 @@ typeIdentifierDeclaration :: Assignment
typeIdentifierDeclaration = makeTerm <$> symbol TypeSpec <*> children (Type.Annotation <$> typeIdentifier <*> expression) typeIdentifierDeclaration = makeTerm <$> symbol TypeSpec <*> children (Type.Annotation <$> typeIdentifier <*> expression)
typeDeclaration :: Assignment typeDeclaration :: Assignment
typeDeclaration = makeTerm <$> symbol TypeDeclaration <*> children (many ( arrayTypeDeclaration typeDeclaration = makeTerm <$> symbol TypeDeclaration <*> children (manyTerm ( arrayTypeDeclaration
<|> channelTypeDeclaration <|> channelTypeDeclaration
<|> functionTypeDeclaration <|> functionTypeDeclaration
<|> interfaceTypeDeclaration <|> interfaceTypeDeclaration
<|> qualifiedTypeDeclaration <|> qualifiedTypeDeclaration
<|> pointerTypeDeclaration <|> pointerTypeDeclaration
<|> sliceTypeDeclaration <|> sliceTypeDeclaration
<|> structTypeDeclaration <|> structTypeDeclaration
<|> mapTypeDeclaration <|> mapTypeDeclaration
<|> typeAlias <|> typeAlias
<|> typeIdentifierDeclaration )) <|> typeIdentifierDeclaration ))
-- Expressions -- Expressions