29 lines
783 B
C#
29 lines
783 B
C#
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;
|
||
|
|
}
|
||
|
|
}
|