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 -runtime-compatibility-version none -Xfrontend -disable-objc-interop) | %FileCheck %s
2// RUN: %target-run-simple-swift(-O -enable-experimental-feature Embedded -wmo -runtime-compatibility-version none -Xfrontend -disable-objc-interop) | %FileCheck %s
3
4// REQUIRES: swift_in_compiler
5// REQUIRES: executable_test
6// REQUIRES: optimized_stdlib
7// REQUIRES: swift_feature_Embedded
…lines 8–27 unchanged (20 lines)

After

1// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -wmo -runtime-compatibility-version none -Xfrontend -disable-objc-interop %target-embedded-posix-shim) | %FileCheck %s
2// RUN: %target-run-simple-swift(-O -enable-experimental-feature Embedded -wmo -runtime-compatibility-version none -Xfrontend -disable-objc-interop %target-embedded-posix-shim) | %FileCheck %s
3
4// REQUIRES: swift_in_compiler
5// REQUIRES: executable_test
6// REQUIRES: optimized_stdlib
7// REQUIRES: swift_feature_Embedded
8
…lines 9–27 unchanged (19 lines)

Before

source_file
comment "// RUN: %target-run-simple-swift(-enable-experimental-featur"...
comment "// RUN: %target-run-simple-swift(-O -enable-experimental-fea"...
comment "// REQUIRES: swift_in_compiler"
comment "// REQUIRES: executable_test"
comment "// REQUIRES: optimized_stdlib"
comment "// REQUIRES: swift_feature_Embedded"
class_declaration (+161 nodes collapsed)
property_declaration
value_binding_pattern
let "let"
pattern
simple_identifier "s"
= "="
navigation_expression
simple_identifier "ShippingOptions"
navigation_suffix
. "."
simple_identifier "all"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
line_string_literal
" "\""
line_str_text "ShippingOptions.all = "
" "\""
) ")"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
navigation_expression
simple_identifier "s"
navigation_suffix
. "."
simple_identifier "rawValue"
) ")"
comment "// CHECK: ShippingOptions.all ="
comment "// CHECK-NEXT: 15"

After

source_file
comment "// RUN: %target-run-simple-swift(-enable-experimental-featur"...
comment "// RUN: %target-run-simple-swift(-O -enable-experimental-fea"...
comment "// REQUIRES: swift_in_compiler"
comment "// REQUIRES: executable_test"
comment "// REQUIRES: optimized_stdlib"
comment "// REQUIRES: swift_feature_Embedded"
class_declaration (+161 nodes collapsed)
property_declaration
value_binding_pattern
let "let"
pattern
simple_identifier "s"
= "="
navigation_expression
simple_identifier "ShippingOptions"
navigation_suffix
. "."
simple_identifier "all"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
line_string_literal
" "\""
line_str_text "ShippingOptions.all = "
" "\""
) ")"
call_expression
simple_identifier "print"
call_suffix
value_arguments
( "("
value_argument
navigation_expression
simple_identifier "s"
navigation_suffix
. "."
simple_identifier "rawValue"
) ")"
comment "// CHECK: ShippingOptions.all ="
comment "// CHECK-NEXT: 15"