protected void finish(UnitConverterInformationNuggetJSON result) { if (fieldGeneratorConversions.have_value) { result.initConversions(); int count = fieldGeneratorConversions.value.Count; for (int num = 0; num < count; ++num) { result.appendConversions(fieldGeneratorConversions.value[num]); } fieldGeneratorConversions.value.Clear(); fieldGeneratorConversions.have_value = false; } else if ((!(result.hasConversions())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Conversions\" field was missing."); } if (fieldGeneratorErrors.have_value) { result.initErrors(); int count = fieldGeneratorErrors.value.Count; for (int num = 0; num < count; ++num) { result.appendErrors(fieldGeneratorErrors.value[num]); } fieldGeneratorErrors.value.Clear(); fieldGeneratorErrors.have_value = false; } base.finish(result); }
protected override void finish() { if (!(getInformationNuggetJSONKey().Equals("UnitConverter"))) { throw new Exception("The key field has a value other than `UnitConverter'."); } UnitConverterInformationNuggetJSON result = new UnitConverterInformationNuggetJSON(); Debug.Assert(result != null); finish(result); handle_result(result); }
protected override void handle_result(UnitConverterInformationNuggetJSON result) { top.value.Add(result); }
protected override void handle_result(UnitConverterInformationNuggetJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(UnitConverterInformationNuggetJSON new_result);