File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
- using System . Diagnostics ;
4
3
using System . Linq ;
5
4
using Rubberduck . Parsing . Annotations ;
6
5
using Rubberduck . Parsing . Grammar ;
@@ -41,7 +40,7 @@ public AttributeNode(string name, IEnumerable<string> values)
41
40
42
41
public void AddValue ( string value )
43
42
{
44
- _values . Add ( value ) ;
43
+ _values ? . Add ( value ) ;
45
44
}
46
45
47
46
public IReadOnlyList < string > Values
@@ -51,7 +50,7 @@ public IReadOnlyList<string> Values
51
50
52
51
public bool HasValue ( string value )
53
52
{
54
- return _values . Any ( item => item . Equals ( value , StringComparison . OrdinalIgnoreCase ) ) ;
53
+ return Values . Any ( item => item . Equals ( value , StringComparison . OrdinalIgnoreCase ) ) ;
55
54
}
56
55
57
56
public bool Equals ( AttributeNode other )
You can’t perform that action at this time.
0 commit comments