コード例 #1
0
 protected void finish(TypeNativeDataJSON 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.");
     }
 }