C# Code Index¶
- Schema URL: https://cocotec.io/schemas/popili/code-index-csharp-v1.schema.json
- Root schema: Index
-
AccessSpecifier¶ How accessible a declaration is.
Enum: private, private protected, protected, protected internal, file, internal, public
-
AtomicGenericConstraint¶ Enum: class, class?, default, new(), notnull, struct, unmanaged
-
BaseMethodDecl¶ Base type for method declaration syntax.
All Of: Properties: - parameters (Array[ParameterDecl]) –
- return_type (TypeRepr) –
- type_parameters (Array[TypeParameterDecl]) –
-
BaseNode¶ Properties: - coco_position (CocoPosition) –
- kind (String) –
-
ClassDecl¶ All Of: Properties: - declarations (Array[Decl]) –
- kind ("ClassDecl") –
- modifiers (Array[ClassModifier]) –
- parameters (Array[ParameterDecl]) –
-
ClassModifier¶ Enum: abstract, partial, sealed, record, static
-
ConstructorDecl¶ All Of: BaseMethodDecl – Properties: kind ("ConstructorDecl") –
-
Decl¶ All Of: BaseNode – Properties: access_specifier (AccessSpecifier) –
-
DestructorDecl¶ All Of: BaseMethodDecl – Properties: kind ("DestructorDecl") –
-
EnumDecl¶ All Of: Properties: - declarations (Array[Decl]) –
- kind ("EnumDecl") –
-
FieldDecl¶ Represents a field of a class or struct
All Of: Properties: - declared_type (TypeRepr) –
- kind ("FieldDecl") –
- modifiers (Array[FieldModifier]) –
-
FieldModifier¶ Enum: readonly, static, volatile
-
FunctionModifier¶ A modifier for a function.
Enum: abstract, new, override, sealed, static, virtual
-
GeneratedFile¶ A structured generated file
All Of: Decl –
Properties: - declarations (Array[Decl]) –
- file_name (String) – The relative file name for this file, including the desired file extension.
- kind ("GeneratedFile") –
-
Index¶ Root element of the generated code index for C#.
All Of: Index – Properties: generated (Array[GeneratedFile]) –
-
InterfaceDecl¶ All Of: Properties: - declarations (Array[Decl]) –
- kind ("InterfaceDecl") –
-
MethodDecl¶ All Of: BaseMethodDecl – Properties: kind ("MethodDecl") –
-
NamespaceDecl¶ All Of: Properties: - declarations (Array[Decl]) –
- kind ("NamespaceDecl") –
-
OverridableDecl¶ All Of: NamedDecl – Properties: modifiers (Array[FunctionModifier]) –
-
ParameterDecl¶ All Of: Properties: - declared_type (TypeRepr) –
- kind ("ParameterDecl") –
- parameter_kind (ParameterKind) –
-
ParameterKind¶ Enum: in, out, readonly ref, ref, var
-
PropertyDecl¶ All Of: Properties: - declared_type (TypeRepr) –
- get_accessor (PropertyAccessor) –
- init_accessor (PropertyAccessor) –
- kind ("PropertyDecl") –
- set_accessor (PropertyAccessor) –
-
SimpleTypeConstraint¶ All Of: Properties: - constraint (AtomicGenericConstraint) –
- kind ("SimpleTypeConstraint") –
-
StructDecl¶ All Of: Properties: - declarations (Array[Decl]) –
- kind ("StructDecl") –
- modifiers (Array[StructModifier]) –
-
StructModifier¶ Enum: readonly, record, ref, sealed
-
StructuralTypeDecl¶ All Of: NamedDecl – Properties: base (Array[TypeRepr]) –
-
SubtypeTypeConstraint¶ All Of: Properties: - kind ("SubtypeTypeConstraint") –
- required_base (TypeRepr) –
-
TypeParameterDecl¶ All Of: Properties: - kind ("TypeParameterDecl") –
- type_constraints (Array[TypeConstraint]) –
- variance (TypeParameterVariance) –
-
TypeParameterVariance¶ Describes how a type parameter of a generic InterfaceDecl can be instantiated.
Enum: Exact, Covariant, Contravariant
-
JSONReference¶ Properties: $ref (String) –