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

1fn main() {
2 println!("Hello, World!");
3}
4

After

1fn main() {
2 println!("Hello, World!");
3 println!("I'm a Rust test case where a line was added!");
4}
5

Before

source_file
function_item
fn "fn"
identifier "main"
parameters
( "("
) ")"
block
{ "{"
expression_statement
macro_invocation
identifier "println"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "Hello, World!"
" "\""
) ")"
; ";"
} "}"

After

source_file
function_item
fn "fn"
identifier "main"
parameters
( "("
) ")"
block
{ "{"
expression_statement
macro_invocation
identifier "println"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "Hello, World!"
" "\""
) ")"
; ";"
expression_statement
macro_invocation
identifier "println"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "I'm a Rust test case where a line was added!"
" "\""
) ")"
; ";"
} "}"