Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
cf229b94cThis file is pinned to the selected release. Download the original to open it in your design tool.
using System.Diagnostics;
namespace Hast.VhdlBuilder.Representation.Expression;
/// <summary>
/// An array element access expression, i.e. array(index).
/// </summary>
[DebuggerDisplay("{ToVhdl(VhdlGenerationOptions.Debug)}")]
public class ArrayElementAccess : ArrayAccessBase
{
public IVhdlElement IndexExpression { get; set; }
public override string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
ArrayReference.ToReference().ToVhdl(vhdlGenerationOptions) + "(" + IndexExpression.ToVhdl(vhdlGenerationOptions) + ")";
}