ArrayDeclarator
using System.Runtime.CompilerServices;
namespace CLanguage.Syntax
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
public class ArrayDeclarator : Declarator
{
public Expression LengthExpression { get; set; }
public TypeQualifiers TypeQualifiers { get; set; }
public bool LengthIsStatic { get; set; }
[System.Runtime.CompilerServices.Nullable(1)]
public override string DeclaredIdentifier {
[System.Runtime.CompilerServices.NullableContext(1)]
get {
if (base.InnerDeclarator == null)
return "";
return base.InnerDeclarator.DeclaredIdentifier;
}
}
public ArrayDeclarator(Declarator innerDeclarator, Expression length)
: base(innerDeclarator)
{
LengthExpression = length;
}
}
}