(TypeEnv tenv)
| 54 | @Reviser public static class NegativeEx extends NegativeExpr { |
| 55 | public NegativeEx(List<ASTree> c) { super(c); } |
| 56 | public TypeInfo typeCheck(TypeEnv tenv) throws TypeException { |
| 57 | TypeInfo t = ((ASTreeTypeEx)operand()).typeCheck(tenv); |
| 58 | t.assertSubtypeOf(TypeInfo.INT, tenv, this); |
| 59 | return TypeInfo.INT; |
| 60 | } |
| 61 | } |
| 62 | @Reviser public static class BinaryEx extends BinaryExpr { |
| 63 | protected TypeInfo leftType, rightType; |
nothing calls this directly
no test coverage detected