Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
a4519e7a0This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Hast.VhdlBuilder.Representation.Declaration;
/// <summary>
/// An element that has a body but is inline, i.e. not surrounded by anything.
/// </summary>
[DebuggerDisplay("{ToVhdl(VhdlGenerationOptions.Debug)}")]
public class InlineBlock : IBlockElement
{
public IList<IVhdlElement> Body { get; }
public InlineBlock(params IVhdlElement[] vhdlElements) => Body = vhdlElements.ToList();
public InlineBlock(IEnumerable<IVhdlElement> vhdlElements) => Body = vhdlElements.ToList();
public virtual string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) => Body.ToVhdl(vhdlGenerationOptions);
}