Skip to content

Commit 1760189

Browse files
committed
Merge pull request #1462 from Vogel612/MinimalChanges
Followup for #1453
2 parents 460c248 + 69d51f3 commit 1760189

File tree

2 files changed

+4
-42
lines changed

2 files changed

+4
-42
lines changed

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -287,49 +287,11 @@ private set
287287
}
288288
}
289289

290-
private IEnumerable<QualifiedContext> _obsoleteCallContexts = new List<QualifiedContext>();
291-
292-
/// <summary>
293-
/// Gets <see cref="ParserRuleContext"/> objects representing 'Call' statements in the parse tree.
294-
/// </summary>
295-
public IEnumerable<QualifiedContext> ObsoleteCallContexts
296-
{
297-
get { return _obsoleteCallContexts; }
298-
internal set { _obsoleteCallContexts = value; }
299-
}
300-
301-
private IEnumerable<QualifiedContext> _obsoleteLetContexts = new List<QualifiedContext>();
302-
303-
/// <summary>
304-
/// Gets <see cref="ParserRuleContext"/> objects representing explicit 'Let' statements in the parse tree.
305-
/// </summary>
306-
public IEnumerable<QualifiedContext> ObsoleteLetContexts
307-
{
308-
get { return _obsoleteLetContexts; }
309-
internal set { _obsoleteLetContexts = value; }
310-
}
311-
312290
internal void SetModuleAttributes(VBComponent component, IDictionary<Tuple<string, DeclarationType>, Attributes> attributes)
313291
{
314292
_moduleAttributes.AddOrUpdate(new QualifiedModuleName(component), attributes, (c, s) => attributes);
315293
}
316294

317-
private IEnumerable<QualifiedContext> _emptyStringLiterals = new List<QualifiedContext>();
318-
319-
public IEnumerable<QualifiedContext> EmptyStringLiterals
320-
{
321-
get { return _emptyStringLiterals; }
322-
internal set { _emptyStringLiterals = value; }
323-
}
324-
325-
private IEnumerable<QualifiedContext> _argListsWithOneByRefParam = new List<QualifiedContext>();
326-
327-
public IEnumerable<QualifiedContext> ArgListsWithOneByRefParam
328-
{
329-
get { return _argListsWithOneByRefParam; }
330-
internal set { _argListsWithOneByRefParam = value; }
331-
}
332-
333295
public IEnumerable<CommentNode> AllComments
334296
{
335297
get

RubberduckTests/Inspections/EmptyStringLiteralInspectionTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Public Sub Foo(ByRef arg1 As String)
4242
parser.Parse();
4343
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
4444

45-
var inspection = new EmptyStringLiteralInspection(parser.State);
45+
var inspection = new EmptyStringLiteralInspection(null);
4646
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
4747

4848
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;
@@ -73,7 +73,7 @@ public void EmptyStringLiteral_ReturnsResult_Assignment()
7373
parser.Parse();
7474
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
7575

76-
var inspection = new EmptyStringLiteralInspection(parser.State);
76+
var inspection = new EmptyStringLiteralInspection(null);
7777
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
7878

7979
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;
@@ -104,7 +104,7 @@ public void NotEmptyStringLiteral_DoesNotReturnResult()
104104
parser.Parse();
105105
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
106106

107-
var inspection = new EmptyStringLiteralInspection(parser.State);
107+
var inspection = new EmptyStringLiteralInspection(null);
108108
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
109109

110110
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;
@@ -142,7 +142,7 @@ public void EmptyStringLiteral_QuickFixWorks()
142142
parser.Parse();
143143
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
144144

145-
var inspection = new EmptyStringLiteralInspection(parser.State);
145+
var inspection = new EmptyStringLiteralInspection(null);
146146
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
147147

148148
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;

0 commit comments

Comments
 (0)