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:
parent
d89379ff94
commit
1351dc3d76
@ -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 ))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user