33 lines
1020 B
C#
33 lines
1020 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;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Microsoft.AspNetCore.Razor.Language.Intermediate
|
|
{
|
|
public sealed class MethodDeclarationIntermediateNode : MemberDeclarationIntermediateNode
|
|
{
|
|
public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection();
|
|
|
|
public IList<string> Modifiers { get; } = new List<string>();
|
|
|
|
public string MethodName { get; set; }
|
|
|
|
public IList<MethodParameter> Parameters { get; } = new List<MethodParameter>();
|
|
|
|
public string ReturnType { get; set; }
|
|
|
|
public override void Accept(IntermediateNodeVisitor visitor)
|
|
{
|
|
if (visitor == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(visitor));
|
|
}
|
|
|
|
visitor.VisitMethodDeclaration(this);
|
|
}
|
|
|
|
}
|
|
}
|