PointerDeclarator
using System.Runtime.CompilerServices;
namespace CLanguage.Syntax
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class PointerDeclarator : Declarator
{
public Pointer Pointer { get; set; }
public override string DeclaredIdentifier {
get {
if (base.InnerDeclarator == null)
return "";
return base.InnerDeclarator.DeclaredIdentifier;
}
}
public PointerDeclarator(Pointer pointer, Declarator decl)
: base(decl)
{
Pointer = pointer;
}
}
}