Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
e169f8eafThis file is pinned to the selected release. Download the original to open it in your design tool.
using System.Diagnostics;
namespace Hast.VhdlBuilder.Representation.Declaration;
[DebuggerDisplay("{ToVhdl(VhdlGenerationOptions.Debug)}")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1720:Identifier contains type name", Justification = "Intentional.")]
public class String : DataType
{
public int Length { get; set; }
public String()
{
Name = "string";
TypeCategory = DataTypeCategory.Array;
}
public override string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
"string" + (Length > 0 ? "(1 to " + Length + ")" : string.Empty);
}