// 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.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Razor.Evolution.Legacy; namespace Microsoft.AspNetCore.Razor.Evolution.Intermediate { public class DirectiveIRNode : RazorIRNode { public override IList Children { get; } = new List(); public override RazorIRNode Parent { get; set; } public override SourceSpan? Source { get; set; } public string Name { get; set; } public IEnumerable Tokens => Children.OfType(); public DirectiveDescriptor Descriptor { get; set; } public override void Accept(RazorIRNodeVisitor visitor) { visitor.VisitDirective(this); } } }