mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Add a nptr T type
This commit is contained in:
1 parent
15f2f42b77
commit
29eb64a0a4
11 files changed
+39
-27
No files matched your search
+2
-2
@@ -377,13 +377,13 @@ func (p *parser) parseFieldNode() (*a.Node, error) {
|
||||
}
|
||||
|
||||
func (p *parser) parseTypeExpr() (*a.TypeExpr, error) {
|
||||
if p.peek1() == t.IDPtr {
|
||||
if x := p.peek1(); x == t.IDNptr || x == t.IDPtr {
|
||||
p.src = p.src[1:]
|
||||
rhs, err := p.parseTypeExpr()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return a.NewTypeExpr(t.IDPtr, 0, 0, nil, nil, rhs), nil
|
||||
return a.NewTypeExpr(x, 0, 0, nil, nil, rhs), nil
|
||||
}
|
||||
|
||||
decorator, arrayLength := t.ID(0), (*a.Expr)(nil)
|
||||
|
||||
Reference in new issue
Block a user