24 lines
718 B
C#
Raw Normal View History

using System.Collections.Generic;
2019-06-12 21:56:55 +02:00
namespace CapnpC.Model
{
class GenFile: IDefinition, IHasNestedDefinitions
2019-06-12 21:56:55 +02:00
{
public ulong Id { get; }
public TypeTag Tag { get => TypeTag.File; }
public IHasNestedDefinitions DeclaringElement { get => null; }
2019-06-12 21:56:55 +02:00
public string Name { get; set; }
public string[] Namespace { get; set; }
public IEnumerable<TypeDefinition> NestedTypes { get => this.GetNestedTypes(); }
public ICollection<IDefinition> NestedDefinitions { get; } = new List<IDefinition>();
public ICollection<Constant> Constants { get; } = new List<Constant>();
public GenFile(ulong id)
{
Id = id;
}
2019-06-12 21:56:55 +02:00
}
}