1 instantiation of DiscardSymbol
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\BoundDiscardExpression.cs (1)
33return new DiscardSymbol(TypeWithAnnotations.Create(this.Type, this.TopLevelNullability.Annotation.ToInternalAnnotation()));
10 references to DiscardSymbol
Microsoft.CodeAnalysis.CSharp (10)
Binder\Semantics\AccessCheck.cs (1)
164return IsSymbolAccessibleCore(((DiscardSymbol)symbol).TypeWithAnnotations.Type, within, null, out failedThroughTypeCheck, compilation, ref useSiteInfo, basesBeingResolved);
Operations\CSharpOperationFactory.cs (1)
2805((DiscardSymbol)boundNode.ExpressionSymbol).GetPublicSymbol(),
Symbols\DiscardSymbol.cs (1)
38public override bool Equals(Symbol? obj, TypeCompareKind compareKind) => obj is DiscardSymbol other && this.TypeWithAnnotations.Equals(other.TypeWithAnnotations, compareKind);
Symbols\PublicModel\DiscardSymbol.cs (2)
12private readonly Symbols.DiscardSymbol _underlying; 15public DiscardSymbol(Symbols.DiscardSymbol underlying)
Symbols\SymbolExtensions.cs (1)
617internal static IDiscardSymbol? GetPublicSymbol(this DiscardSymbol? symbol)
Symbols\SymbolVisitor.cs (1)
45public virtual void VisitDiscard(DiscardSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
45public virtual TResult VisitDiscard(DiscardSymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
173/// Called when visiting a <see cref="DiscardSymbol" />; Override this with specific 179public virtual TResult VisitDiscard(DiscardSymbol symbol, TArgument argument)