Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–15 unchanged (15 lines)
16
17bool proto2_rust_Message_parse(google::protobuf::MessageLite* m,
18 google::protobuf::rust::PtrAndLen input) {
19 if (input.len > std::numeric_limits<int>::max()) {
20 return false;
21 }
22 return m->ParseFromArray(input.ptr, static_cast<int>(input.len));
23}
24
25bool proto2_rust_Message_parse_dont_enforce_required(
26 google::protobuf::MessageLite* m, google::protobuf::rust::PtrAndLen input) {
27 if (input.len > std::numeric_limits<int>::max()) {
28 return false;
29 }
30 return m->ParsePartialFromArray(input.ptr, static_cast<int>(input.len));
31}
32
33bool proto2_rust_Message_serialize(const google::protobuf::MessageLite* m,
34 google::protobuf::rust::SerializedData* output) {
35 return google::protobuf::rust::SerializeMsg(m, output);
36}
…lines 37–63 unchanged (27 lines)

After

…lines 1–15 unchanged (15 lines)
16
17bool proto2_rust_Message_parse(google::protobuf::MessageLite* m,
18 google::protobuf::rust::PtrAndLen input) {
19 if (input.len > std::numeric_limits<int>::max()) {
20 return false;
21 }
22 return m->ParseFromString(
23 absl::string_view(input.ptr, static_cast<int>(input.len)));
24}
25
26bool proto2_rust_Message_parse_dont_enforce_required(
27 google::protobuf::MessageLite* m, google::protobuf::rust::PtrAndLen input) {
28 if (input.len > std::numeric_limits<int>::max()) {
29 return false;
30 }
31 return m->ParsePartialFromString(
32 absl::string_view(input.ptr, static_cast<int>(input.len)));
33}
34
35bool proto2_rust_Message_serialize(const google::protobuf::MessageLite* m,
36 google::protobuf::rust::SerializedData* output) {
37 return google::protobuf::rust::SerializeMsg(m, output);
38}
…lines 39–65 unchanged (27 lines)

Before

translation_unit
preproc_include
#include "#include"
string_literal
" "\""
string_content "google/protobuf/message.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<limits>"
preproc_include
#include "#include"
string_literal
" "\""
string_content "google/protobuf/message_lite.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "rust/cpp_kernel/serialized_data.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "rust/cpp_kernel/strings.h"
" "\""
declaration
type_qualifier
constexpr "constexpr"
primitive_type "bool"
init_declarator
identifier "kHasFullRuntime"
= "="
true "true"
; ";"
linkage_specification
extern "extern"
string_literal
" "\""
string_content "C"
" "\""
declaration_list
{ "{"
function_definition (+26 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator (+29 nodes collapsed)
compound_statement
{ "{"
if_statement (+35 nodes collapsed)
return_statement
return "return"
call_expression
field_expression
identifier "m"
-> "->"
field_identifier "ParseFromArray"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "ptr"
, ","
call_expression
template_function
identifier "static_cast"
template_argument_list
< "<"
type_descriptor
primitive_type "int"
> ">"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "len"
) ")"
) ")"
; ";"
} "}"
function_definition
primitive_type "bool"
function_declarator (+29 nodes collapsed)
compound_statement
{ "{"
if_statement (+35 nodes collapsed)
return_statement
return "return"
call_expression
field_expression
identifier "m"
-> "->"
field_identifier "ParsePartialFromArray"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "ptr"
, ","
call_expression
template_function
identifier "static_cast"
template_argument_list
< "<"
type_descriptor
primitive_type "int"
> ">"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "len"
) ")"
) ")"
; ";"
} "}"
function_definition (+58 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+46 nodes collapsed)
comment "// Returns a pointer to the descriptor of the message, or nu"...
comment "// the message is not google::protobuf::Message."
function_definition (+102 nodes collapsed)
} "}"
comment "// extern \"C\""

After

translation_unit
preproc_include
#include "#include"
string_literal
" "\""
string_content "google/protobuf/message.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<limits>"
preproc_include
#include "#include"
string_literal
" "\""
string_content "google/protobuf/message_lite.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "rust/cpp_kernel/serialized_data.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "rust/cpp_kernel/strings.h"
" "\""
declaration
type_qualifier
constexpr "constexpr"
primitive_type "bool"
init_declarator
identifier "kHasFullRuntime"
= "="
true "true"
; ";"
linkage_specification
extern "extern"
string_literal
" "\""
string_content "C"
" "\""
declaration_list
{ "{"
function_definition (+26 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator (+29 nodes collapsed)
compound_statement
{ "{"
if_statement (+35 nodes collapsed)
return_statement
return "return"
call_expression
field_expression
identifier "m"
-> "->"
field_identifier "ParseFromString"
argument_list
( "("
call_expression
qualified_identifier
namespace_identifier "absl"
:: "::"
identifier "string_view"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "ptr"
, ","
call_expression
template_function
identifier "static_cast"
template_argument_list
< "<"
type_descriptor
primitive_type "int"
> ">"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "len"
) ")"
) ")"
) ")"
; ";"
} "}"
function_definition
primitive_type "bool"
function_declarator (+29 nodes collapsed)
compound_statement
{ "{"
if_statement (+35 nodes collapsed)
return_statement
return "return"
call_expression
field_expression
identifier "m"
-> "->"
field_identifier "ParsePartialFromString"
argument_list
( "("
call_expression
qualified_identifier
namespace_identifier "absl"
:: "::"
identifier "string_view"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "ptr"
, ","
call_expression
template_function
identifier "static_cast"
template_argument_list
< "<"
type_descriptor
primitive_type "int"
> ">"
argument_list
( "("
field_expression
identifier "input"
. "."
field_identifier "len"
) ")"
) ")"
) ")"
; ";"
} "}"
function_definition (+58 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+46 nodes collapsed)
comment "// Returns a pointer to the descriptor of the message, or nu"...
comment "// the message is not google::protobuf::Message."
function_definition (+102 nodes collapsed)
} "}"
comment "// extern \"C\""