28 lines
837 B
C#
28 lines
837 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.AspNetCore.Razor.Language.Intermediate
|
|
{
|
|
public sealed class HtmlContentIntermediateNode : IntermediateNode
|
|
{
|
|
public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection();
|
|
|
|
public override void Accept(IntermediateNodeVisitor visitor)
|
|
{
|
|
if (visitor == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(visitor));
|
|
}
|
|
|
|
visitor.VisitHtml(this);
|
|
}
|
|
|
|
public override void FormatNode(IntermediateNodeFormatter formatter)
|
|
{
|
|
formatter.WriteChildren(Children);
|
|
}
|
|
}
|
|
}
|