set flag tok_formatDollarVars_debug. svoid test_tok_eventInterfaces() { // no args testTranspilationFunction tok_eventInterfaces( [[ transient event interface onRecordAdded as OnRecordAdded shipping RecordAdded; ]], [[ interface onRecordAdded { void OnRecordAdded(RecordAdded event); } transient L OnRecordAdded_listeners; synchronized selfType OnRecordAdded(onRecordAdded l) { OnRecordAdded_listeners = addOrCreate(OnRecordAdded_listeners, l); this; } synchronized Cl OnRecordAdded_listeners() { ret cloneList(OnRecordAdded_listeners); } void OnRecordAdded(RecordAdded event) { for (l : OnRecordAdded_listeners()) pcall { l?.OnRecordAdded(event); } } ]]); }