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–90 unchanged (90 lines)
91
92 return mappings;
93 }
94
95 public SceneMapping FindSceneMapping(string seriesTitle, string releaseTitle, int sceneSeasonNumber)
96 {
97 var mappings = FindMappings(seriesTitle, releaseTitle);
98
99 if (mappings == null)
100 {
101 return null;
102 }
103
…lines 104–307 unchanged (204 lines)

After

…lines 1–90 unchanged (90 lines)
91
92 return mappings;
93 }
94
95 public SceneMapping FindSceneMapping(string seriesTitle, string releaseTitle, int sceneSeasonNumber)
96 {
97 if (seriesTitle.IsNullOrWhiteSpace())
98 {
99 return null;
100 }
101
102 var mappings = FindMappings(seriesTitle, releaseTitle);
103
104 if (mappings == null)
105 {
106 return null;
…lines 107–312 unchanged (206 lines)

Before

compilation_unit
using_directive
using "using"
identifier "System"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Collections"
. "."
identifier "Generic"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Linq"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Text"
. "."
identifier "RegularExpressions"
; ";"
using_directive
using "using"
identifier "NLog"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Cache"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Extensions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Commands"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Events"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Parser"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
. "."
identifier "Events"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "DataAugmentation"
. "."
identifier "Scene"
declaration_list
{ "{"
interface_declaration (+110 nodes collapsed)
class_declaration
modifier
public "public"
class "class"
identifier "SceneMappingService"
base_list (+31 nodes collapsed)
declaration_list
{ "{"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ISceneMappingRepository"
variable_declarator
identifier "_repository"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "IEnumerable"
type_argument_list
< "<"
identifier "ISceneMappingProvider"
> ">"
variable_declarator
identifier "_sceneMappingProviders"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IEventAggregator"
variable_declarator
identifier "_eventAggregator"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "Logger"
variable_declarator
identifier "_logger"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "ICachedDictionary"
type_argument_list
< "<"
generic_name
identifier "List"
type_argument_list
< "<"
identifier "SceneMapping"
> ">"
> ">"
variable_declarator
identifier "_getTvdbIdCache"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "ICachedDictionary"
type_argument_list
< "<"
generic_name
identifier "List"
type_argument_list
< "<"
identifier "SceneMapping"
> ">"
> ">"
variable_declarator
identifier "_findByTvdbIdCache"
; ";"
field_declaration
modifier
private "private"
variable_declaration
predefined_type "bool"
variable_declarator
identifier "_updatedAfterStartup"
; ";"
constructor_declaration (+128 nodes collapsed)
method_declaration (+247 nodes collapsed)
method_declaration (+45 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration
modifier
public "public"
identifier "SceneMapping"
identifier "FindSceneMapping"
parameter_list
( "("
parameter
predefined_type "string"
identifier "seriesTitle"
, ","
parameter
predefined_type "string"
identifier "releaseTitle"
, ","
parameter
predefined_type "int"
identifier "sceneSeasonNumber"
) ")"
block
{ "{"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "mappings"
= "="
invocation_expression
identifier "FindMappings"
argument_list
( "("
argument
identifier "seriesTitle"
, ","
argument
identifier "releaseTitle"
) ")"
; ";"
if_statement
if "if"
( "("
binary_expression
identifier "mappings"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
expression_statement
assignment_expression
identifier "mappings"
= "="
invocation_expression
identifier "FilterSceneMappings"
argument_list
( "("
argument
identifier "mappings"
, ","
argument
identifier "sceneSeasonNumber"
) ")"
; ";"
local_declaration_statement (+31 nodes collapsed)
if_statement
if "if"
( "("
binary_expression
member_access_expression
identifier "distinctMappings"
. "."
identifier "Count"
== "=="
integer_literal "0"
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
if_statement (+65 nodes collapsed)
throw_statement
throw "throw"
object_creation_expression
new "new"
identifier "InvalidSceneMappingException"
argument_list
( "("
argument
identifier "mappings"
, ","
argument
identifier "releaseTitle"
) ")"
; ";"
} "}"
method_declaration (+43 nodes collapsed)
method_declaration (+322 nodes collapsed)
method_declaration (+281 nodes collapsed)
method_declaration (+151 nodes collapsed)
method_declaration (+194 nodes collapsed)
method_declaration (+251 nodes collapsed)
method_declaration (+33 nodes collapsed)
method_declaration (+61 nodes collapsed)
method_declaration (+31 nodes collapsed)
method_declaration (+31 nodes collapsed)
method_declaration (+21 nodes collapsed)
} "}"
} "}"

After

compilation_unit
using_directive
using "using"
identifier "System"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Collections"
. "."
identifier "Generic"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Linq"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Text"
. "."
identifier "RegularExpressions"
; ";"
using_directive
using "using"
identifier "NLog"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Cache"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Extensions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Commands"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Events"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Parser"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
. "."
identifier "Events"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "DataAugmentation"
. "."
identifier "Scene"
declaration_list
{ "{"
interface_declaration (+110 nodes collapsed)
class_declaration
modifier
public "public"
class "class"
identifier "SceneMappingService"
base_list (+31 nodes collapsed)
declaration_list
{ "{"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ISceneMappingRepository"
variable_declarator
identifier "_repository"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "IEnumerable"
type_argument_list
< "<"
identifier "ISceneMappingProvider"
> ">"
variable_declarator
identifier "_sceneMappingProviders"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IEventAggregator"
variable_declarator
identifier "_eventAggregator"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "Logger"
variable_declarator
identifier "_logger"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "ICachedDictionary"
type_argument_list
< "<"
generic_name
identifier "List"
type_argument_list
< "<"
identifier "SceneMapping"
> ">"
> ">"
variable_declarator
identifier "_getTvdbIdCache"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "ICachedDictionary"
type_argument_list
< "<"
generic_name
identifier "List"
type_argument_list
< "<"
identifier "SceneMapping"
> ">"
> ">"
variable_declarator
identifier "_findByTvdbIdCache"
; ";"
field_declaration
modifier
private "private"
variable_declaration
predefined_type "bool"
variable_declarator
identifier "_updatedAfterStartup"
; ";"
constructor_declaration (+128 nodes collapsed)
method_declaration (+247 nodes collapsed)
method_declaration (+45 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration
modifier
public "public"
identifier "SceneMapping"
identifier "FindSceneMapping"
parameter_list
( "("
parameter
predefined_type "string"
identifier "seriesTitle"
, ","
parameter
predefined_type "string"
identifier "releaseTitle"
, ","
parameter
predefined_type "int"
identifier "sceneSeasonNumber"
) ")"
block
{ "{"
if_statement
if "if"
( "("
invocation_expression
member_access_expression
identifier "seriesTitle"
. "."
identifier "IsNullOrWhiteSpace"
argument_list
( "("
) ")"
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "mappings"
= "="
invocation_expression
identifier "FindMappings"
argument_list
( "("
argument
identifier "seriesTitle"
, ","
argument
identifier "releaseTitle"
) ")"
; ";"
if_statement
if "if"
( "("
binary_expression
identifier "mappings"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
expression_statement
assignment_expression
identifier "mappings"
= "="
invocation_expression
identifier "FilterSceneMappings"
argument_list
( "("
argument
identifier "mappings"
, ","
argument
identifier "sceneSeasonNumber"
) ")"
; ";"
local_declaration_statement (+31 nodes collapsed)
if_statement
if "if"
( "("
binary_expression
member_access_expression
identifier "distinctMappings"
. "."
identifier "Count"
== "=="
integer_literal "0"
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
if_statement (+65 nodes collapsed)
throw_statement
throw "throw"
object_creation_expression
new "new"
identifier "InvalidSceneMappingException"
argument_list
( "("
argument
identifier "mappings"
, ","
argument
identifier "releaseTitle"
) ")"
; ";"
} "}"
method_declaration (+43 nodes collapsed)
method_declaration (+322 nodes collapsed)
method_declaration (+281 nodes collapsed)
method_declaration (+151 nodes collapsed)
method_declaration (+194 nodes collapsed)
method_declaration (+251 nodes collapsed)
method_declaration (+33 nodes collapsed)
method_declaration (+61 nodes collapsed)
method_declaration (+31 nodes collapsed)
method_declaration (+31 nodes collapsed)
method_declaration (+21 nodes collapsed)
} "}"
} "}"