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

37 lines
854 B
C#

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