Files

29 lines
783 B
C#
Raw Permalink Normal View History

2026-08-27 10:56:38 -06:00
using System.Diagnostics;
namespace Microsoft.CodeAnalysis.CSharp;
internal sealed class BoundDagExplicitNullTest : BoundDagTest
{
public BoundDagExplicitNullTest(SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false)
: base(BoundKind.DagExplicitNullTest, syntax, input, hasErrors || input.HasErrors())
{
}
[DebuggerStepThrough]
public override BoundNode? Accept(BoundTreeVisitor visitor)
{
return visitor.VisitDagExplicitNullTest(this);
}
public BoundDagExplicitNullTest Update(BoundDagTemp input)
{
if (input != base.Input)
{
BoundDagExplicitNullTest boundDagExplicitNullTest = new BoundDagExplicitNullTest(Syntax, input, base.HasErrors);
boundDagExplicitNullTest.CopyAttributes(this);
return boundDagExplicitNullTest;
}
return this;
}
}