mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
20 lines
467 B
C#
20 lines
467 B
C#
|
|
|||
|
namespace CapnpC.Model
|
|||
|
{
|
|||
|
class Annotation : IDefinition
|
|||
|
{
|
|||
|
public ulong Id { get; }
|
|||
|
public TypeTag Tag { get => TypeTag.Annotation; }
|
|||
|
public IHasNestedDefinitions DeclaringElement { get; }
|
|||
|
|
|||
|
public Type Type { get; set; }
|
|||
|
|
|||
|
public Annotation(ulong id, IHasNestedDefinitions parent)
|
|||
|
{
|
|||
|
Id = id;
|
|||
|
DeclaringElement = parent;
|
|||
|
parent.NestedDefinitions.Add(this);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|