mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Update typeDeclaration to use manyTerm
This commit is contained in:
parent
f44d0dc3fc
commit
77aedf0d1d
@ -359,17 +359,17 @@ typeIdentifierDeclaration :: Assignment
|
||||
typeIdentifierDeclaration = makeTerm <$> symbol TypeSpec <*> children (Type.Annotation <$> typeIdentifier <*> expression)
|
||||
|
||||
typeDeclaration :: Assignment
|
||||
typeDeclaration = makeTerm <$> symbol TypeDeclaration <*> children (many ( arrayTypeDeclaration
|
||||
<|> channelTypeDeclaration
|
||||
<|> functionTypeDeclaration
|
||||
<|> interfaceTypeDeclaration
|
||||
<|> qualifiedTypeDeclaration
|
||||
<|> pointerTypeDeclaration
|
||||
<|> sliceTypeDeclaration
|
||||
<|> structTypeDeclaration
|
||||
<|> mapTypeDeclaration
|
||||
<|> typeAlias
|
||||
<|> typeIdentifierDeclaration ))
|
||||
typeDeclaration = makeTerm <$> symbol TypeDeclaration <*> children (manyTerm ( arrayTypeDeclaration
|
||||
<|> channelTypeDeclaration
|
||||
<|> functionTypeDeclaration
|
||||
<|> interfaceTypeDeclaration
|
||||
<|> qualifiedTypeDeclaration
|
||||
<|> pointerTypeDeclaration
|
||||
<|> sliceTypeDeclaration
|
||||
<|> structTypeDeclaration
|
||||
<|> mapTypeDeclaration
|
||||
<|> typeAlias
|
||||
<|> typeIdentifierDeclaration ))
|
||||
|
||||
|
||||
-- Expressions
|
||||
|
Loading…
Reference in New Issue
Block a user