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","original":"c9d8f598","signature":"getPropertyWrapperTypeFromOverload(swift::constraints::ConstraintSystem&, swift::constraints::SelectedOverload, llvm::function_ref<swift::VarDecl* (swift::VarDecl*)>)","signatureAssert":"Assertion failed: (!cs.hasType(D) && \"Should have recorded type for wrapper var\"), function getPropertyWrapperTypeFromOverload"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3@propertyWrapper struct a {
4 wrappedValue : Bool init(wrappedValue: Bool)
5 var projectedValue
6 init(projectedValue: Bool)
7 func b(@a c: Bool) {
…lines 8–11 unchanged (4 lines)

After

1// {"kind":"typecheck","original":"c9d8f598","signature":"getPropertyWrapperTypeFromOverload(swift::constraints::ConstraintSystem&, swift::constraints::SelectedOverload, llvm::function_ref<swift::VarDecl* (swift::VarDecl*)>)","signatureAssert":"Assertion failed: (!cs.hasType(D) && \"Should have recorded type for wrapper var\"), function getPropertyWrapperTypeFromOverload","signatureNext":"ConstraintSystem::getPropertyWrapperProjectionType"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3@propertyWrapper struct a {
4 wrappedValue : Bool init(wrappedValue: Bool)
5 var projectedValue
6 init(projectedValue: Bool)
7 func b(@a c: Bool) {
…lines 8–11 unchanged (4 lines)

Before

source_file
comment "// {\"kind\":\"typecheck\",\"original\":\"c9d8f598\",\"signature\":\"ge"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
class_declaration
modifiers
attribute
@ "@"
user_type
type_identifier "propertyWrapper"
struct "struct"
type_identifier "a"
class_body
{ "{"
} ""
call_expression
simple_identifier "wrappedValue"
ERROR
: ":"
ERROR "Bool"
in "in"
ERROR "it"
call_suffix
value_arguments
( "("
value_argument
value_argument_label
simple_identifier "wrappedValue"
: ":"
simple_identifier "Bool"
) ")"
property_declaration
value_binding_pattern
var "var"
pattern
simple_identifier "projectedValue"
init_declaration
init "init"
( "("
parameter
simple_identifier "projectedValue"
: ":"
user_type
type_identifier "Bool"
) ")"
function_declaration (+22 nodes collapsed)
ERROR
} "}"

After

source_file
comment "// {\"kind\":\"typecheck\",\"original\":\"c9d8f598\",\"signature\":\"ge"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
class_declaration
modifiers
attribute
@ "@"
user_type
type_identifier "propertyWrapper"
struct "struct"
type_identifier "a"
class_body
{ "{"
} ""
call_expression
simple_identifier "wrappedValue"
ERROR
: ":"
ERROR "Bool"
in "in"
ERROR "it"
call_suffix
value_arguments
( "("
value_argument
value_argument_label
simple_identifier "wrappedValue"
: ":"
simple_identifier "Bool"
) ")"
property_declaration
value_binding_pattern
var "var"
pattern
simple_identifier "projectedValue"
init_declaration
init "init"
( "("
parameter
simple_identifier "projectedValue"
: ":"
user_type
type_identifier "Bool"
) ")"
function_declaration (+22 nodes collapsed)
ERROR
} "}"