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

1using System.Collections.Generic;
2using System.Linq;
3using NzbDrone.Core.Parser.Model;
4
5namespace NzbDrone.Core.DecisionEngine
6{
7 public class DownloadDecision
8 {
9 public RemoteEpisode RemoteEpisode { get; private set; }
10 public IEnumerable<Rejection> Rejections { get; private set; }
11
12 public bool Approved => !Rejections.Any();
13
14 public bool TemporarilyRejected
15 {
16 get
…lines 17–23 unchanged (7 lines)
24 get
25 {
26 return Rejections.Any() && Rejections.Any(r => r.Type == RejectionType.Permanent);
27 }
28 }
29
30 public DownloadDecision(RemoteEpisode episode, params Rejection[] rejections)
31 {
32 RemoteEpisode = episode;
33 Rejections = rejections.ToList();
34 }
35
36 public override string ToString()
…lines 37–47 unchanged (11 lines)

After

1using System.Collections.Generic;
2using System.Linq;
3using NzbDrone.Core.Parser.Model;
4
5namespace NzbDrone.Core.DecisionEngine
6{
7 public class DownloadDecision
8 {
9 public RemoteEpisode RemoteEpisode { get; private set; }
10 public IEnumerable<DownloadRejection> Rejections { get; private set; }
11
12 public bool Approved => !Rejections.Any();
13
14 public bool TemporarilyRejected
15 {
16 get
…lines 17–23 unchanged (7 lines)
24 get
25 {
26 return Rejections.Any() && Rejections.Any(r => r.Type == RejectionType.Permanent);
27 }
28 }
29
30 public DownloadDecision(RemoteEpisode episode, params DownloadRejection[] rejections)
31 {
32 RemoteEpisode = episode;
33 Rejections = rejections.ToList();
34 }
35
36 public override string ToString()
…lines 37–47 unchanged (11 lines)

Before

compilation_unit
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
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Parser"
. "."
identifier "Model"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "DecisionEngine"
declaration_list
{ "{"
class_declaration
modifier
public "public"
class "class"
identifier "DownloadDecision"
declaration_list
{ "{"
property_declaration
modifier
public "public"
identifier "RemoteEpisode"
identifier "RemoteEpisode"
accessor_list
{ "{"
accessor_declaration
get "get"
; ";"
accessor_declaration
modifier
private "private"
set "set"
; ";"
} "}"
property_declaration
modifier
public "public"
generic_name
identifier "IEnumerable"
type_argument_list
< "<"
identifier "Rejection"
> ">"
identifier "Rejections"
accessor_list
{ "{"
accessor_declaration
get "get"
; ";"
accessor_declaration
modifier
private "private"
set "set"
; ";"
} "}"
property_declaration
modifier
public "public"
predefined_type "bool"
identifier "Approved"
arrow_expression_clause
=> "=>"
prefix_unary_expression
! "!"
invocation_expression
member_access_expression
identifier "Rejections"
. "."
identifier "Any"
argument_list
( "("
) ")"
; ";"
property_declaration (+48 nodes collapsed)
property_declaration (+48 nodes collapsed)
constructor_declaration
modifier
public "public"
identifier "DownloadDecision"
parameter_list
( "("
parameter
identifier "RemoteEpisode"
identifier "episode"
, ","
params "params"
array_type
identifier "Rejection"
array_rank_specifier
[ "["
] "]"
identifier "rejections"
) ")"
block (+22 nodes collapsed)
method_declaration (+57 nodes collapsed)
} "}"
} "}"

After

compilation_unit
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
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Parser"
. "."
identifier "Model"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "DecisionEngine"
declaration_list
{ "{"
class_declaration
modifier
public "public"
class "class"
identifier "DownloadDecision"
declaration_list
{ "{"
property_declaration
modifier
public "public"
identifier "RemoteEpisode"
identifier "RemoteEpisode"
accessor_list
{ "{"
accessor_declaration
get "get"
; ";"
accessor_declaration
modifier
private "private"
set "set"
; ";"
} "}"
property_declaration
modifier
public "public"
generic_name
identifier "IEnumerable"
type_argument_list
< "<"
identifier "DownloadRejection"
> ">"
identifier "Rejections"
accessor_list
{ "{"
accessor_declaration
get "get"
; ";"
accessor_declaration
modifier
private "private"
set "set"
; ";"
} "}"
property_declaration
modifier
public "public"
predefined_type "bool"
identifier "Approved"
arrow_expression_clause
=> "=>"
prefix_unary_expression
! "!"
invocation_expression
member_access_expression
identifier "Rejections"
. "."
identifier "Any"
argument_list
( "("
) ")"
; ";"
property_declaration (+48 nodes collapsed)
property_declaration (+48 nodes collapsed)
constructor_declaration
modifier
public "public"
identifier "DownloadDecision"
parameter_list
( "("
parameter
identifier "RemoteEpisode"
identifier "episode"
, ","
params "params"
array_type
identifier "DownloadRejection"
array_rank_specifier
[ "["
] "]"
identifier "rejections"
) ")"
block (+22 nodes collapsed)
method_declaration (+57 nodes collapsed)
} "}"
} "}"