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) | %FileCheck %s
2// RUN: %target-run-simple-swift(-O -enable-experimental-feature Embedded -wmo -runtime-compatibility-version none) | %FileCheck %s
3
4// REQUIRES: executable_test
5// REQUIRES: swift_feature_Embedded
6
7func f<V>(_ a: [V]) -> [String] {
…lines 8–14 unchanged (7 lines)

After

1// RUN: %target-run-simple-swift( -enable-experimental-feature Embedded -wmo -runtime-compatibility-version none %target-embedded-posix-shim) | %FileCheck %s
2// RUN: %target-run-simple-swift(-O -enable-experimental-feature Embedded -wmo -runtime-compatibility-version none %target-embedded-posix-shim) | %FileCheck %s
3
4// REQUIRES: executable_test
5// REQUIRES: swift_feature_Embedded
6
7func f<V>(_ a: [V]) -> [String] {
8 return a.indices.map { String($0 /* as Int*/) } // adding `as Int` makes it compile
…lines 9–14 unchanged (6 lines)

Before

source_file
comment "// RUN: %target-run-simple-swift( -enable-experimental-fea"...
comment "// RUN: %target-run-simple-swift(-O -enable-experimental-fea"...
comment "// REQUIRES: executable_test"
comment "// REQUIRES: swift_feature_Embedded"
function_declaration (+56 nodes collapsed)
comment "// CHECK: 0"
call_expression (+30 nodes collapsed)

After

source_file
comment "// RUN: %target-run-simple-swift( -enable-experimental-fea"...
comment "// RUN: %target-run-simple-swift(-O -enable-experimental-fea"...
comment "// REQUIRES: executable_test"
comment "// REQUIRES: swift_feature_Embedded"
function_declaration (+56 nodes collapsed)
comment "// CHECK: 0"
call_expression (+30 nodes collapsed)