Exemple #1
0
        protected override void finish()
        {
            BaseConverterQueryStateJSON result = new BaseConverterQueryStateJSON();

            Debug.Assert(result != null);
            finish(result);
            handle_result(result);
        }
Exemple #2
0
 protected void finish(BaseConverterQueryStateJSON result)
 {
     if (fieldGeneratorBases.have_value)
     {
         result.initBases();
         int count = fieldGeneratorBases.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendBases(fieldGeneratorBases.value[num]);
         }
         fieldGeneratorBases.value.Clear();
         fieldGeneratorBases.have_value = false;
     }
     else if ((!(result.hasBases())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Bases\" field was missing.");
     }
 }
Exemple #3
0
 protected override void handle_result(BaseConverterQueryStateJSON result)
 {
     top.value.Add(result);
 }
Exemple #4
0
        protected override void handle_result(BaseConverterQueryStateJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Exemple #5
0
 protected abstract void handle_result(BaseConverterQueryStateJSON new_result);