mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-06-11 10:53:19 +02:00
Benchmarking
Capnp.Net.Runtime
Capnp.Net.Runtime.Tests
CapnpC.CSharp.Generator
CodeGen
Model
AbstractType.cs
Annotation.cs
Constant.cs
DefinitionManager.cs
Enumerant.cs
Field.cs
GenFile.cs
GenericParameter.cs
HasGenericParameters.cs
IDefinition.cs
IHasGenericParameters.cs
IHasNestedDefinitions.cs
IdentifierRenamer.cs
InvalidSchemaException.cs
Method.cs
SchemaModel.cs
SourceInfo.cs
SpecialName.cs
SupportedAnnotations.cs
Type.cs
TypeCategory.cs
TypeDefinition.cs
TypeTag.cs
Types.cs
Value.cs
Schema
CapnpC.CSharp.Generator.csproj
CapnpCompilation.cs
CapnpMessage.cs
CapnpProcessFailure.cs
FileGenerationResult.cs
GenerationResult.cs
CapnpC.CSharp.Generator.Tests
CapnpC.CSharp.MsBuild.Generation
CapnpC.CSharp.MsBuild.Generation.Tests
CapnpCompatTest
Licenses
MsBuildGenerationTest
capnpc-csharp
chocolatey
include
install-test
scripts
.gitattributes
.gitignore
Capnp.Net.sln
CapnpCompatTest.sln
Directory.Build.props
Directory.Build.targets
LICENSE
README.md
appveyor.yml
coverlet.runsettings
version.json
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace CapnpC.CSharp.Generator.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 bool? NullableEnable { get; set; }
|
|
public bool EmitNullableDirective { get; set; }
|
|
public bool EmitDomainClassesAndInterfaces { get; set; }
|
|
public string HeaderText { get; set; }
|
|
public SupportedAnnotations.TypeVisibility TypeVisibility { 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;
|
|
}
|
|
}
|
|
}
|