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