38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System.Diagnostics;
|
|
|
|
namespace Microsoft.CodeAnalysis.CSharp;
|
|
|
|
internal sealed class BoundSavePreviousSequencePoint : BoundStatement
|
|
{
|
|
public object Identifier { get; }
|
|
|
|
public BoundSavePreviousSequencePoint(SyntaxNode syntax, object identifier, bool hasErrors)
|
|
: base(BoundKind.SavePreviousSequencePoint, syntax, hasErrors)
|
|
{
|
|
Identifier = identifier;
|
|
}
|
|
|
|
public BoundSavePreviousSequencePoint(SyntaxNode syntax, object identifier)
|
|
: base(BoundKind.SavePreviousSequencePoint, syntax)
|
|
{
|
|
Identifier = identifier;
|
|
}
|
|
|
|
[DebuggerStepThrough]
|
|
public override BoundNode? Accept(BoundTreeVisitor visitor)
|
|
{
|
|
return visitor.VisitSavePreviousSequencePoint(this);
|
|
}
|
|
|
|
public BoundSavePreviousSequencePoint Update(object identifier)
|
|
{
|
|
if (identifier != Identifier)
|
|
{
|
|
BoundSavePreviousSequencePoint boundSavePreviousSequencePoint = new BoundSavePreviousSequencePoint(Syntax, identifier, base.HasErrors);
|
|
boundSavePreviousSequencePoint.CopyAttributes(this);
|
|
return boundSavePreviousSequencePoint;
|
|
}
|
|
return this;
|
|
}
|
|
}
|