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

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 +78 -9
  2. package/dist/dev/src/components/constructor/constructor.js.map +1 -1
  3. package/dist/dev/src/components/constructor/constructor.test.js +170 -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 +34 -0
  14. package/dist/src/components/constructor/constructor.d.ts.map +1 -1
  15. package/dist/src/components/constructor/constructor.js +41 -4
  16. package/dist/src/components/constructor/constructor.js.map +1 -1
  17. package/dist/src/components/constructor/constructor.test.js +114 -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 +61 -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 +91 -0
  183. package/src/components/constructor/constructor.tsx +86 -1
  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 +149 -5
@@ -0,0 +1,43 @@
1
+ # createFieldSymbol
2
+
3
+ ```ts
4
+ import { createFieldSymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createFieldSymbol(originalName: string | Namekey, options?: CSharpSymbolOptions): CSharpSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------------ | ---------------------------- | - |
14
+ | originalName | string \| Namekey | |
15
+ | options | optional CSharpSymbolOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
22
+ | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
+ | isAbstract | optional boolean | |
27
+ | isExtern | optional boolean | |
28
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
29
+ | isOverride | optional boolean | |
30
+ | isReadOnly | optional boolean | |
31
+ | isSealed | optional boolean | |
32
+ | isStatic | optional boolean | |
33
+ | isVirtual | optional boolean | |
34
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
35
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
36
+ | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
37
+ | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
38
+ | transient | optional boolean | Whether this symbol is transient. |
39
+ | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
40
+
41
+ ## Returns
42
+
43
+ [CSharpSymbol](../../types/csharpsymbol/)
@@ -0,0 +1,19 @@
1
+ # createLibrary
2
+
3
+ ```ts
4
+ import { createLibrary } from "@alloy-js/csharp";
5
+
6
+
7
+ function createLibrary<T extends Record<string, Descriptor>>(rootNs: string, props: T): LibraryFrom<T>;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------ | ------ | - |
14
+ | rootNs | string | |
15
+ | props | T | |
16
+
17
+ ## Returns
18
+
19
+ [LibraryFrom](../../types/libraryfrom/)\<T>
@@ -0,0 +1,26 @@
1
+ # createMethodScope
2
+
3
+ ```ts
4
+ import { createMethodScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function createMethodScope(options?: OutputScopeOptions): CSharpMethodScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------- | --------------------------- | - |
14
+ | options | optional OutputScopeOptions | |
15
+
16
+ ## Options
17
+
18
+ | | | |
19
+ | ----------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
21
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata that is associated with this scope. |
22
+ | ownerSymbol | optional [OutputSymbol](../../../core/types/outputsymbol/) | The owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces. |
23
+
24
+ ## Returns
25
+
26
+ [CSharpMethodScope](../../types/csharpmethodscope/)
@@ -0,0 +1,34 @@
1
+ # createMethodSymbol
2
+
3
+ ```ts
4
+ import { createMethodSymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createMethodSymbol(originalName: string | Namekey, options?: CreateMethodSymbolOptions): MethodSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------------ | ---------------------------------- | - |
14
+ | originalName | string \| Namekey | |
15
+ | options | optional CreateMethodSymbolOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | ------------- | -------------------------------------------------------------------- | ---------------------------------------------------- |
21
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
22
+ | isAbstract | optional boolean | |
23
+ | isExtern | optional boolean | |
24
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
25
+ | isOverride | optional boolean | |
26
+ | isReadOnly | optional boolean | |
27
+ | isSealed | optional boolean | |
28
+ | isStatic | optional boolean | |
29
+ | isVirtual | optional boolean | |
30
+ | methodKind | optional [MethodKinds](../../types/methodkinds/) | |
31
+
32
+ ## Returns
33
+
34
+ [MethodSymbol](../../types/methodsymbol/)
@@ -0,0 +1,27 @@
1
+ # createNamedTypeScope
2
+
3
+ ```ts
4
+ import { createNamedTypeScope } from "@alloy-js/csharp";
5
+
6
+
7
+ function createNamedTypeScope(ownerSymbol: NamedTypeSymbol, options?: OutputScopeOptions): CSharpNamedTypeScope;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ----------- | --------------------------- | - |
14
+ | ownerSymbol | NamedTypeSymbol | |
15
+ | options | optional OutputScopeOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | ----------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
22
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata that is associated with this scope. |
23
+ | ownerSymbol | optional [OutputSymbol](../../../core/types/outputsymbol/) | The owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces. |
24
+
25
+ ## Returns
26
+
27
+ [CSharpNamedTypeScope](../../types/csharpnamedtypescope/)
@@ -0,0 +1,35 @@
1
+ # createNamedTypeSymbol
2
+
3
+ ```ts
4
+ import { createNamedTypeSymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createNamedTypeSymbol(name: string | Namekey, kind: NamedTypeTypeKind, options?: OutputSymbolOptions): NamedTypeSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------- | ---------------------------- | - |
14
+ | name | string \| Namekey | |
15
+ | kind | NamedTypeTypeKind | |
16
+ | options | optional OutputSymbolOptions | |
17
+
18
+ ## Options
19
+
20
+ | | | |
21
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
+ | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
27
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
28
+ | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
29
+ | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
30
+ | transient | optional boolean | Whether this symbol is transient. |
31
+ | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
32
+
33
+ ## Returns
34
+
35
+ [NamedTypeSymbol](../../types/namedtypesymbol/)
@@ -0,0 +1,43 @@
1
+ # createNamespaceSymbol
2
+
3
+ ```ts
4
+ import { createNamespaceSymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createNamespaceSymbol(name: string | Namekey | (string | Namekey)[], options?: CSharpSymbolOptions): NamespaceSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------- | ------------------------------------------- | - |
14
+ | name | string \| Namekey \| (string \| Namekey)\[] | |
15
+ | options | optional CSharpSymbolOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
22
+ | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
+ | isAbstract | optional boolean | |
27
+ | isExtern | optional boolean | |
28
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
29
+ | isOverride | optional boolean | |
30
+ | isReadOnly | optional boolean | |
31
+ | isSealed | optional boolean | |
32
+ | isStatic | optional boolean | |
33
+ | isVirtual | optional boolean | |
34
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
35
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
36
+ | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
37
+ | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
38
+ | transient | optional boolean | Whether this symbol is transient. |
39
+ | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
40
+
41
+ ## Returns
42
+
43
+ [NamespaceSymbol](../../types/namespacesymbol/)
@@ -0,0 +1,45 @@
1
+ # createParameterSymbol
2
+
3
+ Create a symbol for a parameter in the current method scope.
4
+
5
+ ```ts
6
+ import { createParameterSymbol } from "@alloy-js/csharp";
7
+
8
+
9
+ function createParameterSymbol(originalName: string | Namekey, options?: CSharpSymbolOptions): CSharpSymbol;
10
+ ```
11
+
12
+ ## Parameters
13
+
14
+ | | | |
15
+ | ------------ | ---------------------------- | - |
16
+ | originalName | string \| Namekey | |
17
+ | options | optional CSharpSymbolOptions | |
18
+
19
+ ## Options
20
+
21
+ | | | |
22
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
24
+ | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
25
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
26
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
+ | isAbstract | optional boolean | |
29
+ | isExtern | optional boolean | |
30
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
31
+ | isOverride | optional boolean | |
32
+ | isReadOnly | optional boolean | |
33
+ | isSealed | optional boolean | |
34
+ | isStatic | optional boolean | |
35
+ | isVirtual | optional boolean | |
36
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
37
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
38
+ | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
39
+ | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
40
+ | transient | optional boolean | Whether this symbol is transient. |
41
+ | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
42
+
43
+ ## Returns
44
+
45
+ [CSharpSymbol](../../types/csharpsymbol/)
@@ -0,0 +1,43 @@
1
+ # createPropertySymbol
2
+
3
+ ```ts
4
+ import { createPropertySymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createPropertySymbol(name: string | Namekey, options: CSharpSymbolOptions): CSharpSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------- | ------------------- | - |
14
+ | name | string \| Namekey | |
15
+ | options | CSharpSymbolOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
22
+ | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
+ | isAbstract | optional boolean | |
27
+ | isExtern | optional boolean | |
28
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
29
+ | isOverride | optional boolean | |
30
+ | isReadOnly | optional boolean | |
31
+ | isSealed | optional boolean | |
32
+ | isStatic | optional boolean | |
33
+ | isVirtual | optional boolean | |
34
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
35
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
36
+ | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
37
+ | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
38
+ | transient | optional boolean | Whether this symbol is transient. |
39
+ | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
40
+
41
+ ## Returns
42
+
43
+ [CSharpSymbol](../../types/csharpsymbol/)
@@ -0,0 +1,34 @@
1
+ # createTypeParameterSymbol
2
+
3
+ ```ts
4
+ import { createTypeParameterSymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createTypeParameterSymbol(originalName: string | Namekey, options?: CreateTypeParameterSymbolOptions): CSharpSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------------ | ----------------------------------------- | - |
14
+ | originalName | string \| Namekey | |
15
+ | options | optional CreateTypeParameterSymbolOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
21
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
22
+ | isAbstract | optional boolean | |
23
+ | isExtern | optional boolean | |
24
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
25
+ | isOverride | optional boolean | |
26
+ | isReadOnly | optional boolean | |
27
+ | isSealed | optional boolean | |
28
+ | isStatic | optional boolean | |
29
+ | isVirtual | optional boolean | |
30
+ | scope | optional [CSharpMethodScope](../../types/csharpmethodscope/) \| [CSharpNamedTypeScope](../../types/csharpnamedtypescope/) | |
31
+
32
+ ## Returns
33
+
34
+ [CSharpSymbol](../../types/csharpsymbol/)
@@ -0,0 +1,43 @@
1
+ # createVariableSymbol
2
+
3
+ ```ts
4
+ import { createVariableSymbol } from "@alloy-js/csharp";
5
+
6
+
7
+ function createVariableSymbol(originalName: string | Namekey, options?: CSharpSymbolOptions): CSharpSymbol;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ------------ | ---------------------------- | - |
14
+ | originalName | string \| Namekey | |
15
+ | options | optional CSharpSymbolOptions | |
16
+
17
+ ## Options
18
+
19
+ | | | |
20
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | accessibility | optional [DeclaredAccessibility](../../types/declaredaccessibility/) | The accessibility of the symbol. |
22
+ | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
+ | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
+ | isAbstract | optional boolean | |
27
+ | isExtern | optional boolean | |
28
+ | isNullable | optional boolean | Whether the value held by this symbol could be null. |
29
+ | isOverride | optional boolean | |
30
+ | isReadOnly | optional boolean | |
31
+ | isSealed | optional boolean | |
32
+ | isStatic | optional boolean | |
33
+ | isVirtual | optional boolean | |
34
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
35
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
36
+ | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
37
+ | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
38
+ | transient | optional boolean | Whether this symbol is transient. |
39
+ | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
40
+
41
+ ## Returns
42
+
43
+ [CSharpSymbol](../../types/csharpsymbol/)
@@ -0,0 +1,18 @@
1
+ # getAccessModifier
2
+
3
+ ```ts
4
+ import { getAccessModifier } from "@alloy-js/csharp";
5
+
6
+
7
+ getAccessModifier: (data: AccessModifiers) => string
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ---- | --------------- | - |
14
+ | data | AccessModifiers | |
15
+
16
+ ## Returns
17
+
18
+ string
@@ -0,0 +1,18 @@
1
+ # getAsyncModifier
2
+
3
+ ```ts
4
+ import { getAsyncModifier } from "@alloy-js/csharp";
5
+
6
+
7
+ function getAsyncModifier(async?: boolean): string;
8
+ ```
9
+
10
+ ## Parameters
11
+
12
+ | | | |
13
+ | ----- | ---------------- | - |
14
+ | async | optional boolean | |
15
+
16
+ ## Returns
17
+
18
+ string
@@ -0,0 +1,33 @@
1
+ # csharp — functions
2
+
3
+ - [access](access.md) — import { access } from "@alloy-js/csharp";
4
+ - [accessibilityFromProps](accessibilityFromProps.md) — import { accessibilityFromProps } from "@alloy-js/csharp";
5
+ - [computeModifiersPrefix](computeModifiersPrefix.md) — Resolve the modifier prefix
6
+ - [createClassScope](createClassScope.md) — import { createClassScope } from "@alloy-js/csharp";
7
+ - [createCSharpNamePolicy](createCSharpNamePolicy.md) — import { createCSharpNamePolicy } from "@alloy-js/csharp";
8
+ - [createCSharpNamespaceScope](createCSharpNamespaceScope.md) — import { createCSharpNamespaceScope } from "@alloy-js/csharp";
9
+ - [createFieldSymbol](createFieldSymbol.md) — import { createFieldSymbol } from "@alloy-js/csharp";
10
+ - [createLibrary](createLibrary.md) — import { createLibrary } from "@alloy-js/csharp";
11
+ - [createMethodScope](createMethodScope.md) — import { createMethodScope } from "@alloy-js/csharp";
12
+ - [createMethodSymbol](createMethodSymbol.md) — import { createMethodSymbol } from "@alloy-js/csharp";
13
+ - [createNamedTypeScope](createNamedTypeScope.md) — import { createNamedTypeScope } from "@alloy-js/csharp";
14
+ - [createNamedTypeSymbol](createNamedTypeSymbol.md) — import { createNamedTypeSymbol } from "@alloy-js/csharp";
15
+ - [createNamespaceSymbol](createNamespaceSymbol.md) — import { createNamespaceSymbol } from "@alloy-js/csharp";
16
+ - [createParameterSymbol](createParameterSymbol.md) — Create a symbol for a parameter in the current method scope.
17
+ - [createPropertySymbol](createPropertySymbol.md) — import { createPropertySymbol } from "@alloy-js/csharp";
18
+ - [createTypeParameterSymbol](createTypeParameterSymbol.md) — import { createTypeParameterSymbol } from "@alloy-js/csharp";
19
+ - [createVariableSymbol](createVariableSymbol.md) — import { createVariableSymbol } from "@alloy-js/csharp";
20
+ - [getAccessModifier](getAccessModifier.md) — import { getAccessModifier } from "@alloy-js/csharp";
21
+ - [getAsyncModifier](getAsyncModifier.md) — import { getAsyncModifier } from "@alloy-js/csharp";
22
+ - [makeModifiers](makeModifiers.md) — import { makeModifiers } from "@alloy-js/csharp";
23
+ - [nonAccessibilityFromProps](nonAccessibilityFromProps.md) — import { nonAccessibilityFromProps } from "@alloy-js/csharp";
24
+ - [ref](ref.md) — import { ref } from "@alloy-js/csharp";
25
+ - [useCsharpFormatOptions](useCsharpFormatOptions.md) — import { useCsharpFormatOptions } from "@alloy-js/csharp";
26
+ - [useCSharpNamePolicy](useCSharpNamePolicy.md) — import { useCSharpNamePolicy } from "@alloy-js/csharp";
27
+ - [useCSharpScope](useCSharpScope.md) — import { useCSharpScope } from "@alloy-js/csharp";
28
+ - [useEnclosingNamespaceScope](useEnclosingNamespaceScope.md) — import { useEnclosingNamespaceScope } from "@alloy-js/csharp";
29
+ - [useLexicalScope](useLexicalScope.md) — import { useLexicalScope } from "@alloy-js/csharp";
30
+ - [useMethodScope](useMethodScope.md) — import { useMethodScope } from "@alloy-js/csharp";
31
+ - [useNamedTypeScope](useNamedTypeScope.md) — import { useNamedTypeScope } from "@alloy-js/csharp";
32
+ - [useNamespace](useNamespace.md) — import { useNamespace } from "@alloy-js/csharp";
33
+ - [useSourceFileScope](useSourceFileScope.md) — import { useSourceFileScope } from "@alloy-js/csharp";