Пример #1
0
 protected void finish(ClientMatchCommandJSON result)
 {
     if (fieldGeneratorResult.have_value)
     {
         result.setResult(fieldGeneratorResult.value);
         fieldGeneratorResult.have_value = false;
     }
     else if ((!(result.hasResult())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Result\" field was missing.");
     }
     if (fieldGeneratorNativeData.have_value)
     {
         result.setNativeData(fieldGeneratorNativeData.value);
         fieldGeneratorNativeData.have_value = false;
     }
     if (fieldGeneratorMatchedItem.have_value)
     {
         result.setMatchedItem(fieldGeneratorMatchedItem.value);
         fieldGeneratorMatchedItem.have_value = false;
     }
     base.finish(result);
 }