mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Remove obsolete assignment bcheck special case
This commit is contained in:
1 parent
ba3b97ec69
commit
e0cbd2a69e
1 file changed
-10
@@ -416,16 +416,6 @@ func (q *checker) bcheckAssignment(lhs *a.Expr, op t.ID, rhs *a.Expr) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (q *checker) bcheckAssignment1(lhs *a.Expr, op t.ID, rhs *a.Expr) error {
|
func (q *checker) bcheckAssignment1(lhs *a.Expr, op t.ID, rhs *a.Expr) error {
|
||||||
switch lhs.MType().Decorator() {
|
|
||||||
case t.IDPtr:
|
|
||||||
// TODO: handle.
|
|
||||||
return nil
|
|
||||||
case t.IDArray:
|
|
||||||
// TODO: handle.
|
|
||||||
return nil
|
|
||||||
// TODO: t.IDSlice, t.IDTable?
|
|
||||||
}
|
|
||||||
|
|
||||||
if _, err := q.bcheckExpr(lhs, 0); err != nil {
|
if _, err := q.bcheckExpr(lhs, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user