18 references to DiscardLevel
Microsoft.CodeAnalysis (18)
Binding\UseSiteInfo.cs (18)
109
private readonly
DiscardLevel
_discardLevel;
114
public static CompoundUseSiteInfo<TAssemblySymbol> Discarded => new CompoundUseSiteInfo<TAssemblySymbol>(
DiscardLevel
.DiagnosticsAndDependencies);
115
public static CompoundUseSiteInfo<TAssemblySymbol> DiscardedDependencies => new CompoundUseSiteInfo<TAssemblySymbol>(
DiscardLevel
.Dependencies);
142
_discardLevel =
DiscardLevel
.DiagnosticsAndDependencies;
146
_discardLevel =
DiscardLevel
.Dependencies;
150
_discardLevel =
DiscardLevel
.None;
162
private CompoundUseSiteInfo(
DiscardLevel
discardLevel)
164
Debug.Assert(discardLevel !=
DiscardLevel
.None);
171
private
DiscardLevel
DiscardLevelWithValidation
178
case
DiscardLevel
.DiagnosticsAndDependencies:
184
case
DiscardLevel
.Dependencies:
195
public bool AccumulatesDiagnostics => DiscardLevelWithValidation !=
DiscardLevel
.DiagnosticsAndDependencies;
210
Debug.Assert(_discardLevel switch {
DiscardLevel
.None => true,
DiscardLevel
.Dependencies => true,
DiscardLevel
.DiagnosticsAndDependencies => true, _ => false });
215
public bool AccumulatesDependencies => DiscardLevelWithValidation ==
DiscardLevel
.None;
391
Debug.Assert(other._discardLevel !=
DiscardLevel
.None || _discardLevel ==
DiscardLevel
.None);