コード例 #1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorConversionRows.have_value)
     {
         result.initConversionRows();
         int count = fieldGeneratorConversionRows.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendConversionRows(fieldGeneratorConversionRows.value[num]);
         }
         fieldGeneratorConversionRows.value.Clear();
         fieldGeneratorConversionRows.have_value = false;
     }
     else if ((!(result.hasConversionRows())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"ConversionRows\" field was missing.");
     }
     if (fieldGeneratorErrorMessage.have_value)
     {
         result.setErrorMessage(fieldGeneratorErrorMessage.value);
         fieldGeneratorErrorMessage.have_value = false;
     }
 }