Code view:
From the node mapping Only one solution
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
… lines 1–5 unchanged (5 lines)
6 }
7
8 class b extends a {
9 static x: b;
10 }
11
12 //// [inheritanceStaticMembersCompatible.js]
13 class a {
14 }
15 class b extends a {
16 }
17
After
… lines 1–6 unchanged (6 lines)
7
8 class b extends a {
9 static x: b;
10 }
11
12 //// [inheritanceStaticMembersCompatible.js]
13 "use strict";
14 class a {
15 }
16 class b extends a {
17 }
18
Before
… lines 1–5 unchanged (5 lines)
6 }
7
8 class b extends a {
9 static x: b;
10 }
11
12 //// [inheritanceStaticMembersCompatible.js]
13 class a {
14 }
15 class b extends a {
16 }
17
After
… lines 1–6 unchanged (6 lines)
7
8 class b extends a {
9 static x: b;
10 }
11
12 //// [inheritanceStaticMembersCompatible.js]
13 "use strict";
14 class a {
15 }
16 class b extends a {
17 }
18
Before
program comment "//// [tests/cases/compiler/inheritanceStaticMembersCompatibl"...
comment "//// [inheritanceStaticMembersCompatible.ts]"
class_declaration class "class"
identifier "a"
class_body { "{"
field_definition static "static"
ERROR property_identifier "x"
: ":"
property_identifier "a"
; ";"
} "}"
class_declaration class "class"
identifier "b"
class_heritage extends "extends"
identifier "a"
class_body { "{"
field_definition static "static"
ERROR property_identifier "x"
: ":"
property_identifier "b"
; ";"
} "}"
comment "//// [inheritanceStaticMembersCompatible.js]"
class_declaration class "class"
identifier "a"
class_body { "{"
} "}"
class_declaration class "class"
identifier "b"
class_heritage extends "extends"
identifier "a"
class_body { "{"
} "}"
After
program comment "//// [tests/cases/compiler/inheritanceStaticMembersCompatibl"...
comment "//// [inheritanceStaticMembersCompatible.ts]"
class_declaration class "class"
identifier "a"
class_body { "{"
field_definition static "static"
ERROR property_identifier "x"
: ":"
property_identifier "a"
; ";"
} "}"
class_declaration class "class"
identifier "b"
class_heritage extends "extends"
identifier "a"
class_body { "{"
field_definition static "static"
ERROR property_identifier "x"
: ":"
property_identifier "b"
; ";"
} "}"
comment "//// [inheritanceStaticMembersCompatible.js]"
expression_statement string " "\""
string_fragment "use strict"
" "\""
; ";"
class_declaration class "class"
identifier "a"
class_body { "{"
} "}"
class_declaration class "class"
identifier "b"
class_heritage extends "extends"
identifier "a"
class_body { "{"
} "}"
Keybindings
j / k next / previous visible node (tree panels)
h / l collapse / expand the focused node
g / G jump to first / last visible node
Tab switch focus between Before/After panels
/ search: jump to next node whose text contains a given string
a jump the other panel to this node's mapped counterpart
i hide identical matches, showing only inserted/deleted/updated nodes and their ancestors
v cycle the view: split / code only / tree only
p cycle what the code view renders: the node mapping, then each human painting
r mark this fixture as reviewed, or forget the mark (kept in this browser only)
n open a random fixture not yet marked as reviewed
? toggle this help
Search (plain substring, no regex):