Files
2026-08-27 10:56:38 -06:00

46 lines
1.3 KiB
C#

using System.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CSharp;
internal sealed class BoundImplicitIndexerValuePlaceholder : BoundValuePlaceholderBase
{
public sealed override bool IsEquivalentToThisReference
{
get
{
throw ExceptionUtilities.Unreachable("/_/src/Compilers/CSharp/Portable/BoundTree/BoundExpression.cs", 207);
}
}
public new TypeSymbol Type => base.Type;
public BoundImplicitIndexerValuePlaceholder(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
: base(BoundKind.ImplicitIndexerValuePlaceholder, syntax, type, hasErrors)
{
}
public BoundImplicitIndexerValuePlaceholder(SyntaxNode syntax, TypeSymbol type)
: base(BoundKind.ImplicitIndexerValuePlaceholder, syntax, type)
{
}
[DebuggerStepThrough]
public override BoundNode? Accept(BoundTreeVisitor visitor)
{
return visitor.VisitImplicitIndexerValuePlaceholder(this);
}
public BoundImplicitIndexerValuePlaceholder Update(TypeSymbol type)
{
if (!TypeSymbol.Equals(type, Type, (TypeCompareKind)0))
{
BoundImplicitIndexerValuePlaceholder boundImplicitIndexerValuePlaceholder = new BoundImplicitIndexerValuePlaceholder(Syntax, type, base.HasErrors);
boundImplicitIndexerValuePlaceholder.CopyAttributes(this);
return boundImplicitIndexerValuePlaceholder;
}
return this;
}
}