// 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; using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Evolution.Legacy; namespace Microsoft.AspNetCore.Razor.Evolution.Intermediate { public class ClassDeclarationIRNode : RazorIRNode { public override IList Children { get; } = new List(); public override RazorIRNode Parent { get; set; } internal override MappingLocation SourceRange { get; set; } public string AccessModifier { get; set; } public string Name { get; set; } public string BaseType { get; set; } public IList Interfaces { get; set; } public override void Accept(RazorIRNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } visitor.VisitClass(this); } public override TResult Accept(RazorIRNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } return visitor.VisitClass(this); } } }