@alloy-js/csharp 0.23.0-dev.6 → 0.23.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/dev/src/components/constructor/constructor.js +15 -6
  2. package/dist/dev/src/components/constructor/constructor.js.map +1 -1
  3. package/dist/dev/src/components/constructor/constructor.test.js +53 -4
  4. package/dist/dev/src/components/constructor/constructor.test.js.map +1 -1
  5. package/dist/dev/src/components/enum/declaration.js +14 -5
  6. package/dist/dev/src/components/enum/declaration.js.map +1 -1
  7. package/dist/dev/src/components/enum/declaration.test.js +40 -0
  8. package/dist/dev/src/components/enum/declaration.test.js.map +1 -1
  9. package/dist/dev/src/components/enum/member.js +13 -4
  10. package/dist/dev/src/components/enum/member.js.map +1 -1
  11. package/dist/dev/src/components/enum/member.test.js +42 -0
  12. package/dist/dev/src/components/enum/member.test.js.map +1 -1
  13. package/dist/src/components/constructor/constructor.d.ts +2 -0
  14. package/dist/src/components/constructor/constructor.d.ts.map +1 -1
  15. package/dist/src/components/constructor/constructor.js +6 -1
  16. package/dist/src/components/constructor/constructor.js.map +1 -1
  17. package/dist/src/components/constructor/constructor.test.js +33 -0
  18. package/dist/src/components/constructor/constructor.test.js.map +1 -1
  19. package/dist/src/components/enum/declaration.d.ts +2 -0
  20. package/dist/src/components/enum/declaration.d.ts.map +1 -1
  21. package/dist/src/components/enum/declaration.js +6 -1
  22. package/dist/src/components/enum/declaration.js.map +1 -1
  23. package/dist/src/components/enum/declaration.test.js +24 -0
  24. package/dist/src/components/enum/declaration.test.js.map +1 -1
  25. package/dist/src/components/enum/member.d.ts +4 -2
  26. package/dist/src/components/enum/member.d.ts.map +1 -1
  27. package/dist/src/components/enum/member.js +6 -1
  28. package/dist/src/components/enum/member.js.map +1 -1
  29. package/dist/src/components/enum/member.test.js +26 -0
  30. package/dist/src/components/enum/member.test.js.map +1 -1
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/docs/api/components/AttributeList.md +34 -0
  33. package/docs/api/components/ClassDeclaration.md +104 -0
  34. package/docs/api/components/Constructor.md +55 -0
  35. package/docs/api/components/CsprojFile.md +34 -0
  36. package/docs/api/components/Declaration.md +32 -0
  37. package/docs/api/components/DocC.md +27 -0
  38. package/docs/api/components/DocCode.md +27 -0
  39. package/docs/api/components/DocComment.md +27 -0
  40. package/docs/api/components/DocDescription.md +27 -0
  41. package/docs/api/components/DocExample.md +27 -0
  42. package/docs/api/components/DocException.md +27 -0
  43. package/docs/api/components/DocFromMarkdown.md +27 -0
  44. package/docs/api/components/DocInclude.md +26 -0
  45. package/docs/api/components/DocList.md +26 -0
  46. package/docs/api/components/DocPara.md +27 -0
  47. package/docs/api/components/DocParam.md +28 -0
  48. package/docs/api/components/DocParamRef.md +25 -0
  49. package/docs/api/components/DocPermission.md +27 -0
  50. package/docs/api/components/DocRemarks.md +27 -0
  51. package/docs/api/components/DocReturns.md +27 -0
  52. package/docs/api/components/DocSee.md +30 -0
  53. package/docs/api/components/DocSeeAlso.md +29 -0
  54. package/docs/api/components/DocSummary.md +27 -0
  55. package/docs/api/components/DocTypeParam.md +28 -0
  56. package/docs/api/components/DocTypeParamRef.md +25 -0
  57. package/docs/api/components/DocValue.md +27 -0
  58. package/docs/api/components/DocWhen.md +27 -0
  59. package/docs/api/components/ElseClause.md +29 -0
  60. package/docs/api/components/ElseIfClause.md +30 -0
  61. package/docs/api/components/EnumDeclaration.md +76 -0
  62. package/docs/api/components/EnumMember.md +31 -0
  63. package/docs/api/components/Field.md +67 -0
  64. package/docs/api/components/IfStatement.md +30 -0
  65. package/docs/api/components/InterfaceDeclaration.md +82 -0
  66. package/docs/api/components/InterfaceMethod.md +68 -0
  67. package/docs/api/components/InterfaceProperty.md +78 -0
  68. package/docs/api/components/InvocationExpression.md +49 -0
  69. package/docs/api/components/LexicalScope.md +65 -0
  70. package/docs/api/components/Method.md +92 -0
  71. package/docs/api/components/MethodScope.md +65 -0
  72. package/docs/api/components/Name.md +19 -0
  73. package/docs/api/components/Namespace.md +35 -0
  74. package/docs/api/components/Parameter.md +58 -0
  75. package/docs/api/components/Parameters_2.md +27 -0
  76. package/docs/api/components/Property.md +110 -0
  77. package/docs/api/components/RecordDeclaration.md +84 -0
  78. package/docs/api/components/Reference.md +25 -0
  79. package/docs/api/components/Region.md +28 -0
  80. package/docs/api/components/SourceFile.md +45 -0
  81. package/docs/api/components/StructDeclaration.md +94 -0
  82. package/docs/api/components/UsingNamespaceDirective.md +25 -0
  83. package/docs/api/components/Usings.md +40 -0
  84. package/docs/api/components/VarDeclaration.md +74 -0
  85. package/docs/api/components/index.md +55 -0
  86. package/docs/api/functions/access.md +35 -0
  87. package/docs/api/functions/accessibilityFromProps.md +18 -0
  88. package/docs/api/functions/computeModifiersPrefix.md +20 -0
  89. package/docs/api/functions/createCSharpNamePolicy.md +17 -0
  90. package/docs/api/functions/createCSharpNamespaceScope.md +18 -0
  91. package/docs/api/functions/createClassScope.md +27 -0
  92. package/docs/api/functions/createFieldSymbol.md +43 -0
  93. package/docs/api/functions/createLibrary.md +19 -0
  94. package/docs/api/functions/createMethodScope.md +26 -0
  95. package/docs/api/functions/createMethodSymbol.md +34 -0
  96. package/docs/api/functions/createNamedTypeScope.md +27 -0
  97. package/docs/api/functions/createNamedTypeSymbol.md +35 -0
  98. package/docs/api/functions/createNamespaceSymbol.md +43 -0
  99. package/docs/api/functions/createParameterSymbol.md +45 -0
  100. package/docs/api/functions/createPropertySymbol.md +43 -0
  101. package/docs/api/functions/createTypeParameterSymbol.md +34 -0
  102. package/docs/api/functions/createVariableSymbol.md +43 -0
  103. package/docs/api/functions/getAccessModifier.md +18 -0
  104. package/docs/api/functions/getAsyncModifier.md +18 -0
  105. package/docs/api/functions/index.md +33 -0
  106. package/docs/api/functions/makeModifiers.md +18 -0
  107. package/docs/api/functions/nonAccessibilityFromProps.md +18 -0
  108. package/docs/api/functions/ref.md +18 -0
  109. package/docs/api/functions/useCSharpNamePolicy.md +17 -0
  110. package/docs/api/functions/useCSharpScope.md +17 -0
  111. package/docs/api/functions/useCsharpFormatOptions.md +18 -0
  112. package/docs/api/functions/useEnclosingNamespaceScope.md +17 -0
  113. package/docs/api/functions/useLexicalScope.md +17 -0
  114. package/docs/api/functions/useMethodScope.md +17 -0
  115. package/docs/api/functions/useNamedTypeScope.md +17 -0
  116. package/docs/api/functions/useNamespace.md +17 -0
  117. package/docs/api/functions/useSourceFileScope.md +17 -0
  118. package/docs/api/index.md +6 -0
  119. package/docs/api/types/AccessExpressionBuilder.md +11 -0
  120. package/docs/api/types/AccessExpressionPartProps.md +17 -0
  121. package/docs/api/types/AccessModifiers.md +13 -0
  122. package/docs/api/types/AttributeProps.md +8 -0
  123. package/docs/api/types/AttributesProp.md +5 -0
  124. package/docs/api/types/CSharpClassScope.md +9 -0
  125. package/docs/api/types/CSharpElements.md +5 -0
  126. package/docs/api/types/CSharpFormatOptions.md +5 -0
  127. package/docs/api/types/CSharpLexicalScope.md +10 -0
  128. package/docs/api/types/CSharpMethodScope.md +12 -0
  129. package/docs/api/types/CSharpNamedTypeScope.md +16 -0
  130. package/docs/api/types/CSharpNamespaceScope.md +10 -0
  131. package/docs/api/types/CSharpProjectSdk.md +5 -0
  132. package/docs/api/types/CSharpScope.md +12 -0
  133. package/docs/api/types/CSharpSourceFileScope.md +13 -0
  134. package/docs/api/types/CSharpSymbol.md +30 -0
  135. package/docs/api/types/CSharpSymbolKinds.md +5 -0
  136. package/docs/api/types/CSharpSymbolOptions.md +17 -0
  137. package/docs/api/types/ClassDescriptor.md +9 -0
  138. package/docs/api/types/ClassModifiers.md +10 -0
  139. package/docs/api/types/CreateMethodSymbolOptions.md +9 -0
  140. package/docs/api/types/CreateTypeParameterSymbolOptions.md +9 -0
  141. package/docs/api/types/DeclarationModifiers.md +8 -0
  142. package/docs/api/types/DeclaredAccessibility.md +5 -0
  143. package/docs/api/types/Descriptor.md +5 -0
  144. package/docs/api/types/DocCommentTagProps.md +7 -0
  145. package/docs/api/types/EnumDescriptor.md +9 -0
  146. package/docs/api/types/FieldDescriptor.md +9 -0
  147. package/docs/api/types/FieldModifiers.md +12 -0
  148. package/docs/api/types/GenericDescriptor.md +7 -0
  149. package/docs/api/types/InterfaceDescriptor.md +9 -0
  150. package/docs/api/types/InterfaceMethodModifiers.md +9 -0
  151. package/docs/api/types/InterfaceModifiers.md +7 -0
  152. package/docs/api/types/InterfacePropertyModifiers.md +9 -0
  153. package/docs/api/types/LexicalScopeProps.md +5 -0
  154. package/docs/api/types/LibraryFrom.md +7 -0
  155. package/docs/api/types/MemberDescriptor.md +16 -0
  156. package/docs/api/types/MethodDescriptor.md +10 -0
  157. package/docs/api/types/MethodKinds.md +5 -0
  158. package/docs/api/types/MethodModifiers.md +15 -0
  159. package/docs/api/types/MethodScopeProps.md +5 -0
  160. package/docs/api/types/MethodSymbol.md +13 -0
  161. package/docs/api/types/NamedTypeDescriptor.md +11 -0
  162. package/docs/api/types/NamedTypeSymbol.md +17 -0
  163. package/docs/api/types/NamedTypeSymbolKind.md +5 -0
  164. package/docs/api/types/NamedTypeTypeKind.md +5 -0
  165. package/docs/api/types/NamespaceDescriptor.md +8 -0
  166. package/docs/api/types/NamespaceSymbol.md +16 -0
  167. package/docs/api/types/NamespaceSymbolOptions.md +9 -0
  168. package/docs/api/types/NonAccessModifiers.md +13 -0
  169. package/docs/api/types/PropertyDescriptor_2.md +9 -0
  170. package/docs/api/types/PropertyModifiers.md +17 -0
  171. package/docs/api/types/RecordDescriptor.md +9 -0
  172. package/docs/api/types/RecordModifiers.md +7 -0
  173. package/docs/api/types/ResolveDescriptor.md +7 -0
  174. package/docs/api/types/StructDescriptor.md +9 -0
  175. package/docs/api/types/StructModifiers.md +10 -0
  176. package/docs/api/types/TypeParameterProps.md +11 -0
  177. package/docs/api/types/VarModifiers.md +8 -0
  178. package/docs/api/types/index.md +62 -0
  179. package/docs/api/variables/Attribute.md +21 -0
  180. package/docs/api/variables/index.md +3 -0
  181. package/package.json +5 -5
  182. package/src/components/constructor/constructor.test.tsx +27 -0
  183. package/src/components/constructor/constructor.tsx +5 -0
  184. package/src/components/enum/declaration.test.tsx +20 -0
  185. package/src/components/enum/declaration.tsx +4 -0
  186. package/src/components/enum/member.test.tsx +21 -0
  187. package/src/components/enum/member.tsx +5 -0
  188. package/temp/api.json +85 -5
