MCPcopy Create free account
hub / github.com/chibash/stone / translateAssign

Method translateAssign

src/chap14/ToJava.java:101–110  ·  view source on GitHub ↗
(TypeInfo valueType, ASTree right)

Source from the content-addressed store, hash-verified

99 }
100 }
101 public String translateAssign(TypeInfo valueType, ASTree right) {
102 if (nest == 0)
103 return "(" + LOCAL + index + "="
104 + translateExpr(right, valueType, type) + ")";
105 else {
106 String value = ((ASTreeEx)right).translate(null);
107 return "chap14.Runtime.write" + type.toString()
108 + "(" + ENV + "," + index + "," + value + ")";
109 }
110 }
111 }
112 @Reviser public static class NegativeEx extends NegativeExpr {
113 public NegativeEx(List<ASTree> c) { super(c); }

Callers 1

translateMethod · 0.80

Calls 3

translateExprMethod · 0.80
translateMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected