// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;

namespace Microsoft.AspNetCore.Razor.Language.Intermediate
{
	public sealed class SplatIntermediateNode : IntermediateNode
	{
		public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection();

		public override void Accept( IntermediateNodeVisitor visitor )
		{
			if ( visitor == null )
			{
				throw new ArgumentNullException( nameof( visitor ) );
			}

			visitor.VisitSplat( this );
		}

		public override void FormatNode( IntermediateNodeFormatter formatter )
		{
			if ( formatter == null )
			{
				throw new ArgumentNullException( nameof( formatter ) );
			}

			// No properties => do nothing
		}
	}
}
