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

Method translate

src/chap14/ToJava.java:114–116  ·  view source on GitHub ↗
(TypeInfo result)

Source from the content-addressed store, hash-verified

112 @Reviser public static class NegativeEx extends NegativeExpr {
113 public NegativeEx(List<ASTree> c) { super(c); }
114 public String translate(TypeInfo result) {
115 return "-" + ((ASTreeEx)operand()).translate(null);
116 }
117 }
118 @Reviser public static class BinaryEx2 extends TypeChecker.BinaryEx {
119 public BinaryEx2(List<ASTree> c) { super(c); }

Callers

nothing calls this directly

Calls 2

translateMethod · 0.45
operandMethod · 0.45

Tested by

no test coverage detected