protected void finish(TypeNativeDataJSON result) { if (fieldGeneratorTimers.have_value) { result.initTimers(); int count = fieldGeneratorTimers.value.Count; for (int num = 0; num < count; ++num) { result.appendTimers(fieldGeneratorTimers.value[num]); } fieldGeneratorTimers.value.Clear(); fieldGeneratorTimers.have_value = false; } else if ((!(result.hasTimers())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Timers\" field was missing."); } if (fieldGeneratorTimer.have_value) { result.setTimer(fieldGeneratorTimer.value); fieldGeneratorTimer.have_value = false; } else if ((!(result.hasTimer())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Timer\" field was missing."); } }