parseType sets the type kind in all cases

This commit is contained in:
Sasha Koshka 2022-09-29 02:04:44 -04:00
parent 16fe6afdff
commit 06f9b5b71c
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ func (parser *ParsingOperation) parseType () (what Type, err error) {
err = parser.expect(lexer.TokenKindName, lexer.TokenKindLBrace)
if err != nil { return }
what.location = parser.token.Location()
what.kind = TypeKindBasic
if parser.token.Is(lexer.TokenKindLBrace) {
what.kind = TypeKindPointer