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–182 unchanged (182 lines)
183 /**
184 * Records a block-level description.
185 *
186 * @return {@code true} if the description was recorded.
187 */
188 public boolean recordBlockDescription(String description) {
189 if (parseDocumentation) {
190 populated = true;
191 }
192 return currentInfo.documentBlock(description);
193 }
194
195 /**
196 * Records a visibility.
197 *
…lines 198–770 unchanged (573 lines)

After

…lines 1–182 unchanged (182 lines)
183 /**
184 * Records a block-level description.
185 *
186 * @return {@code true} if the description was recorded.
187 */
188 public boolean recordBlockDescription(String description) {
189 populated = true;
190 return currentInfo.documentBlock(description);
191 }
192
193 /**
194 * Records a visibility.
195 *
196 * @return {@code true} if the visibility was recorded and {@code false}
…lines 197–768 unchanged (572 lines)

Before

program
block_comment "/*\n *\n * ***** BEGIN LICENSE BLOCK *****\n * Version: MPL 1.1"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "JSDocInfo"
. "."
identifier "Visibility"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
block_comment "/**\n * A builder for {@link JSDocInfo} objects. This builder"...
class_declaration
modifiers
final "final"
public "public"
class "class"
identifier "JSDocInfoBuilder"
class_body
{ "{"
line_comment "// the current JSDoc which is being populated"
field_declaration
modifiers
private "private"
type_identifier "JSDocInfo"
variable_declarator
identifier "currentInfo"
; ";"
line_comment "// whether the current JSDocInfo has valuable information"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "populated"
= "="
false "false"
; ";"
line_comment "// whether to include the documentation itself when parsing "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "parseDocumentation"
= "="
false "false"
; ";"
line_comment "// the current marker, if any."
field_declaration
modifiers
private "private"
scoped_type_identifier
type_identifier "JSDocInfo"
. "."
type_identifier "Marker"
variable_declarator
identifier "currentMarker"
= "="
null_literal "null"
; ";"
constructor_declaration (+37 nodes collapsed)
block_comment "/**\n * Returns whether this builder is populated with info"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isPopulated"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "populated"
; ";"
} "}"
block_comment "/**\n * Returns whether this builder is populated with info"...
method_declaration (+28 nodes collapsed)
block_comment "/**\n * Returns whether this builder recorded a description"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Builds a {@link JSDocInfo} object based on the popu"...
method_declaration (+81 nodes collapsed)
block_comment "/** Generate defaults when certain parameters are not specif"...
method_declaration (+46 nodes collapsed)
block_comment "/**\n * Adds a marker to the current JSDocInfo and populate"...
method_declaration (+116 nodes collapsed)
block_comment "/**\n * Adds a textual block to the current marker.\n */"
method_declaration (+95 nodes collapsed)
block_comment "/**\n * Adds a type declaration to the current marker.\n *"...
method_declaration (+106 nodes collapsed)
block_comment "/**\n * Adds a name declaration to the current marker.\n *"...
method_declaration (+94 nodes collapsed)
block_comment "/**\n * Records a block-level description.\n *\n * @retur"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "recordBlockDescription"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "description"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
identifier "parseDocumentation"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "populated"
= "="
true "true"
; ";"
} "}"
return_statement
return "return"
method_invocation
identifier "currentInfo"
. "."
identifier "documentBlock"
argument_list
( "("
identifier "description"
) ")"
; ";"
} "}"
block_comment "/**\n * Records a visibility.\n *\n * @return {@code true"...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Records a typed parameter.\n *\n * @return {@code"...
method_declaration (+63 nodes collapsed)
block_comment "/**\n * Records a parameter's description.\n *\n * @retur"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * Records a template type name.\n *\n * @return {@c"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records a thrown type.\n */"
method_declaration (+53 nodes collapsed)
block_comment "/**\n * Records a throw type's description.\n *\n * @retu"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * Adds an author to the current information.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Adds a reference (\"@see\") to the current informatio"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the version.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the deprecation reason.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the list of suppressed warnings.\n */"
method_declaration (+53 nodes collapsed)
block_comment "/**\n * Records a type.\n *\n * @return {@code true} if t"...
method_declaration (+63 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+59 nodes collapsed)
block_comment "/**\n * Records a return type.\n *\n * @return {@code tru"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Records a return description\n *\n * @return {@co"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the type of a define.\n *\n * 'Define' va"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * Records a parameter type to an enum.\n *\n * @ret"...
method_declaration (+63 nodes collapsed)
block_comment "/**\n * Records a type for {@code @this} annotation.\n *\n "...
method_declaration (+74 nodes collapsed)
block_comment "/**\n * Records a base type.\n *\n * @return {@code true}"...
method_declaration (+74 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records a description giving context for translatio"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n * Records a fileoverview description.\n *\n * @retu"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+76 nodes collapsed)
block_comment "/**\n * Whether the {@link JSDocInfo} being built will have"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+76 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Whether the {@link JSDocInfo} being built will have"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * @return Whether a parameter of the given name has a"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Records an implemented interface.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Whether the current doc info has other type tags, l"...
method_declaration (+76 nodes collapsed)
block_comment "/**\n * Whether the current doc info has any of the singlet"...
method_declaration (+39 nodes collapsed)
} "}"

After

program
block_comment "/*\n *\n * ***** BEGIN LICENSE BLOCK *****\n * Version: MPL 1.1"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "JSDocInfo"
. "."
identifier "Visibility"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
block_comment "/**\n * A builder for {@link JSDocInfo} objects. This builder"...
class_declaration
modifiers
final "final"
public "public"
class "class"
identifier "JSDocInfoBuilder"
class_body
{ "{"
line_comment "// the current JSDoc which is being populated"
field_declaration
modifiers
private "private"
type_identifier "JSDocInfo"
variable_declarator
identifier "currentInfo"
; ";"
line_comment "// whether the current JSDocInfo has valuable information"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "populated"
= "="
false "false"
; ";"
line_comment "// whether to include the documentation itself when parsing "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "parseDocumentation"
= "="
false "false"
; ";"
line_comment "// the current marker, if any."
field_declaration
modifiers
private "private"
scoped_type_identifier
type_identifier "JSDocInfo"
. "."
type_identifier "Marker"
variable_declarator
identifier "currentMarker"
= "="
null_literal "null"
; ";"
constructor_declaration (+37 nodes collapsed)
block_comment "/**\n * Returns whether this builder is populated with info"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isPopulated"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "populated"
; ";"
} "}"
block_comment "/**\n * Returns whether this builder is populated with info"...
method_declaration (+28 nodes collapsed)
block_comment "/**\n * Returns whether this builder recorded a description"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Builds a {@link JSDocInfo} object based on the popu"...
method_declaration (+81 nodes collapsed)
block_comment "/** Generate defaults when certain parameters are not specif"...
method_declaration (+46 nodes collapsed)
block_comment "/**\n * Adds a marker to the current JSDocInfo and populate"...
method_declaration (+116 nodes collapsed)
block_comment "/**\n * Adds a textual block to the current marker.\n */"
method_declaration (+95 nodes collapsed)
block_comment "/**\n * Adds a type declaration to the current marker.\n *"...
method_declaration (+106 nodes collapsed)
block_comment "/**\n * Adds a name declaration to the current marker.\n *"...
method_declaration (+94 nodes collapsed)
block_comment "/**\n * Records a block-level description.\n *\n * @retur"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "recordBlockDescription"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "description"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "populated"
= "="
true "true"
; ";"
return_statement
return "return"
method_invocation
identifier "currentInfo"
. "."
identifier "documentBlock"
argument_list
( "("
identifier "description"
) ")"
; ";"
} "}"
block_comment "/**\n * Records a visibility.\n *\n * @return {@code true"...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Records a typed parameter.\n *\n * @return {@code"...
method_declaration (+63 nodes collapsed)
block_comment "/**\n * Records a parameter's description.\n *\n * @retur"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * Records a template type name.\n *\n * @return {@c"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records a thrown type.\n */"
method_declaration (+53 nodes collapsed)
block_comment "/**\n * Records a throw type's description.\n *\n * @retu"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * Adds an author to the current information.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Adds a reference (\"@see\") to the current informatio"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the version.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the deprecation reason.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the list of suppressed warnings.\n */"
method_declaration (+53 nodes collapsed)
block_comment "/**\n * Records a type.\n *\n * @return {@code true} if t"...
method_declaration (+63 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+59 nodes collapsed)
block_comment "/**\n * Records a return type.\n *\n * @return {@code tru"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Records a return description\n *\n * @return {@co"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records the type of a define.\n *\n * 'Define' va"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * Records a parameter type to an enum.\n *\n * @ret"...
method_declaration (+63 nodes collapsed)
block_comment "/**\n * Records a type for {@code @this} annotation.\n *\n "...
method_declaration (+74 nodes collapsed)
block_comment "/**\n * Records a base type.\n *\n * @return {@code true}"...
method_declaration (+74 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records a description giving context for translatio"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n * Records a fileoverview description.\n *\n * @retu"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+76 nodes collapsed)
block_comment "/**\n * Whether the {@link JSDocInfo} being built will have"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+76 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Records that the {@link JSDocInfo} being built shou"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Whether the {@link JSDocInfo} being built will have"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * @return Whether a parameter of the given name has a"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Records an implemented interface.\n */"
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Whether the current doc info has other type tags, l"...
method_declaration (+76 nodes collapsed)
block_comment "/**\n * Whether the current doc info has any of the singlet"...
method_declaration (+39 nodes collapsed)
} "}"