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