1 implementation of IDiscardSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\DiscardSymbol.cs (1)
10internal sealed class DiscardSymbol : Symbol, IDiscardSymbol
45 references to IDiscardSymbol
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (1)
1714s = ((IDiscardSymbol)s).Type;
Generated\Operations.Generated.cs (3)
3082IDiscardSymbol DiscardSymbol { get; } 8795internal DiscardOperation(IDiscardSymbol discardSymbol, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 8801public IDiscardSymbol DiscardSymbol { get; }
Symbols\SymbolVisitor.cs (1)
33public virtual void VisitDiscard(IDiscardSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
36public virtual TResult? VisitDiscard(IDiscardSymbol symbol)
Symbols\SymbolVisitor`2.cs (1)
41public virtual TResult VisitDiscard(IDiscardSymbol symbol, TArgument argument)
Microsoft.CodeAnalysis.CSharp (5)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
295public override void VisitDiscard(IDiscardSymbol symbol)
Symbols\PublicModel\DiscardSymbol.cs (2)
23ITypeSymbol IDiscardSymbol.Type 36CodeAnalysis.NullableAnnotation IDiscardSymbol.NullableAnnotation => _underlying.TypeWithAnnotations.ToPublicAnnotation();
Symbols\SymbolExtensions.cs (2)
617internal static IDiscardSymbol? GetPublicSymbol(this DiscardSymbol? symbol) 619return symbol.GetPublicSymbol<IDiscardSymbol>();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (17)
CodeGen\CodeGenDeconstructTests.cs (17)
6000var symbol = (IDiscardSymbol)model.GetSymbolInfo(discard).Symbol; 6033var symbol0 = (IDiscardSymbol)model.GetSymbolInfo(discards[0]).Symbol; 6038var symbol = (IDiscardSymbol)model.GetSymbolInfo(discard).Symbol; 6047IDiscardSymbol symbolClone = new DiscardSymbol(TypeWithAnnotations.Create(symbol.Type.GetSymbol())).GetPublicSymbol(); 6086var symbol0 = (IDiscardSymbol)model.GetSymbolInfo(discards[0]).Symbol; 6091var symbol = (IDiscardSymbol)model.GetSymbolInfo(discard).Symbol; 6135var symbol0 = (IDiscardSymbol)model.GetSymbolInfo(discards[0]).Symbol; 6139var symbol = (IDiscardSymbol)model.GetSymbolInfo(discard).Symbol; 6998var discard3Symbol = (IDiscardSymbol)model.GetSymbolInfo(discard3).Symbol;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\OutVarTests.cs (4)
32950var discard3Symbol = (IDiscardSymbol)model.GetSymbolInfo(discard3).Symbol; 33049var discard3Symbol = (IDiscardSymbol)model.GetSymbolInfo(discard3).Symbol;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\AccessCheckTests.cs (4)
762IDiscardSymbol kdiscard = (IDiscardSymbol)model.GetSymbolInfo(discards[0]).Symbol; 763IDiscardSymbol adiscard = (IDiscardSymbol)model.GetSymbolInfo(discards[1]).Symbol;
Semantics\MethodTypeInferenceTests.cs (2)
852var discardSymbol = (IDiscardSymbol)model.GetSymbolInfo(discard).Symbol;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SymbolVisitorTests.cs (2)
64public override void VisitDiscard(IDiscardSymbol symbol) 236public override string VisitDiscard(IDiscardSymbol symbol)
Microsoft.CodeAnalysis.Features (2)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
303if (symbol is IDiscardSymbol discard) 671private void AddDescriptionForDiscard(IDiscardSymbol symbol)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
1688var discardSymbol = operation.DiscardSymbol;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
205if (symbol is IDiscardSymbol)