Parser properly unions position of named types
This commit is contained in:
parent
6b9cdcc239
commit
159317965d
@ -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:
|
||||||