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::AvailabilityScope::verify(swift::AvailabilityScope const*, swift::ASTContext&) const"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3if
4#available({}
5 else {
6 var a
7

After

1// {"kind":"typecheck","signature":"swift::AvailabilityScope::verify(swift::AvailabilityScope const*, swift::ASTContext&) const","signatureNext":"verify"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3if
4#available({}
5 else {
6 var a
7

Before

ERROR
comment "// {\"kind\":\"typecheck\",\"signature\":\"swift::AvailabilityScope"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
if "if"
ERROR
# "#"
available "available"
( "("
{ "{"
} "}"
else "else"
{ "{"
property_declaration
value_binding_pattern
var "var"
pattern
simple_identifier "a"

After

ERROR
comment "// {\"kind\":\"typecheck\",\"signature\":\"swift::AvailabilityScope"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
if "if"
ERROR
# "#"
available "available"
( "("
{ "{"
} "}"
else "else"
{ "{"
property_declaration
value_binding_pattern
var "var"
pattern
simple_identifier "a"