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":"5c733d48","signature":"getTypeForSymbolRange(swift::rewriting::Symbol const*, swift::rewriting::Symbol const*, llvm::ArrayRef<swift::GenericTypeParamType*>, swift::rewriting::PropertyMap const&)","signatureAssert":"Assertion failed: (std::find(conformsTo.begin(), conformsTo.end(), symbol.getProtocol()) != conformsTo.end()), function getTypeForSymbolRange"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3protocol a {
4 associatedtype b
5}
6protocol c {
7 associatedtype b
…lines 8–16 unchanged (9 lines)

After

1// {"kind":"typecheck","original":"5c733d48","signature":"getTypeForSymbolRange(swift::rewriting::Symbol const*, swift::rewriting::Symbol const*, llvm::ArrayRef<swift::GenericTypeParamType*>, swift::rewriting::PropertyMap const&)","signatureAssert":"Assertion failed: (std::find(conformsTo.begin(), conformsTo.end(), symbol.getProtocol()) != conformsTo.end()), function getTypeForSymbolRange","signatureNext":"PropertyMap::getTypeForTerm"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3protocol a {
4 associatedtype b
5}
6protocol c {
7 associatedtype b
…lines 8–16 unchanged (9 lines)

Before

source_file
comment "// {\"kind\":\"typecheck\",\"original\":\"5c733d48\",\"signature\":\"ge"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
protocol_declaration
protocol "protocol"
type_identifier "a"
protocol_body
{ "{"
associatedtype_declaration
associatedtype "associatedtype"
type_identifier "b"
} "}"
ERROR
protocol "protocol"
simple_identifier "c"
{ "{"
associatedtype_declaration
associatedtype "associatedtype"
type_identifier "b"
value_binding_pattern
var "var"
simple_identifier "d"
type_annotation
: ":"
user_type
type_identifier "b"
class_declaration
struct "struct"
type_identifier "e"
: ":"
inheritance_specifier
user_type
type_identifier "c"
class_body
{ "{"
} ""
ERROR
simple_identifier "d"
: ":"
some "some"
ERROR "a"
class_declaration (+55 nodes collapsed)

After

source_file
comment "// {\"kind\":\"typecheck\",\"original\":\"5c733d48\",\"signature\":\"ge"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
protocol_declaration
protocol "protocol"
type_identifier "a"
protocol_body
{ "{"
associatedtype_declaration
associatedtype "associatedtype"
type_identifier "b"
} "}"
ERROR
protocol "protocol"
simple_identifier "c"
{ "{"
associatedtype_declaration
associatedtype "associatedtype"
type_identifier "b"
value_binding_pattern
var "var"
simple_identifier "d"
type_annotation
: ":"
user_type
type_identifier "b"
class_declaration
struct "struct"
type_identifier "e"
: ":"
inheritance_specifier
user_type
type_identifier "c"
class_body
{ "{"
} ""
ERROR
simple_identifier "d"
: ":"
some "some"
ERROR "a"
class_declaration (+55 nodes collapsed)