1
1
mirror of https://github.com/github/semantic.git synced 2025-01-09 00:56:32 +03:00

Assign Slice Type declarations

This commit is contained in:
Rick Winfrey 2017-09-19 15:42:12 -07:00
parent d89379ff94
commit 1351dc3d76

View File

@ -201,11 +201,15 @@ qualifiedTypeDeclaration = makeTerm <$> symbol TypeSpec <*> children (Type.Annot
arrayTypeDeclaration :: Assignment
arrayTypeDeclaration = makeTerm <$> symbol TypeSpec <*> children (Type.Annotation <$> typeLiteral <*> arrayType)
sliceTypeDeclaration :: Assignment
sliceTypeDeclaration = makeTerm <$> symbol TypeSpec <*> children (Type.Annotation <$> typeLiteral <*> sliceType)
typeDeclaration :: Assignment
typeDeclaration = handleError $ makeTerm <$> symbol TypeDeclaration <*> children (many ( arrayTypeDeclaration
<|> channelTypeDeclaration
<|> interfaceTypeDeclaration
<|> qualifiedTypeDeclaration
<|> sliceTypeDeclaration
<|> structTypeDeclaration
<|> mapTypeDeclaration ))