(TypeEnv tenv)
| 120 | @Reviser public static class WhileEx extends WhileStmnt { |
| 121 | public WhileEx(List<ASTree> c) { super(c); } |
| 122 | public TypeInfo typeCheck(TypeEnv tenv) throws TypeException { |
| 123 | TypeInfo condType = ((ASTreeTypeEx)condition()).typeCheck(tenv); |
| 124 | condType.assertSubtypeOf(TypeInfo.INT, tenv, this); |
| 125 | TypeInfo bodyType = ((ASTreeTypeEx)body()).typeCheck(tenv); |
| 126 | return bodyType.union(TypeInfo.INT, tenv); |
| 127 | } |
| 128 | } |
| 129 | @Reviser public static class DefStmntEx2 extends TypedEvaluator.DefStmntEx { |
| 130 | protected TypeInfo.FunctionType funcType; |
nothing calls this directly
no test coverage detected