Impossible to map because of parse errors. Painting is correct.

This mapping is unfinished: 4 of 9043 nodes are still unmarked.

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–32 unchanged (32 lines)
33 COWVector<bool> datas;
34 COWVector<ValueType> locals;
35 COWVector<TagType> tags;
36 Optional<u32> data_count;
37 RefPtr<RefRBTree> references { make_ref_counted<RefRBTree>() };
38 size_t imported_function_count { 0 };
39 size_t current_function_parameter_count { 0 };
40 Module const* current_module { nullptr };
41};
42
43struct ValidationError : public Error {
44 ValidationError(ByteString error)
45 : Error(Error::from_string_view(error.view()))
46 , error_string(move(error))
47 {
…lines 48–452 unchanged (405 lines)

After

…lines 1–32 unchanged (32 lines)
33 COWVector<bool> datas;
34 COWVector<ValueType> locals;
35 COWVector<TagType> tags;
36 Optional<u32> data_count;
37 RefPtr<RefRBTree> references { make_ref_counted<RefRBTree>() };
38 size_t imported_function_count { 0 };
39 size_t current_function_parameter_count { 0 };
40};
41
42struct ValidationError : public Error {
43 ValidationError(ByteString error)
44 : Error(Error::from_string_view(error.view()))
45 , error_string(move(error))
46 {
…lines 47–451 unchanged (405 lines)

Before

translation_unit
comment "/*\n * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityo"...
preproc_call
preproc_directive "#pragma"
preproc_arg "once"
preproc_include
#include "#include"
system_lib_string "<AK/COWVector.h>"
preproc_include
#include "#include"
system_lib_string "<AK/Debug.h>"
preproc_include
#include "#include"
system_lib_string "<AK/RedBlackTree.h>"
preproc_include
#include "#include"
system_lib_string "<AK/SourceLocation.h>"
preproc_include
#include "#include"
system_lib_string "<AK/Tuple.h>"
preproc_include
#include "#include"
system_lib_string "<AK/Vector.h>"
preproc_include
#include "#include"
system_lib_string "<LibWasm/Forward.h>"
preproc_include
#include "#include"
system_lib_string "<LibWasm/Types.h>"
function_definition
type_identifier "namespace"
identifier "Wasm"
compound_statement
{ "{"
struct_specifier (+31 nodes collapsed)
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "TypeSection"
ERROR
: ":"
: ":"
identifier "Type"
> ">"
identifier "types"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "FunctionType"
> ">"
identifier "functions"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "StructType"
> ">"
identifier "structs"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "ArrayType"
> ">"
identifier "arrays"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "TableType"
> ">"
identifier "tables"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "MemoryType"
> ">"
identifier "memories"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "GlobalType"
> ">"
identifier "globals"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "ValueType"
> ">"
identifier "elements"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "bool"
> ">"
identifier "datas"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "ValueType"
> ">"
identifier "locals"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "TagType"
> ">"
identifier "tags"
; ";"
expression_statement
binary_expression
binary_expression
identifier "Optional"
< "<"
identifier "u32"
> ">"
identifier "data_count"
; ";"
expression_statement
binary_expression
binary_expression
identifier "RefPtr"
< "<"
identifier "RefRBTree"
> ">"
identifier "references"
; ""
compound_statement
{ "{"
expression_statement
binary_expression
identifier "make_ref_counted"
< "<"
identifier "RefRBTree"
ERROR
> ">"
( "("
) ")"
} "}"
; ";"
function_definition
primitive_type "size_t"
identifier "imported_function_count"
compound_statement
{ "{"
ERROR
number_literal "0"
} "}"
expression_statement
; ";"
function_definition
primitive_type "size_t"
identifier "current_function_parameter_count"
compound_statement
{ "{"
ERROR
number_literal "0"
} "}"
expression_statement
; ";"
function_definition
type_identifier "Module"
type_qualifier
const "const"
pointer_declarator
* "*"
identifier "current_module"
compound_statement
{ "{"
expression_statement
null
nullptr "nullptr"
ERROR
} "}"
; ";"
} "}"
expression_statement
; ";"
function_definition (+67 nodes collapsed)
expression_statement
; ";"
function_definition (+307 nodes collapsed)
expression_statement (+2851 nodes collapsed)
} "}"
function_definition (+26 nodes collapsed)
function_definition (+43 nodes collapsed)
expression_statement (+21 nodes collapsed)
function_definition (+49 nodes collapsed)
expression_statement
binary_expression
binary_expression
identifier "template"
< "<"
ERROR
identifier "typename"
... "..."
identifier "Expected"
> ">"
identifier "static"
; ""
declaration (+57 nodes collapsed)
declaration
type_identifier "StringBuilder"
identifier "builder"
; ";"
if_statement (+45 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "builder"
. "."
field_identifier "append"
argument_list
( "("
concatenated_string
string_literal
" "\""
string_content "Expected [ "
" "\""
identifier "sv"
) ")"
; ";"
expression_statement (+789 nodes collapsed)
} ""

After

translation_unit
comment "/*\n * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityo"...
preproc_call
preproc_directive "#pragma"
preproc_arg "once"
preproc_include
#include "#include"
system_lib_string "<AK/COWVector.h>"
preproc_include
#include "#include"
system_lib_string "<AK/Debug.h>"
preproc_include
#include "#include"
system_lib_string "<AK/RedBlackTree.h>"
preproc_include
#include "#include"
system_lib_string "<AK/SourceLocation.h>"
preproc_include
#include "#include"
system_lib_string "<AK/Tuple.h>"
preproc_include
#include "#include"
system_lib_string "<AK/Vector.h>"
preproc_include
#include "#include"
system_lib_string "<LibWasm/Forward.h>"
preproc_include
#include "#include"
system_lib_string "<LibWasm/Types.h>"
function_definition
type_identifier "namespace"
identifier "Wasm"
compound_statement
{ "{"
struct_specifier (+31 nodes collapsed)
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "TypeSection"
ERROR
: ":"
: ":"
identifier "Type"
> ">"
identifier "types"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "FunctionType"
> ">"
identifier "functions"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "StructType"
> ">"
identifier "structs"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "ArrayType"
> ">"
identifier "arrays"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "TableType"
> ">"
identifier "tables"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "MemoryType"
> ">"
identifier "memories"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "GlobalType"
> ">"
identifier "globals"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "ValueType"
> ">"
identifier "elements"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "bool"
> ">"
identifier "datas"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "ValueType"
> ">"
identifier "locals"
; ";"
expression_statement
binary_expression
binary_expression
identifier "COWVector"
< "<"
identifier "TagType"
> ">"
identifier "tags"
; ";"
expression_statement
binary_expression
binary_expression
identifier "Optional"
< "<"
identifier "u32"
> ">"
identifier "data_count"
; ";"
expression_statement
binary_expression
binary_expression
identifier "RefPtr"
< "<"
identifier "RefRBTree"
> ">"
identifier "references"
; ""
compound_statement
{ "{"
expression_statement
binary_expression
identifier "make_ref_counted"
< "<"
identifier "RefRBTree"
ERROR
> ">"
( "("
) ")"
} "}"
; ";"
function_definition
primitive_type "size_t"
identifier "imported_function_count"
compound_statement
{ "{"
ERROR
number_literal "0"
} "}"
expression_statement
; ";"
function_definition
primitive_type "size_t"
identifier "current_function_parameter_count"
compound_statement
{ "{"
expression_statement
number_literal "0"
ERROR
} "}"
; ";"
} "}"
expression_statement
; ";"
function_definition (+67 nodes collapsed)
expression_statement
; ";"
function_definition (+307 nodes collapsed)
expression_statement (+2851 nodes collapsed)
} "}"
function_definition (+26 nodes collapsed)
function_definition (+43 nodes collapsed)
expression_statement (+21 nodes collapsed)
function_definition (+49 nodes collapsed)
expression_statement
binary_expression
binary_expression
identifier "template"
< "<"
ERROR
identifier "typename"
... "..."
identifier "Expected"
> ">"
identifier "static"
; ""
declaration (+57 nodes collapsed)
declaration
type_identifier "StringBuilder"
identifier "builder"
; ";"
if_statement (+45 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "builder"
. "."
field_identifier "append"
argument_list
( "("
concatenated_string
string_literal
" "\""
string_content "Expected [ "
" "\""
identifier "sv"
) ")"
; ";"
expression_statement (+789 nodes collapsed)
} ""