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:
parent
f44d0dc3fc
commit
77aedf0d1d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user