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

1// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -wmo -Xlinker %swift_obj_root/lib/swift/embedded/%module-target-triple/libswiftUnicodeDataTables.a) | %FileCheck %s
2
3// REQUIRES: swift_in_compiler
4// REQUIRES: executable_test
5// REQUIRES: optimized_stdlib
6// REQUIRES: OS=macosx || OS=wasip1
7// REQUIRES: swift_feature_Embedded
…lines 8–20 unchanged (13 lines)

After

1// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -wmo -Xlinker %swift_obj_root/lib/swift/embedded/%module-target-triple/libswiftUnicodeDataTables.a %target-embedded-posix-shim) | %FileCheck %s
2
3// REQUIRES: swift_in_compiler
4// REQUIRES: executable_test
5// REQUIRES: optimized_stdlib
6// REQUIRES: OS=macosx || OS=wasip1
7// REQUIRES: swift_feature_Embedded
…lines 8–20 unchanged (13 lines)

Before

source_file
comment "// RUN: %target-run-simple-swift(-enable-experimental-featur"...
comment "// REQUIRES: swift_in_compiler"
comment "// REQUIRES: executable_test"
comment "// REQUIRES: optimized_stdlib"
comment "// REQUIRES: OS=macosx || OS=wasip1"
comment "// REQUIRES: swift_feature_Embedded"
class_declaration
enum "enum"
type_identifier "MyEnum"
: ":"
inheritance_specifier
user_type
type_identifier "String"
enum_class_body
{ "{"
enum_entry
case "case"
simple_identifier "foo"
enum_entry
case "case"
simple_identifier "bar"
} "}"
property_declaration
value_binding_pattern
var "var"
pattern
simple_identifier "e"
= "="
navigation_expression
simple_identifier "MyEnum"
navigation_suffix
. "."
simple_identifier "foo"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
navigation_expression
simple_identifier "e"
navigation_suffix
. "."
simple_identifier "rawValue"
) ")"
assignment
directly_assignable_expression
simple_identifier "e"
= "="
navigation_expression
simple_identifier "MyEnum"
navigation_suffix
. "."
simple_identifier "bar"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
navigation_expression
simple_identifier "e"
navigation_suffix
. "."
simple_identifier "rawValue"
) ")"
comment "// CHECK: foo"
comment "// CHECK: bar"

After

source_file
comment "// RUN: %target-run-simple-swift(-enable-experimental-featur"...
comment "// REQUIRES: swift_in_compiler"
comment "// REQUIRES: executable_test"
comment "// REQUIRES: optimized_stdlib"
comment "// REQUIRES: OS=macosx || OS=wasip1"
comment "// REQUIRES: swift_feature_Embedded"
class_declaration
enum "enum"
type_identifier "MyEnum"
: ":"
inheritance_specifier
user_type
type_identifier "String"
enum_class_body
{ "{"
enum_entry
case "case"
simple_identifier "foo"
enum_entry
case "case"
simple_identifier "bar"
} "}"
property_declaration
value_binding_pattern
var "var"
pattern
simple_identifier "e"
= "="
navigation_expression
simple_identifier "MyEnum"
navigation_suffix
. "."
simple_identifier "foo"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
navigation_expression
simple_identifier "e"
navigation_suffix
. "."
simple_identifier "rawValue"
) ")"
assignment
directly_assignable_expression
simple_identifier "e"
= "="
navigation_expression
simple_identifier "MyEnum"
navigation_suffix
. "."
simple_identifier "bar"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
navigation_expression
simple_identifier "e"
navigation_suffix
. "."
simple_identifier "rawValue"
) ")"
comment "// CHECK: foo"
comment "// CHECK: bar"