sclass ConvertLASToJava { replace Tk with GazelleV_LeftArrowScript. delegate Evaluable to Tk. O toJava(Evaluable o) { if (o == null) null; // These are the properly implemented cases if (o cast Tk.GetVar) ret o.var; warn("Can't convert to Java: " + className(o)); // Retain original script text as a default if (o cast Tk.Base) { var src = o.tokenRangeWithSrc(); if (src != null) ret src.text(); } // If that fails (it shouldn't), just return the toString warn("No source reference in script object: " + className(o)); ret str(o); } }