(TypeInfo result)
| 150 | @Reviser public static class BlockEx2 extends TypeChecker.BlockEx { |
| 151 | public BlockEx2(List<ASTree> c) { super(c); } |
| 152 | public String translate(TypeInfo result) { |
| 153 | ArrayList<ASTree> body = new ArrayList<ASTree>(); |
| 154 | for (ASTree t: this) |
| 155 | if (!(t instanceof NullStmnt)) |
| 156 | body.add(t); |
| 157 | StringBuilder code = new StringBuilder(); |
| 158 | if (result != null && body.size() < 1) |
| 159 | code.append(returnZero(result)); |
| 160 | else |
| 161 | for (int i = 0; i < body.size(); i++) |
| 162 | translateStmnt(code, body.get(i), result, |
| 163 | i == body.size() - 1); |
| 164 | return code.toString(); |
| 165 | } |
| 166 | protected void translateStmnt(StringBuilder code, ASTree tree, |
| 167 | TypeInfo result, boolean last) |
| 168 | { |
nothing calls this directly
no test coverage detected