mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Let ast.TypeExpr represent method types
This commit is contained in:
1 parent
2e12a41414
commit
bf00d114e4
4 files changed
+77
-24
No files matched your search
+2
-2
@@ -375,7 +375,7 @@ func (p *parser) parseTypeExpr() (*a.TypeExpr, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return a.NewTypeExpr(decorator, 0, lhs, nil, rhs), nil
|
||||
return a.NewTypeExpr(decorator, 0, lhs.Node(), nil, rhs), nil
|
||||
}
|
||||
|
||||
pkg, name, err := p.parseQualifiedIdent()
|
||||
@@ -391,7 +391,7 @@ func (p *parser) parseTypeExpr() (*a.TypeExpr, error) {
|
||||
}
|
||||
}
|
||||
|
||||
return a.NewTypeExpr(pkg, name, lhs, mhs, nil), nil
|
||||
return a.NewTypeExpr(pkg, name, lhs.Node(), mhs, nil), nil
|
||||
}
|
||||
|
||||
// parseBracket parses "[i:j]", "[i:]", "[:j]" and "[:]". A double dot replaces
|
||||
|
||||
Reference in new issue
Block a user