(TypeEnv tenv)
| 81 | } |
| 82 | } |
| 83 | protected TypeInfo typeCheckForAssign(TypeEnv tenv) |
| 84 | throws TypeException |
| 85 | { |
| 86 | rightType = ((ASTreeTypeEx)right()).typeCheck(tenv); |
| 87 | ASTree le = left(); |
| 88 | if (le instanceof Name) |
| 89 | return ((NameEx2)le).typeCheckForAssign(tenv, rightType); |
| 90 | else |
| 91 | throw new TypeException("bad assignment", this); |
| 92 | } |
| 93 | } |
| 94 | @Reviser public static class BlockEx extends BlockStmnt { |
| 95 | TypeInfo type; |
no test coverage detected