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–70 unchanged (70 lines)
71 Encode,
72 Decode,
73)]
74pub enum EcmaScriptModulesReferenceSubType {
75 ImportPart(ModulePart),
76 Import,
77 ImportWithType(ImportWithType),
78 DynamicImport,
79 Custom(u8),
80 #[default]
81 Undefined,
82}
83
…lines 84–396 unchanged (313 lines)

After

…lines 1–70 unchanged (70 lines)
71 Encode,
72 Decode,
73)]
74pub enum EcmaScriptModulesReferenceSubType {
75 ImportPart(ModulePart),
76 Import,
77 ImportWithType(RcStr),
78 DynamicImport,
79 Custom(u8),
80 #[default]
81 Undefined,
82}
83
…lines 84–396 unchanged (313 lines)

Before

source_file
use_declaration
use "use"
scoped_identifier
scoped_identifier
identifier "std"
:: "::"
identifier "fmt"
:: "::"
identifier "Display"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "anyhow"
:: "::"
identifier "Result"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "bincode"
:: "::"
use_list
{ "{"
identifier "Decode"
, ","
identifier "Encode"
} "}"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "turbo_rcstr"
:: "::"
identifier "RcStr"
; ";"
use_declaration (+23 nodes collapsed)
use_declaration
use "use"
scoped_use_list
crate "crate"
:: "::"
use_list
{ "{"
scoped_identifier
identifier "module"
:: "::"
identifier "Module"
, ","
scoped_identifier
identifier "resolve"
:: "::"
identifier "ModulePart"
} "}"
; ";"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Named references to inner assets. Modules can use them to a"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " per-module aliases of some requests to already created modu"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Name is usually in UPPER_CASE to make it clear that this is"...
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
token_tree
( "("
identifier "transparent"
) ")"
] "]"
struct_item (+45 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value_impl"
] "]"
impl_item (+49 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
attribute_item (+33 nodes collapsed)
enum_item (+24 nodes collapsed)
attribute_item (+31 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "ImportWithType"
enum_variant_list
{ "{"
enum_variant
identifier "Json"
, ","
enum_variant
identifier "Bytes"
, ","
} "}"
attribute_item (+31 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "EcmaScriptModulesReferenceSubType"
enum_variant_list
{ "{"
enum_variant
identifier "ImportPart"
ordered_field_declaration_list
( "("
type_identifier "ModulePart"
) ")"
, ","
enum_variant
identifier "Import"
, ","
enum_variant
identifier "ImportWithType"
ordered_field_declaration_list
( "("
type_identifier "ImportWithType"
) ")"
, ","
enum_variant
identifier "DynamicImport"
, ","
enum_variant
identifier "Custom"
ordered_field_declaration_list
( "("
primitive_type "u8"
) ")"
, ","
attribute_item
# "#"
[ "["
attribute
identifier "default"
] "]"
enum_variant
identifier "Undefined"
, ","
} "}"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The individual set of conditions present on this module thr"...
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
token_tree
( "("
identifier "shared"
) ")"
] "]"
struct_item (+44 nodes collapsed)
impl_item (+59 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The accumulated list of conditions that should be applied t"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " through its import path\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Default"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
] "]"
struct_item (+44 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value_impl"
] "]"
impl_item (+747 nodes collapsed)
attribute_item (+33 nodes collapsed)
enum_item (+70 nodes collapsed)
attribute_item (+33 nodes collapsed)
enum_item (+30 nodes collapsed)
attribute_item (+31 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "TypeScriptReferenceSubType"
enum_variant_list
{ "{"
enum_variant
identifier "Custom"
ordered_field_declaration_list
( "("
primitive_type "u8"
) ")"
, ","
enum_variant
identifier "Undefined"
, ","
} "}"
attribute_item (+31 nodes collapsed)
enum_item (+30 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
attribute_item (+31 nodes collapsed)
enum_item (+52 nodes collapsed)
attribute_item (+31 nodes collapsed)
enum_item (+88 nodes collapsed)
impl_item (+268 nodes collapsed)
impl_item (+516 nodes collapsed)

After

source_file
use_declaration
use "use"
scoped_identifier
scoped_identifier
identifier "std"
:: "::"
identifier "fmt"
:: "::"
identifier "Display"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "anyhow"
:: "::"
identifier "Result"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "bincode"
:: "::"
use_list
{ "{"
identifier "Decode"
, ","
identifier "Encode"
} "}"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "turbo_rcstr"
:: "::"
identifier "RcStr"
; ";"
use_declaration (+23 nodes collapsed)
use_declaration
use "use"
scoped_use_list
crate "crate"
:: "::"
use_list
{ "{"
scoped_identifier
identifier "module"
:: "::"
identifier "Module"
, ","
scoped_identifier
identifier "resolve"
:: "::"
identifier "ModulePart"
} "}"
; ";"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Named references to inner assets. Modules can use them to a"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " per-module aliases of some requests to already created modu"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Name is usually in UPPER_CASE to make it clear that this is"...
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
token_tree
( "("
identifier "transparent"
) ")"
] "]"
struct_item (+45 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value_impl"
] "]"
impl_item (+49 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
attribute_item (+33 nodes collapsed)
enum_item (+24 nodes collapsed)
attribute_item (+31 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "ImportWithType"
enum_variant_list
{ "{"
enum_variant
identifier "Json"
, ","
enum_variant
identifier "Bytes"
, ","
} "}"
attribute_item (+31 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "EcmaScriptModulesReferenceSubType"
enum_variant_list
{ "{"
enum_variant
identifier "ImportPart"
ordered_field_declaration_list
( "("
type_identifier "ModulePart"
) ")"
, ","
enum_variant
identifier "Import"
, ","
enum_variant
identifier "ImportWithType"
ordered_field_declaration_list
( "("
type_identifier "RcStr"
) ")"
, ","
enum_variant
identifier "DynamicImport"
, ","
enum_variant
identifier "Custom"
ordered_field_declaration_list
( "("
primitive_type "u8"
) ")"
, ","
attribute_item
# "#"
[ "["
attribute
identifier "default"
] "]"
enum_variant
identifier "Undefined"
, ","
} "}"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The individual set of conditions present on this module thr"...
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
token_tree
( "("
identifier "shared"
) ")"
] "]"
struct_item (+44 nodes collapsed)
impl_item (+59 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The accumulated list of conditions that should be applied t"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " through its import path\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Default"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
] "]"
struct_item (+44 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value_impl"
] "]"
impl_item (+747 nodes collapsed)
attribute_item (+33 nodes collapsed)
enum_item (+70 nodes collapsed)
attribute_item (+33 nodes collapsed)
enum_item (+30 nodes collapsed)
attribute_item (+31 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "TypeScriptReferenceSubType"
enum_variant_list
{ "{"
enum_variant
identifier "Custom"
ordered_field_declaration_list
( "("
primitive_type "u8"
) ")"
, ","
enum_variant
identifier "Undefined"
, ","
} "}"
attribute_item (+31 nodes collapsed)
enum_item (+30 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
attribute_item (+31 nodes collapsed)
enum_item (+52 nodes collapsed)
attribute_item (+31 nodes collapsed)
enum_item (+88 nodes collapsed)
impl_item (+268 nodes collapsed)
impl_item (+516 nodes collapsed)