@Override public String inspect() { return "[AssignFromMember:" + lObjectName.inspect() + "=" + rObjectName.inspect() + "." + rMemberName.inspect() + "]"; }
@Override public Code toCode() { StringBuilder b = new StringBuilder(); b.append(lObjectName.inlineCode()).append("="); b.append(rObjectName.inlineCode()); if (rMemberName != null) { b.append(".").append(rMemberName.inlineCode()); } Code c = new Code(); c.add(b.toString()); return c; }
@Override public Code toCode() { Code c = new Code(); String cmd = "lreturn"; if (type == Type.FAR) { cmd = "freturn"; } else if (type == Type.EXCEPTION) { cmd = "ereturn"; } c.add(cmd + " " + name.inlineCode()); return c; }