mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
26 lines
817 B
C#
26 lines
817 B
C#
using System.Collections.Generic;
|
|
|
|
namespace CapnpC.Model
|
|
{
|
|
class GenFile: IDefinition, IHasNestedDefinitions
|
|
{
|
|
public ulong Id { get; }
|
|
public bool IsGenerated { get; }
|
|
public TypeTag Tag { get => TypeTag.File; }
|
|
public IHasNestedDefinitions DeclaringElement { get => null; }
|
|
|
|
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, bool isGenerated)
|
|
{
|
|
Id = id;
|
|
IsGenerated = isGenerated;
|
|
}
|
|
}
|
|
}
|