This mapping has 1 multi-map group: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

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

…lines 1–163 unchanged (163 lines)
164 (n.getNext() == null || n.getNext().isFunction())) {
165
166 Preconditions.checkState(
167 outEdges.get(0).getValue() == Branch.UNCOND);
168 Node fallThrough = computeFollowing(n);
169 Node nextCfgNode = outEdges.get(0).getDestination().getValue();
170 if (nextCfgNode == fallThrough) {
171 removeNode(n);
172 }
173 }
174 }
175 }
176
177
178 private Node computeFollowing(Node n) {
179 Node next = ControlFlowAnalysis.computeFollowNode(n);
180 while (next != null && next.isBlock()) {
181 if (next.hasChildren()) {
182 next = next.getFirstChild();
…lines 183–251 unchanged (69 lines)

After

…lines 1–163 unchanged (163 lines)
164 (n.getNext() == null || n.getNext().isFunction())) {
165
166 Preconditions.checkState(
167 outEdges.get(0).getValue() == Branch.UNCOND);
168 Node fallThrough = computeFollowing(n);
169 Node nextCfgNode = outEdges.get(0).getDestination().getValue();
170 if (nextCfgNode == fallThrough && !inFinally(n.getParent(), n)) {
171 removeNode(n);
172 }
173 }
174 }
175 }
176
177 private boolean inFinally(Node parent, Node child) {
178 if (parent == null || parent.isFunction()) {
179 return false;
180 } else if (NodeUtil.isTryFinallyNode(parent, child)) {
181 return true;
182 } else {
183 return inFinally(parent.getParent(), parent);
184 }
185 }
186
187 private Node computeFollowing(Node n) {
188 Node next = ControlFlowAnalysis.computeFollowNode(n);
189 while (next != null && next.isBlock()) {
190 if (next.hasChildren()) {
191 next = next.getFirstChild();
…lines 192–260 unchanged (69 lines)

Before

program
block_comment "/*\n * Copyright 2008 The Closure Compiler Authors.\n *\n * Lic"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Preconditions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "ControlFlowGraph"
. "."
identifier "Branch"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "NodeTraversal"
. "."
identifier "AbstractShallowCallback"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "NodeTraversal"
. "."
identifier "FunctionCallback"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "graph"
. "."
identifier "GraphReachability"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "Node"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "Token"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Level"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Logger"
; ";"
block_comment "/**\n * Removes dead code from a parse tree. The kinds of dea"...
line_comment "// TODO(user): Besides dead code after returns, this pass re"...
line_comment "// code such as breaks/continues/returns and stms w/out side"...
line_comment "// These things don't require reachability info, consider ma"...
line_comment "// pass or putting them in some other, more related pass."
class_declaration
class "class"
identifier "UnreachableCodeElimination"
super_interfaces
implements "implements"
type_list
type_identifier "CompilerPass"
class_body
{ "{"
field_declaration (+27 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
type_identifier "AbstractCompiler"
variable_declarator
identifier "compiler"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "removeNoOpStatements"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "codeChanged"
; ";"
constructor_declaration (+33 nodes collapsed)
method_declaration (+212 nodes collapsed)
class_declaration
modifiers
private "private"
class "class"
identifier "EliminationPass"
superclass
extends "extends"
type_identifier "AbstractShallowCallback"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
generic_type
type_identifier "ControlFlowGraph"
type_arguments
< "<"
type_identifier "Node"
> ">"
variable_declarator
identifier "cfg"
; ";"
constructor_declaration (+27 nodes collapsed)
method_declaration (+155 nodes collapsed)
block_comment "/**\n * Tries to remove n if it is an unconditional branc"...
method_declaration
modifiers
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "fallthrough"
" "\""
) ")"
private "private"
void_type "void"
identifier "tryRemoveUnconditionalBranching"
formal_parameters
( "("
formal_parameter
type_identifier "Node"
identifier "n"
) ")"
block
{ "{"
block_comment "/*\n * For each unconditional branching control flow no"...
line_comment "// If n is null the target is the end of the function, nothi"...
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "n"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
local_variable_declaration (+21 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "gNode"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
switch_expression
switch "switch"
parenthesized_expression
( "("
method_invocation
identifier "n"
. "."
identifier "getType"
argument_list
( "("
) ")"
) ")"
switch_block
{ "{"
switch_block_statement_group (+26 nodes collapsed)
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "BREAK"
: ":"
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "CONTINUE"
: ":"
line_comment "// We are looking for a control flow changing statement that"...
line_comment "// branches to the same node. If after removing it control s"...
line_comment "// branches to the same node, it is safe to remove."
local_variable_declaration (+25 nodes collapsed)
if_statement
if "if"
parenthesized_expression (+44 nodes collapsed)
block
{ "{"
expression_statement (+29 nodes collapsed)
local_variable_declaration
type_identifier "Node"
variable_declarator
identifier "fallThrough"
= "="
method_invocation
identifier "computeFollowing"
argument_list
( "("
identifier "n"
) ")"
; ";"
local_variable_declaration (+26 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression any 1:2
identifier "nextCfgNode"
== "=="
identifier "fallThrough"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "removeNode"
argument_list
( "("
identifier "n"
) ")"
; ";"
} "}"
} "}"
} "}"
} "}"
method_declaration (+95 nodes collapsed)
method_declaration (+246 nodes collapsed)
method_declaration (+98 nodes collapsed)
} "}"
} "}"

After

program
block_comment "/*\n * Copyright 2008 The Closure Compiler Authors.\n *\n * Lic"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Preconditions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "ControlFlowGraph"
. "."
identifier "Branch"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "NodeTraversal"
. "."
identifier "AbstractShallowCallback"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "NodeTraversal"
. "."
identifier "FunctionCallback"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
. "."
identifier "graph"
. "."
identifier "GraphReachability"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "Node"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "Token"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Level"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Logger"
; ";"
block_comment "/**\n * Removes dead code from a parse tree. The kinds of dea"...
line_comment "// TODO(user): Besides dead code after returns, this pass re"...
line_comment "// code such as breaks/continues/returns and stms w/out side"...
line_comment "// These things don't require reachability info, consider ma"...
line_comment "// pass or putting them in some other, more related pass."
class_declaration
class "class"
identifier "UnreachableCodeElimination"
super_interfaces
implements "implements"
type_list
type_identifier "CompilerPass"
class_body
{ "{"
field_declaration (+27 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
type_identifier "AbstractCompiler"
variable_declarator
identifier "compiler"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "removeNoOpStatements"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "codeChanged"
; ";"
constructor_declaration (+33 nodes collapsed)
method_declaration (+212 nodes collapsed)
class_declaration
modifiers
private "private"
class "class"
identifier "EliminationPass"
superclass
extends "extends"
type_identifier "AbstractShallowCallback"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
generic_type
type_identifier "ControlFlowGraph"
type_arguments
< "<"
type_identifier "Node"
> ">"
variable_declarator
identifier "cfg"
; ";"
constructor_declaration (+27 nodes collapsed)
method_declaration (+155 nodes collapsed)
block_comment "/**\n * Tries to remove n if it is an unconditional branc"...
method_declaration
modifiers
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "fallthrough"
" "\""
) ")"
private "private"
void_type "void"
identifier "tryRemoveUnconditionalBranching"
formal_parameters
( "("
formal_parameter
type_identifier "Node"
identifier "n"
) ")"
block
{ "{"
block_comment "/*\n * For each unconditional branching control flow no"...
line_comment "// If n is null the target is the end of the function, nothi"...
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "n"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
local_variable_declaration (+21 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "gNode"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
switch_expression
switch "switch"
parenthesized_expression
( "("
method_invocation
identifier "n"
. "."
identifier "getType"
argument_list
( "("
) ")"
) ")"
switch_block
{ "{"
switch_block_statement_group (+26 nodes collapsed)
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "BREAK"
: ":"
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "CONTINUE"
: ":"
line_comment "// We are looking for a control flow changing statement that"...
line_comment "// branches to the same node. If after removing it control s"...
line_comment "// branches to the same node, it is safe to remove."
local_variable_declaration (+25 nodes collapsed)
if_statement
if "if"
parenthesized_expression (+44 nodes collapsed)
block
{ "{"
expression_statement (+29 nodes collapsed)
local_variable_declaration
type_identifier "Node"
variable_declarator
identifier "fallThrough"
= "="
method_invocation
identifier "computeFollowing"
argument_list
( "("
identifier "n"
) ")"
; ";"
local_variable_declaration (+26 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression any 1:2
binary_expression any 1:2
identifier "nextCfgNode"
== "=="
identifier "fallThrough"
&& "&&"
unary_expression
! "!"
method_invocation
identifier "inFinally"
argument_list
( "("
method_invocation
identifier "n"
. "."
identifier "getParent"
argument_list
( "("
) ")"
, ","
identifier "n"
) ")"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "removeNode"
argument_list
( "("
identifier "n"
) ")"
; ";"
} "}"
} "}"
} "}"
} "}"
method_declaration
modifiers
private "private"
boolean_type "boolean"
identifier "inFinally"
formal_parameters
( "("
formal_parameter
type_identifier "Node"
identifier "parent"
, ","
formal_parameter
type_identifier "Node"
identifier "child"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
identifier "parent"
== "=="
null_literal "null"
|| "||"
method_invocation
identifier "parent"
. "."
identifier "isFunction"
argument_list
( "("
) ")"
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
else "else"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "NodeUtil"
. "."
identifier "isTryFinallyNode"
argument_list
( "("
identifier "parent"
, ","
identifier "child"
) ")"
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
else "else"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "inFinally"
argument_list
( "("
method_invocation
identifier "parent"
. "."
identifier "getParent"
argument_list
( "("
) ")"
, ","
identifier "parent"
) ")"
; ";"
} "}"
} "}"
method_declaration (+95 nodes collapsed)
method_declaration (+246 nodes collapsed)
method_declaration (+98 nodes collapsed)
} "}"
} "}"