parseType sets the type kind in all cases
This commit is contained in:
parent
16fe6afdff
commit
06f9b5b71c
@ -8,6 +8,7 @@ func (parser *ParsingOperation) parseType () (what Type, err error) {
|
|||||||
err = parser.expect(lexer.TokenKindName, lexer.TokenKindLBrace)
|
err = parser.expect(lexer.TokenKindName, lexer.TokenKindLBrace)
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
what.location = parser.token.Location()
|
what.location = parser.token.Location()
|
||||||
|
what.kind = TypeKindBasic
|
||||||
|
|
||||||
if parser.token.Is(lexer.TokenKindLBrace) {
|
if parser.token.Is(lexer.TokenKindLBrace) {
|
||||||
what.kind = TypeKindPointer
|
what.kind = TypeKindPointer
|
||||||
|
Reference in New Issue
Block a user