@@ -21,31 +21,29 @@ protected InspectionResultBase(IInspection inspection, Declaration target)
21
21
/// <summary>
22
22
/// Creates a comment inspection result.
23
23
/// </summary>
24
- protected InspectionResultBase ( IInspection inspection , CommentNode comment )
25
- : this ( inspection , comment . QualifiedSelection . QualifiedName , null , comment )
24
+ protected InspectionResultBase ( IInspection inspection , QualifiedModuleName qualifiedName )
25
+ : this ( inspection , qualifiedName , null )
26
26
{ }
27
27
28
28
/// <summary>
29
29
/// Creates an inspection result.
30
30
/// </summary>
31
- protected InspectionResultBase ( IInspection inspection , QualifiedModuleName qualifiedName , ParserRuleContext context , CommentNode comment = null )
31
+ protected InspectionResultBase ( IInspection inspection , QualifiedModuleName qualifiedName , ParserRuleContext context )
32
32
{
33
33
_inspection = inspection ;
34
34
_qualifiedName = qualifiedName ;
35
35
_context = context ;
36
- _comment = comment ;
37
36
}
38
37
39
38
/// <summary>
40
39
/// Creates an inspection result.
41
40
/// </summary>
42
- protected InspectionResultBase ( IInspection inspection , QualifiedModuleName qualifiedName , ParserRuleContext context , Declaration declaration , CommentNode comment = null )
41
+ protected InspectionResultBase ( IInspection inspection , QualifiedModuleName qualifiedName , ParserRuleContext context , Declaration declaration )
43
42
{
44
43
_inspection = inspection ;
45
44
_qualifiedName = qualifiedName ;
46
45
_context = context ;
47
46
_target = declaration ;
48
- _comment = comment ;
49
47
}
50
48
51
49
private readonly IInspection _inspection ;
@@ -59,9 +57,6 @@ protected InspectionResultBase(IInspection inspection, QualifiedModuleName quali
59
57
private readonly ParserRuleContext _context ;
60
58
public ParserRuleContext Context { get { return _context ; } }
61
59
62
- private readonly CommentNode _comment ;
63
- public CommentNode Comment { get { return _comment ; } }
64
-
65
60
private readonly Declaration _target ;
66
61
public Declaration Target { get { return _target ; } }
67
62
@@ -72,12 +67,8 @@ public virtual QualifiedSelection QualifiedSelection
72
67
{
73
68
get
74
69
{
75
- if ( _context == null && _comment == null )
76
- {
77
- return _target . QualifiedSelection ;
78
- }
79
70
return _context == null
80
- ? _comment . QualifiedSelection
71
+ ? _target . QualifiedSelection
81
72
: new QualifiedSelection ( _qualifiedName , _context . GetSelection ( ) ) ;
82
73
}
83
74
}
0 commit comments