Loading files
namespace Hast.VhdlBuilder.Representation.Declaration;
/// <summary>
/// Represents a block of VHDL elements that logically correspond to each other. The block has only a semantic
/// difference to <see cref="InlineBlock"/> as an object; in VHDL it will be delimited by line breaks (if code
/// formatting is enabled).
/// </summary>
public class LogicalBlock : InlineBlock
{
public LogicalBlock(params IVhdlElement[] vhdlElements)
: base(vhdlElements)
{
}
public LogicalBlock() { }
public override string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
vhdlGenerationOptions.NewLineIfShouldFormat() +
base.ToVhdl(vhdlGenerationOptions) +
vhdlGenerationOptions.NewLineIfShouldFormat();
}
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.