|
|
@ -175,8 +175,7 @@ void ParseFunctionGenerator::GenerateMethodImpls(io::Printer* printer) { |
|
|
|
"const char* $classname$::_InternalParse(const char* ptr,\n" |
|
|
|
"const char* $classname$::_InternalParse(const char* ptr,\n" |
|
|
|
" ::_pbi::ParseContext* ctx) {\n" |
|
|
|
" ::_pbi::ParseContext* ctx) {\n" |
|
|
|
"$annotate_deserialize$"); |
|
|
|
"$annotate_deserialize$"); |
|
|
|
if (!options_.unverified_lazy_message_sets && |
|
|
|
if (ShouldVerify(descriptor_, options_, scc_analyzer_)) { |
|
|
|
ShouldVerify(descriptor_, options_, scc_analyzer_)) { |
|
|
|
|
|
|
|
format( |
|
|
|
format( |
|
|
|
" ctx->set_lazy_eager_verify_func(&$classname$::InternalVerify);\n"); |
|
|
|
" ctx->set_lazy_eager_verify_func(&$classname$::InternalVerify);\n"); |
|
|
|
} |
|
|
|
} |
|
|
|