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// @allowJs: true
2// @declaration: true
3/// <reference path="invalid" />
4var x = 0;
5

After

1// @target: es2015
2// @allowJs: true
3// @declaration: true
4/// <reference path="invalid" />
5var x = 0;
6

Before

program
comment "// @allowJs: true"
comment "// @declaration: true"
comment "/// <reference path=\"invalid\" />"
variable_declaration
var "var"
variable_declarator
identifier "x"
= "="
number "0"
; ";"

After

program
comment "// @target: es2015"
comment "// @allowJs: true"
comment "// @declaration: true"
comment "/// <reference path=\"invalid\" />"
variable_declaration
var "var"
variable_declarator
identifier "x"
= "="
number "0"
; ";"