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":"complete","signature":"swift::ParserStatus llvm::function_ref<swift::ParserStatus ()>::callback_fn<swift::Parser::parseParameterClause(swift::SourceLoc&, llvm::SmallVectorImpl<swift::Parser::ParsedParameter>&, swift::SourceLoc&, swift::Parser::DefaultArgumentInfo*, swift::Parser::ParameterContextKind)::$_0>(long)","signatureAssert":"Assertion failed: (getPtrOrNull() && \"not checked for nullptr\"), function get"}
2// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
3func 丏(=1 as
4#^COMPLETE^#
5

After

1// {"kind":"complete","signature":"swift::ParserStatus llvm::function_ref<swift::ParserStatus ()>::callback_fn<swift::Parser::parseParameterClause(swift::SourceLoc&, llvm::SmallVectorImpl<swift::Parser::ParsedParameter>&, swift::SourceLoc&, swift::Parser::DefaultArgumentInfo*, swift::Parser::ParameterContextKind)::$_0>(long)","signatureAssert":"Assertion failed: (getPtrOrNull() && \"not checked for nullptr\"), function get","signatureNext":"Parser::parseListItem"}
2// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
3func 丏(=1 as
4#^COMPLETE^#
5

Before

source_file
comment "// {\"kind\":\"complete\",\"signature\":\"swift::ParserStatus llvm:"...
comment "// RUN: not --crash %target-swift-ide-test -code-completion "...
ERROR
func "func"
simple_identifier "丏"
( "("
= "="
integer_literal "1"
as_operator
as "as"
bitwise_operation
regex_literal
# "#"
^ "^"
bitwise_operation
simple_identifier "COMPLETE"
^ "^"
regex_literal
# "#"

After

source_file
comment "// {\"kind\":\"complete\",\"signature\":\"swift::ParserStatus llvm:"...
comment "// RUN: not --crash %target-swift-ide-test -code-completion "...
ERROR
func "func"
simple_identifier "丏"
( "("
= "="
integer_literal "1"
as_operator
as "as"
bitwise_operation
regex_literal
# "#"
^ "^"
bitwise_operation
simple_identifier "COMPLETE"
^ "^"
regex_literal
# "#"