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–1444 unchanged (1444 lines)
1445 boolean process(Token t, TreeBuilder tb) {
1446 return true;
1447 // todo: implement. Also; how do we get here?
1448 }
1449 };
1450
1451 private static String nullString = String.valueOf(0x0000);
1452
1453 abstract boolean process(Token t, TreeBuilder tb);
1454
1455 private static boolean isWhitespace(Token t) {
1456 if (t.isCharacter()) {
1457 String data = t.asCharacter().getData();
…lines 1458–1483 unchanged (26 lines)

After

…lines 1–1444 unchanged (1444 lines)
1445 boolean process(Token t, TreeBuilder tb) {
1446 return true;
1447 // todo: implement. Also; how do we get here?
1448 }
1449 };
1450
1451 private static String nullString = String.valueOf('\u0000');
1452
1453 abstract boolean process(Token t, TreeBuilder tb);
1454
1455 private static boolean isWhitespace(Token t) {
1456 if (t.isCharacter()) {
1457 String data = t.asCharacter().getData();
…lines 1458–1483 unchanged (26 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "parser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "DescendableLinkedList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "StringUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "nodes"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "LinkedList"
; ";"
block_comment "/**\n * The Tree Builder's current state. Each state embodies"...
enum_declaration
enum "enum"
identifier "TreeBuilderState"
enum_body
{ "{"
enum_constant (+240 nodes collapsed)
, ","
enum_constant (+342 nodes collapsed)
, ","
enum_constant (+402 nodes collapsed)
, ","
enum_constant (+738 nodes collapsed)
, ","
enum_constant (+467 nodes collapsed)
, ","
enum_constant (+602 nodes collapsed)
, ","
enum_constant (+6780 nodes collapsed)
, ","
enum_constant (+162 nodes collapsed)
, ","
enum_constant (+1189 nodes collapsed)
, ","
enum_constant (+340 nodes collapsed)
, ","
enum_constant (+503 nodes collapsed)
, ","
enum_constant (+485 nodes collapsed)
, ","
enum_constant (+688 nodes collapsed)
, ","
enum_constant (+658 nodes collapsed)
, ","
enum_constant (+652 nodes collapsed)
, ","
enum_constant (+1056 nodes collapsed)
, ","
enum_constant (+315 nodes collapsed)
, ","
enum_constant (+305 nodes collapsed)
, ","
enum_constant (+540 nodes collapsed)
, ","
enum_constant (+311 nodes collapsed)
, ","
enum_constant (+182 nodes collapsed)
, ","
enum_constant (+236 nodes collapsed)
, ","
enum_constant (+26 nodes collapsed)
enum_body_declarations
; ";"
field_declaration
modifiers
private "private"
static "static"
type_identifier "String"
variable_declarator
identifier "nullString"
= "="
method_invocation
identifier "String"
. "."
identifier "valueOf"
argument_list
( "("
hex_integer_literal "0x0000"
) ")"
; ";"
method_declaration
modifiers
abstract "abstract"
boolean_type "boolean"
identifier "process"
formal_parameters
( "("
formal_parameter
type_identifier "Token"
identifier "t"
, ","
formal_parameter
type_identifier "TreeBuilder"
identifier "tb"
) ")"
; ";"
method_declaration (+121 nodes collapsed)
method_declaration (+67 nodes collapsed)
method_declaration (+67 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "parser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "DescendableLinkedList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "StringUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "nodes"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "LinkedList"
; ";"
block_comment "/**\n * The Tree Builder's current state. Each state embodies"...
enum_declaration
enum "enum"
identifier "TreeBuilderState"
enum_body
{ "{"
enum_constant (+240 nodes collapsed)
, ","
enum_constant (+342 nodes collapsed)
, ","
enum_constant (+402 nodes collapsed)
, ","
enum_constant (+738 nodes collapsed)
, ","
enum_constant (+467 nodes collapsed)
, ","
enum_constant (+602 nodes collapsed)
, ","
enum_constant (+6780 nodes collapsed)
, ","
enum_constant (+162 nodes collapsed)
, ","
enum_constant (+1189 nodes collapsed)
, ","
enum_constant (+340 nodes collapsed)
, ","
enum_constant (+503 nodes collapsed)
, ","
enum_constant (+485 nodes collapsed)
, ","
enum_constant (+688 nodes collapsed)
, ","
enum_constant (+658 nodes collapsed)
, ","
enum_constant (+652 nodes collapsed)
, ","
enum_constant (+1056 nodes collapsed)
, ","
enum_constant (+315 nodes collapsed)
, ","
enum_constant (+305 nodes collapsed)
, ","
enum_constant (+540 nodes collapsed)
, ","
enum_constant (+311 nodes collapsed)
, ","
enum_constant (+182 nodes collapsed)
, ","
enum_constant (+236 nodes collapsed)
, ","
enum_constant (+26 nodes collapsed)
enum_body_declarations
; ";"
field_declaration
modifiers
private "private"
static "static"
type_identifier "String"
variable_declarator
identifier "nullString"
= "="
method_invocation
identifier "String"
. "."
identifier "valueOf"
argument_list
( "("
character_literal "'\\u0000'"
) ")"
; ";"
method_declaration
modifiers
abstract "abstract"
boolean_type "boolean"
identifier "process"
formal_parameters
( "("
formal_parameter
type_identifier "Token"
identifier "t"
, ","
formal_parameter
type_identifier "TreeBuilder"
identifier "tb"
) ")"
; ";"
method_declaration (+121 nodes collapsed)
method_declaration (+67 nodes collapsed)
method_declaration (+67 nodes collapsed)
} "}"