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// {"kind":"typecheck","signature":"swift::constraints::ConstraintSystem::diagnoseAmbiguity(llvm::ArrayRef<swift::constraints::Solution>)","signatureAssert":"Assertion failed: (false && \"locator could not be simplified to anchor\"), function diagnoseAmbiguity"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3struct a { eq = "" b "Self ecuador1 Self) > Bool {
4 let getProperties = (
5 \.eq as Self -> _
6 let eq = ""
7

After

1// {"kind":"typecheck","signature":"swift::constraints::ConstraintSystem::diagnoseAmbiguity(llvm::ArrayRef<swift::constraints::Solution>)","signatureAssert":"Assertion failed: (false && \"locator could not be simplified to anchor\"), function diagnoseAmbiguity","signatureNext":"ConstraintSystem::salvage"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3struct a { eq = "" b "Self ecuador1 Self) > Bool {
4 let getProperties = (
5 \.eq as Self -> _
6 let eq = ""
7

Before

source_file
comment "// {\"kind\":\"typecheck\",\"signature\":\"swift::constraints::Cons"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
ERROR
struct "struct"
simple_identifier "a"
{ "{"
ERROR "eq"
= "="
" "\""
line_string_literal
" "\""
line_str_text " b "
" "\""
ERROR "Self ec"
u "u"
ERROR "a"
comparison_expression
simple_identifier "dor1"
ERROR
ERROR "Self"
) ")"
> ">"
simple_identifier "Bool"
ERROR (+28 nodes collapsed)

After

source_file
comment "// {\"kind\":\"typecheck\",\"signature\":\"swift::constraints::Cons"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
ERROR
struct "struct"
simple_identifier "a"
{ "{"
ERROR "eq"
= "="
" "\""
line_string_literal
" "\""
line_str_text " b "
" "\""
ERROR "Self ec"
u "u"
ERROR "a"
comparison_expression
simple_identifier "dor1"
ERROR
ERROR "Self"
) ")"
> ">"
simple_identifier "Bool"
ERROR (+28 nodes collapsed)