Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit e9e1a90

Browse files
author
Mikhail Arkhipov
committed
Revert "Limit analysis"
This reverts commit 9f3666a.
1 parent 9f3666a commit e9e1a90

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Analysis/Engine/Impl/AnalysisUnit.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public AnalysisUnit CopyForEval() {
109109
}
110110

111111
internal void Enqueue() {
112-
if (!ForEval && !IsInQueue && !_suppressEnqueue && NeedsAnalysis()) {
112+
if (!ForEval && !IsInQueue && !_suppressEnqueue) {
113113
State.Queue.Append(this);
114114
AnalysisLog.Enqueue(State.Queue, this);
115115
IsInQueue = true;
@@ -120,10 +120,6 @@ internal void Enqueue() {
120120
}
121121
}
122122

123-
private bool NeedsAnalysis()
124-
=> _analysisCount == 0 || (_scope != null && _scope.AllVariables.Select(k => k.Value).Any(v => !v.HasTypes));
125-
126-
127123
/// <summary>
128124
/// The AST which will be analyzed when this node is analyzed
129125
/// </summary>

0 commit comments

Comments
 (0)