(TypeInfo result)
| 89 | @Reviser public static class NameEx3 extends TypeChecker.NameEx2 { |
| 90 | public NameEx3(Token t) { super(t); } |
| 91 | public String translate(TypeInfo result) { |
| 92 | if (type.isFunctionType()) |
| 93 | return JavaFunction.className(name()) + "." + METHOD; |
| 94 | else if (nest == 0) |
| 95 | return LOCAL + index; |
| 96 | else { |
| 97 | String expr = ENV + ".get(0," + index + ")"; |
| 98 | return translateExpr(expr, TypeInfo.ANY, type); |
| 99 | } |
| 100 | } |
| 101 | public String translateAssign(TypeInfo valueType, ASTree right) { |
| 102 | if (nest == 0) |
| 103 | return "(" + LOCAL + index + "=" |
nothing calls this directly
no test coverage detected