Parser properly unions position of named types

This commit is contained in:
Sasha Koshka 2024-02-15 01:07:25 -05:00
parent 6b9cdcc239
commit 159317965d

View File

@ -17,6 +17,7 @@ var startTokensType = []lexer.TokenKind {
func (this *treeParser) parseType () (entity.Type, error) { func (this *treeParser) parseType () (entity.Type, error) {
err := this.ExpectDesc(descriptionType, startTokensType...) err := this.ExpectDesc(descriptionType, startTokensType...)
if err != nil { return nil, err } if err != nil { return nil, err }
pos := this.Pos()
switch this.Kind() { switch this.Kind() {
case lexer.Ident: case lexer.Ident: