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::SpecifyLabelToAssociateTrailingClosure::diagnose(swift::constraints::Solution const&, bool) const","signatureAssert":"Assertion failed: (Index < Length && \"Invalid index!\"), function operator[]"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3a {}
4func a<each b, c>(repeat each b, c)
5

After

1// {"kind":"typecheck","signature":"swift::constraints::SpecifyLabelToAssociateTrailingClosure::diagnose(swift::constraints::Solution const&, bool) const","signatureAssert":"Assertion failed: (Index < Length && \"Invalid index!\"), function operator[]","signatureNext":"ConstraintSystem::applySolutionFixes"}
2// RUN: not --crash %target-swift-frontend -typecheck %s
3a {}
4func a<each b, c>(repeat each b, c)
5

Before

source_file
comment "// {\"kind\":\"typecheck\",\"signature\":\"swift::constraints::Spec"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
call_expression
simple_identifier "a"
call_suffix
lambda_literal
{ "{"
} "}"
ERROR (+23 nodes collapsed)

After

source_file
comment "// {\"kind\":\"typecheck\",\"signature\":\"swift::constraints::Spec"...
comment "// RUN: not --crash %target-swift-frontend -typecheck %s"
call_expression
simple_identifier "a"
call_suffix
lambda_literal
{ "{"
} "}"
ERROR (+23 nodes collapsed)