Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using System;
using System.Diagnostics;
namespace Hast.VhdlBuilder.Representation.Declaration;
/// <summary>
/// A VHDL comment that produces its value when VHDL code is generated.
/// </summary>
[DebuggerDisplay("{ToVhdl(Hast.VhdlBuilder.Representation.VhdlGenerationOptions.Debug)}")]
public class GeneratedComment : IVhdlElement
{
private readonly Func<IVhdlGenerationOptions, string> _generator;
public GeneratedComment(Func<IVhdlGenerationOptions, string> generator) => _generator = generator;
public string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
new LineComment(_generator(vhdlGenerationOptions)).ToVhdl(vhdlGenerationOptions);
}
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.