mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Ensure that all AST nodes are bounds checked
This commit is contained in:
1 parent
731ca8841b
commit
ee95b548ab
4 files changed
+147
-64
No files matched your search
+5
-4
@@ -773,10 +773,11 @@ func (n *TypeExpr) Unrefined() *TypeExpr {
|
||||
if !n.IsRefined() {
|
||||
return n
|
||||
}
|
||||
o := *n
|
||||
o.lhs = nil
|
||||
o.mhs = nil
|
||||
return &o
|
||||
return &TypeExpr{
|
||||
kind: KTypeExpr,
|
||||
id1: n.id1,
|
||||
id2: n.id2,
|
||||
}
|
||||
}
|
||||
|
||||
func NewTypeExpr(decorator t.ID, pkg t.ID, name t.ID, alenRecvMin *Node, max *Expr, inner *TypeExpr) *TypeExpr {
|
||||
|
||||
Reference in new issue
Block a user