Files
PURErat-crack-scode/decompiled/Libraries/microsoft.codeanalysis.csharp/Microsoft.CodeAnalysis.CSharp/BoundBaseReference.cs
T
2026-08-27 10:56:38 -06:00

39 lines
983 B
C#

using System.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Symbols;
namespace Microsoft.CodeAnalysis.CSharp;
internal sealed class BoundBaseReference : BoundExpression
{
public override bool SuppressVirtualCalls => true;
public new TypeSymbol? Type => base.Type;
public BoundBaseReference(SyntaxNode syntax, TypeSymbol? type, bool hasErrors)
: base(BoundKind.BaseReference, syntax, type, hasErrors)
{
}
public BoundBaseReference(SyntaxNode syntax, TypeSymbol? type)
: base(BoundKind.BaseReference, syntax, type)
{
}
[DebuggerStepThrough]
public override BoundNode? Accept(BoundTreeVisitor visitor)
{
return visitor.VisitBaseReference(this);
}
public BoundBaseReference Update(TypeSymbol? type)
{
if (!TypeSymbol.Equals(type, Type, (TypeCompareKind)0))
{
BoundBaseReference boundBaseReference = new BoundBaseReference(Syntax, type, base.HasErrors);
boundBaseReference.CopyAttributes(this);
return boundBaseReference;
}
return this;
}
}