Beispiel #1
0
        protected override void finish()
        {
            MusicSearchErrorJSON result = new MusicSearchErrorJSON();

            Debug.Assert(result != null);
            finish(result);
            handle_result(result);
        }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 protected override void handle_result(MusicSearchErrorJSON result)
 {
     top.value.Add(result);
 }
Beispiel #4
0
        protected override void handle_result(MusicSearchErrorJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Beispiel #5
0
 protected abstract void handle_result(MusicSearchErrorJSON new_result);