protected override void finish() { MusicSearchErrorJSON result = new MusicSearchErrorJSON(); Debug.Assert(result != null); finish(result); handle_result(result); }
protected void finish(MusicSearchErrorJSON result) { if (fieldGeneratorSearchErrorType.have_value) { result.setSearchErrorType(fieldGeneratorSearchErrorType.value); fieldGeneratorSearchErrorType.have_value = false; } else if ((!(result.hasSearchErrorType())) && !allow_incomplete) { error("When parsing the object for %what%, the \"SearchErrorType\" field was missing."); } if (fieldGeneratorArtist.have_value) { result.setArtist(fieldGeneratorArtist.value); fieldGeneratorArtist.have_value = false; } if (fieldGeneratorTrack.have_value) { result.setTrack(fieldGeneratorTrack.value); fieldGeneratorTrack.have_value = false; } }
protected override void handle_result(MusicSearchErrorJSON result) { top.value.Add(result); }
protected override void handle_result(MusicSearchErrorJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(MusicSearchErrorJSON new_result);