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