@@ -0,0 +1,18 @@
1
+ # makeModifiers
2
+
3
+ ```ts
4
+ import { makeModifiers } from "@alloy-js/csharp";
5
+
6
+
7
+ function makeModifiers<T>(obj: Array<keyof T>): (data: T) => string;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | --- | --------------- | - |
14
+ | obj | Array\<keyof T> | |
15
+
16
+ ## Returns
17
+
18
+ (data: T) => string
@@ -0,0 +1,18 @@
1
+ # nonAccessibilityFromProps
2
+
3
+ ```ts
4
+ import { nonAccessibilityFromProps } from "@alloy-js/csharp";
5
+
6
+
7
+ function nonAccessibilityFromProps(props: NonAccessModifiers): CSharpSymbolOptions;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ----- | ------------------ | - |
14
+ | props | NonAccessModifiers | |
15
+
16
+ ## Returns
17
+
18
+ [CSharpSymbolOptions](../../types/csharpsymboloptions/)
@@ -0,0 +1,18 @@
1
+ # ref
2
+
3
+ ```ts
4
+ import { ref } from "@alloy-js/csharp";
5
+
6
+
7
+ function ref(refkey: Refkey): () => [Children, OutputSymbol | undefined];
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------ | ------ | - |
14
+ | refkey | Refkey | |
15
+
16
+ ## Returns
17
+
18
+ () => \[[Children](../../../core/types/children/), [OutputSymbol](../../../core/types/outputsymbol/) | undefined]
@@ -0,0 +1,17 @@
1
+ # useCSharpNamePolicy
2
+
3
+ ```ts
4
+ import { useCSharpNamePolicy } from "@alloy-js/csharp";
5
+
6
+
7
+ function useCSharpNamePolicy(): core.NamePolicy<CSharpElements>;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [NamePolicy](../../../core/types/namepolicy/)<[CSharpElements](../../types/csharpelements/)>
@@ -0,0 +1,17 @@
1
+ # useCSharpScope
2
+
3
+ ```ts
4
+ import { useCSharpScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function useCSharpScope(): CSharpScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpScope](../../types/csharpscope/)
@@ -0,0 +1,18 @@
1
+ # useCsharpFormatOptions
2
+
3
+ ```ts
4
+ import { useCsharpFormatOptions } from "@alloy-js/csharp";
5
+
6
+
7
+ useCsharpFormatOptions: (overrides?: Partial<CSharpFormatOptions> | undefined) => CSharpFormatOptions
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | --------- | --------------------------------------------------- | - |
14
+ | overrides | optional Partial\<CSharpFormatOptions> \| undefined | |
15
+
16
+ ## Returns
17
+
18
+ [CSharpFormatOptions](../../types/csharpformatoptions/)
@@ -0,0 +1,17 @@
1
+ # useEnclosingNamespaceScope
2
+
3
+ ```ts
4
+ import { useEnclosingNamespaceScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function useEnclosingNamespaceScope(): CSharpNamespaceScope | undefined;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpNamespaceScope](../../types/csharpnamespacescope/) | undefined
@@ -0,0 +1,17 @@
1
+ # useLexicalScope
2
+
3
+ ```ts
4
+ import { useLexicalScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function useLexicalScope(): CSharpLexicalScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpLexicalScope](../../types/csharplexicalscope/)
@@ -0,0 +1,17 @@
1
+ # useMethodScope
2
+
3
+ ```ts
4
+ import { useMethodScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function useMethodScope(): CSharpMethodScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpMethodScope](../../types/csharpmethodscope/)
@@ -0,0 +1,17 @@
1
+ # useNamedTypeScope
2
+
3
+ ```ts
4
+ import { useNamedTypeScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function useNamedTypeScope(): CSharpNamedTypeScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpNamedTypeScope](../../types/csharpnamedtypescope/)
@@ -0,0 +1,17 @@
1
+ # useNamespace
2
+
3
+ ```ts
4
+ import { useNamespace } from "@alloy-js/csharp";
5
+
6
+
7
+ function useNamespace(): CSharpNamespaceScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpNamespaceScope](../../types/csharpnamespacescope/)
@@ -0,0 +1,17 @@
1
+ # useSourceFileScope
2
+
3
+ ```ts
4
+ import { useSourceFileScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function useSourceFileScope(): CSharpSourceFileScope | undefined;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | |
13
+ | - |
14
+
15
+ ## Returns
16
+
17
+ [CSharpSourceFileScope](../../types/csharpsourcefilescope/) | undefined
@@ -0,0 +1,6 @@
1
+ # @alloy-js/csharp API Reference
2
+
3
+ - [components](components/index.md) (53 items)
4
+ - [functions](functions/index.md) (31 items)
5
+ - [types](types/index.md) (60 items)
6
+ - [variables](variables/index.md) (1 items)
@@ -0,0 +1,11 @@
1
+ # AccessExpressionBuilder
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | ------------- | --------------------------------------------------------------------------------------------- | - |
7
+ | \[RENDERABLE] | () => Children | |
8
+ | call | (member: Refkeyable \| string, args: Children\[], options: AccessExpressionPartProps) => this | |
9
+ | call | (args: Children\[], options: AccessExpressionPartProps) => this | |
10
+ | index | (indexerArgs: Children\[], options: AccessExpressionPartProps) => this | |
11
+ | member | (member: Refkeyable \| string \| CSharpSymbol, options: AccessExpressionPartProps) => this | |
@@ -0,0 +1,17 @@
1
+ # AccessExpressionPartProps
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | ----------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7
+ | args | optional boolean \| [Children](../../../core/types/children/)\[] | Emit a function call. |
8
+ | attribute | optional boolean | Wether this part is an attribute reference (used in an attribute context). In that case the “Attribute” suffix is trimmed from the name if present. |
9
+ | children | optional [Children](../../../core/types/children/) | |
10
+ | conditional | optional boolean | Whether this part should use conditional access. |
11
+ | id | optional string | The identifier to use for this part. |
12
+ | index | optional [Children](../../../core/types/children/) | Create an element access part with a single indexer argument. Mutually exclusive with the `indexerArgs` prop. |
13
+ | indexerArgs | optional [Children](../../../core/types/children/)\[] | Create an element access part with multiple indexer arguments. Mutually exclusive with the `index` prop. |
14
+ | nullable | optional boolean | Whether this part could possibly be null. Will guard member and element access with a conditional access operator. Passing this is not necessary if you provide a symbol or refkey and the symbol’s nullable flag is set. |
15
+ | refkey | optional [Refkeyable](../../../core/types/refkeyable/) | A refkey for the symbol whose name becomes this part’s identifier. When a refkey is provided for the first part, it will be fully resolved. Otherwise, just the symbol’s name is used. |
16
+ | symbol | optional [CSharpSymbol](../csharpsymbol/) | The symbol whose name becomes this part’s identifier. |
17
+ | typeArgs | optional [Children](../../../core/types/children/)\[] | Type arguments to pass to a member access. |
@@ -0,0 +1,13 @@
1
+ # AccessModifiers
2
+
3
+ Access modifiers.
4
+
5
+ ## Members
6
+
7
+ | | | |
8
+ | --------- | ---------------- | - |
9
+ | file | optional boolean | |
10
+ | internal | optional boolean | |
11
+ | private | optional boolean | |
12
+ | protected | optional boolean | |
13
+ | public | optional boolean | |
@@ -0,0 +1,8 @@
1
+ # AttributeProps
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | ---- | ------------------------------------------------------- | -------------- |
7
+ | args | optional [Children](../../../core/types/children/)\[] | Argument |
8
+ | name | string \| [Refkeyable](../../../core/types/refkeyable/) | Attribute name |
@@ -0,0 +1,5 @@
1
+ # AttributesProp
2
+
3
+ ```ts
4
+ type AttributesProp = Array<string | AttributeProps | Children>;
5
+ ```
@@ -0,0 +1,9 @@
1
+ # CSharpClassScope
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpNamedTypeScope](../csharpnamedtypescope/)
6
+
7
+ | | | |
8
+ | ---------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
9
+ | parameters | [OutputSpace](../../../core/types/outputspace/) | For now, we stuff class parameters into the member scope. This is to ensure name conflicts are handled correctly. |
@@ -0,0 +1,5 @@
1
+ # CSharpElements
2
+
3
+ ```ts
4
+ type CSharpElements = "class" | "constant" | "variable" | "struct" | "enum" | "enum-member" | "function" | "interface" | "record" | "class-member-private" | "class-member-public" | "class-method" | "class-property" | "parameter" | "type-parameter" | "namespace";
5
+ ```
@@ -0,0 +1,5 @@
1
+ # CSharpFormatOptions
2
+
3
+ ```ts
4
+ CSharpFormatOptions: import("@alloy-js/core").ComponentDefinition<import("@alloy-js/core").ContextProviderProps<CSharpFormatOptions>>
5
+ ```
@@ -0,0 +1,10 @@
1
+ # CSharpLexicalScope
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpScope](../csharpscope/)
6
+
7
+ | | | |
8
+ | ----------------- | ----------------------------------------------- | - |
9
+ | declarationSpaces | string\[] | |
10
+ | localVariables | [OutputSpace](../../../core/types/outputspace/) | |
@@ -0,0 +1,12 @@
1
+ # CSharpMethodScope
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpLexicalScope](../csharplexicalscope/)
6
+
7
+ | | | |
8
+ | ----------------- | ----------------------------------------------- | - |
9
+ | declarationSpaces | string\[] | |
10
+ | localVariables | [OutputSpace](../../../core/types/outputspace/) | |
11
+ | parameters | [OutputSpace](../../../core/types/outputspace/) | |
12
+ | typeParameters | [OutputSpace](../../../core/types/outputspace/) | |
@@ -0,0 +1,16 @@
1
+ # CSharpNamedTypeScope
2
+
3
+ This scope contains NamedTypeSymbols for types that are declared in containers like namespaces. This scope is a member scope which whose member symbol is a NamedTypeSymbol.
4
+
5
+ ## Members
6
+
7
+ Extends [CSharpScope](../csharpscope/)
8
+
9
+ | | | |
10
+ | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
11
+ | constructor | (ownerSymbol: NamedTypeSymbol, parentScope: CSharpNamedTypeScope \| CSharpSourceFileScope \| undefined, options: OutputScopeOptions) | Constructs a new instance of the [`CSharpNamedTypeScope`](CSharpNamedTypeScope.md) class |
12
+ | declarationSpaces | never\[] | |
13
+ | enclosingNamespace | import(”../index.js”).[NamespaceSymbol](../namespacesymbol/) \| undefined | |
14
+ | members | import(“@alloy-js/core”).[OutputMemberSpace](../../../core/types/outputmemberspace/) | |
15
+ | ownerSymbol | [NamedTypeSymbol](../namedtypesymbol/) | |
16
+ | typeParameters | import(“@alloy-js/core”).[OutputMemberSpace](../../../core/types/outputmemberspace/) | For now, we stuff type parameters into the member scope. This is to ensure name conflicts are handled correctly. |
@@ -0,0 +1,10 @@
1
+ # CSharpNamespaceScope
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpNamedTypeScope](../csharpnamedtypescope/)
6
+
7
+ | | | |
8
+ | ----------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
9
+ | constructor | (namespaceSymbol: NamespaceSymbol, parentScope: CSharpNamespaceScope \| CSharpSourceFileScope) | Constructs a new instance of the [`CSharpNamespaceScope`](CSharpNamespaceScope.md) class |
10
+ | ownerSymbol | [NamespaceSymbol](../namespacesymbol/) | |
@@ -0,0 +1,5 @@
1
+ # CSharpProjectSdk
2
+
3
+ ```ts
4
+ type CSharpProjectSdk = "Microsoft.NET.Sdk" | "Microsoft.NET.Sdk.Web" | "Microsoft.NET.Sdk.Worker" | "Microsoft.NET.Sdk.Razor" | "Microsoft.NET.Sdk.BlazorWebAssembly" | "Aspire.AppHost.Sdk" | "MSTest.Sdk";
5
+ ```
@@ -0,0 +1,12 @@
1
+ # CSharpScope
2
+
3
+ ## Members
4
+
5
+ Extends [OutputScope](../../../core/types/outputscope/)
6
+
7
+ | | | |
8
+ | ------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------- |
9
+ | constructor | (name: string, parent: CSharpScope \| undefined, options: OutputScopeOptions) | Constructs a new instance of the [`CSharpScope`](CSharpScope.md) class |
10
+ | debugInfo | Record\<string, unknown> | |
11
+ | enclosingNamespace | [NamespaceSymbol](../namespacesymbol/) \| undefined | |
12
+ | ownerSymbol | [CSharpSymbol](../csharpsymbol/) \| undefined | |
@@ -0,0 +1,13 @@
1
+ # CSharpSourceFileScope
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpLexicalScope](../csharplexicalscope/)
6
+
7
+ | | | |
8
+ | ----------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
9
+ | constructor | (name: string, parent: CSharpNamespaceScope, options: OutputScopeOptions) | Constructs a new instance of the [`CSharpSourceFileScope`](CSharpSourceFileScope.md) class |
10
+ | addUsing | (using: NamespaceSymbol) => void | |
11
+ | hasBlockNamespace | boolean | |
12
+ | parent | [CSharpNamespaceScope](../csharpnamespacescope/) | |
13
+ | usings | import(“@vue/reactivity”).ShallowReactive\<Set<[NamespaceSymbol](../namespacesymbol/)>> | |
@@ -0,0 +1,30 @@
1
+ # CSharpSymbol
2
+
3
+ This is the base type for all symbols in C#.
4
+
5
+ Many subtypes of this symbol exist for specific purposes. However, this symbol may be used in cases where a more specific symbol is not required.
6
+
7
+ ## Members
8
+
9
+ Extends [OutputSymbol](../../../core/types/outputsymbol/)
10
+
11
+ | | | |
12
+ | ------------------ | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | constructor | (name: string \| Namekey, spaces: OutputSpace\[] \| OutputSpace \| undefined, options: CSharpSymbolOptions) | Constructs a new instance of the [`CSharpSymbol`](CSharpSymbol.md) class |
14
+ | accessibility | [DeclaredAccessibility](../declaredaccessibility/) \| undefined | |
15
+ | copy | () => CSharpSymbol | |
16
+ | debugInfo | Record\<string, unknown> | |
17
+ | enclosingNamespace | [NamespaceSymbol](../namespacesymbol/) \| undefined | |
18
+ | isAbstract | boolean | Whether this symbol is abstract. |
19
+ | isExtern | boolean | Whether this symbol is extern. |
20
+ | isNullable | boolean | Whether this symbol might contain null. True if this symbol has a `typeSymbol` and that symbol is nullable, or else when this symbol has the `nullable` option set. |
21
+ | isOverride | boolean | Whether this symbol is override. |
22
+ | isReadOnly | boolean | Whether this symbol is readonly. |
23
+ | isSealed | boolean | Whether this symbol is sealed. |
24
+ | isStatic | boolean | Whether this symbol is static. |
25
+ | isVirtual | boolean | Whether this symbol is virtual. |
26
+ | symbolKind | [CSharpSymbolKinds](../csharpsymbolkinds/) | |
27
+
28
+ ## Remarks
29
+
30
+ This is roughly equivalent to the Roslyn ISymbol interface: <https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.isymbol?view=roslyn-dotnet-4.13.0>
@@ -0,0 +1,5 @@
1
+ # CSharpSymbolKinds
2
+
3
+ ```ts
4
+ type CSharpSymbolKinds = "symbol" | "named-type" | "method" | "field" | "property" | "namespace" | "event";
5
+ ```
@@ -0,0 +1,17 @@
1
+ # CSharpSymbolOptions
2
+
3
+ ## Members
4
+
5
+ Extends [OutputSymbolOptions](../../../core/types/outputsymboloptions/)
6
+
7
+ | | | |
8
+ | ------------- | ----------------------------------------------------------- | ---------------------------------------------------- |
9
+ | accessibility | optional [DeclaredAccessibility](../declaredaccessibility/) | The accessibility of the symbol. |
10
+ | isAbstract | optional boolean | |
11
+ | isExtern | optional boolean | |
12
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
13
+ | isOverride | optional boolean | |
14
+ | isReadOnly | optional boolean | |
15
+ | isSealed | optional boolean | |
16
+ | isStatic | optional boolean | |
17
+ | isVirtual | optional boolean | |
@@ -0,0 +1,9 @@
1
+ # ClassDescriptor
2
+
3
+ ## Members
4
+
5
+ Extends [NamedTypeDescriptor](../namedtypedescriptor/)\<M>
6
+
7
+ | | | |
8
+ | ---- | ------- | - |
9
+ | kind | ”class” | |
@@ -0,0 +1,10 @@
1
+ # ClassModifiers
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | -------- | ---------------- | - |
7
+ | abstract | optional boolean | |
8
+ | partial | optional boolean | |
9
+ | sealed | optional boolean | |
10
+ | static | optional boolean | |
@@ -0,0 +1,9 @@
1
+ # CreateMethodSymbolOptions
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpSymbolOptions](../csharpsymboloptions/)
6
+
7
+ | | | |
8
+ | ---------- | --------------------------------------- | - |
9
+ | methodKind | optional [MethodKinds](../methodkinds/) | |
@@ -0,0 +1,9 @@
1
+ # CreateTypeParameterSymbolOptions
2
+
3
+ ## Members
4
+
5
+ Extends [CSharpSymbolOptions](../csharpsymboloptions/)
6
+
7
+ | | | |
8
+ | ----- | ------------------------------------------------------------------------------------------------------- | - |
9
+ | scope | optional [CSharpMethodScope](../csharpmethodscope/) \| [CSharpNamedTypeScope](../csharpnamedtypescope/) | |
@@ -0,0 +1,8 @@
1
+ # DeclarationModifiers
2
+
3
+ ## Members
4
+
5
+ Extends [AccessModifiers](../accessmodifiers/),[NonAccessModifiers](../nonaccessmodifiers/)
6
+
7
+ | |
8
+ | - |
@@ -0,0 +1,5 @@
1
+ # DeclaredAccessibility
2
+
3
+ ```ts
4
+ type DeclaredAccessibility = "private" | "protected" | "internal" | "public";
5
+ ```
@@ -0,0 +1,5 @@
1
+ # Descriptor
2
+
3
+ ```ts
4
+ type Descriptor = FieldDescriptor | MethodDescriptor | PropertyDescriptor | NamespaceDescriptor<any> | ClassDescriptor<any> | InterfaceDescriptor<any> | EnumDescriptor<any> | StructDescriptor<any> | RecordDescriptor<any> | GenericDescriptor;
5
+ ```
@@ -0,0 +1,7 @@
1
+ # DocCommentTagProps
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | -------- | ----------------------------------------- | - |
7
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,9 @@
1
+ # EnumDescriptor
2
+
3
+ ## Members
4
+
5
+ Extends [NamedTypeDescriptor](../namedtypedescriptor/)\<M>
6
+
7
+ | | | |
8
+ | ---- | ------ | - |
9
+ | kind | ”enum” | |
@@ -0,0 +1,9 @@
1
+ # FieldDescriptor
2
+
3
+ ## Members
4
+
5
+ Extends [MemberDescriptor](../memberdescriptor/)
6
+
7
+ | | | |
8
+ | ---- | ------- | - |
9
+ | kind | ”field” | |
@@ -0,0 +1,12 @@
1
+ # FieldModifiers
2
+
3
+ Field modifiers.
4
+
5
+ ## Members
6
+
7
+ | | | |
8
+ | -------- | ---------------- | - |
9
+ | new | optional boolean | |
10
+ | readonly | optional boolean | |
11
+ | static | optional boolean | |
12
+ | volatile | optional boolean | |
@@ -0,0 +1,7 @@
1
+ # GenericDescriptor
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | ---- | --------- | - |
7
+ | kind | ”generic” | |
@@ -0,0 +1,9 @@
1
+ # InterfaceDescriptor
2
+
3
+ ## Members
4
+
5
+ Extends [NamedTypeDescriptor](../namedtypedescriptor/)\<M>
6
+
7
+ | | | |
8
+ | ---- | ----------- | - |
9
+ | kind | ”interface” | |
@@ -0,0 +1,9 @@
1
+ # InterfaceMethodModifiers
2
+
3
+ Method modifiers. Can only be one.
4
+
5
+ ## Members
6
+
7
+ | | | |
8
+ | --- | ---------------- | - |
9
+ | new | optional boolean | |
@@ -0,0 +1,7 @@
1
+ # InterfaceModifiers
2
+
3
+ ## Members
4
+
5
+ | | | |
6
+ | ------- | ---------------- | - |
7
+ | partial | optional boolean | |