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// @strict: false
2"use strict";
3
4class test {
5 constructor (static) { }
6}
7

After

1// @target: es2015
2// @strict: false
3"use strict";
4
5class test {
6 constructor (static) { }
7}
8

Before

program
comment "// @strict: false"
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
class_declaration
class "class"
type_identifier "test"
class_body
{ "{"
method_definition
property_identifier "constructor"
formal_parameters
( "("
required_parameter
identifier "static"
) ")"
statement_block
{ "{"
} "}"
} "}"

After

program
comment "// @target: es2015"
comment "// @strict: false"
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
class_declaration
class "class"
type_identifier "test"
class_body
{ "{"
method_definition
property_identifier "constructor"
formal_parameters
( "("
required_parameter
identifier "static"
) ")"
statement_block
{ "{"
} "}"
} "}"