@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.
- package/dist/dev/src/components/constructor/constructor.js +15 -6
- package/dist/dev/src/components/constructor/constructor.js.map +1 -1
- package/dist/dev/src/components/constructor/constructor.test.js +53 -4
- package/dist/dev/src/components/constructor/constructor.test.js.map +1 -1
- package/dist/dev/src/components/enum/declaration.js +14 -5
- package/dist/dev/src/components/enum/declaration.js.map +1 -1
- package/dist/dev/src/components/enum/declaration.test.js +40 -0
- package/dist/dev/src/components/enum/declaration.test.js.map +1 -1
- package/dist/dev/src/components/enum/member.js +13 -4
- package/dist/dev/src/components/enum/member.js.map +1 -1
- package/dist/dev/src/components/enum/member.test.js +42 -0
- package/dist/dev/src/components/enum/member.test.js.map +1 -1
- package/dist/src/components/constructor/constructor.d.ts +2 -0
- package/dist/src/components/constructor/constructor.d.ts.map +1 -1
- package/dist/src/components/constructor/constructor.js +6 -1
- package/dist/src/components/constructor/constructor.js.map +1 -1
- package/dist/src/components/constructor/constructor.test.js +33 -0
- package/dist/src/components/constructor/constructor.test.js.map +1 -1
- package/dist/src/components/enum/declaration.d.ts +2 -0
- package/dist/src/components/enum/declaration.d.ts.map +1 -1
- package/dist/src/components/enum/declaration.js +6 -1
- package/dist/src/components/enum/declaration.js.map +1 -1
- package/dist/src/components/enum/declaration.test.js +24 -0
- package/dist/src/components/enum/declaration.test.js.map +1 -1
- package/dist/src/components/enum/member.d.ts +4 -2
- package/dist/src/components/enum/member.d.ts.map +1 -1
- package/dist/src/components/enum/member.js +6 -1
- package/dist/src/components/enum/member.js.map +1 -1
- package/dist/src/components/enum/member.test.js +26 -0
- package/dist/src/components/enum/member.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/AttributeList.md +34 -0
- package/docs/api/components/ClassDeclaration.md +104 -0
- package/docs/api/components/Constructor.md +55 -0
- package/docs/api/components/CsprojFile.md +34 -0
- package/docs/api/components/Declaration.md +32 -0
- package/docs/api/components/DocC.md +27 -0
- package/docs/api/components/DocCode.md +27 -0
- package/docs/api/components/DocComment.md +27 -0
- package/docs/api/components/DocDescription.md +27 -0
- package/docs/api/components/DocExample.md +27 -0
- package/docs/api/components/DocException.md +27 -0
- package/docs/api/components/DocFromMarkdown.md +27 -0
- package/docs/api/components/DocInclude.md +26 -0
- package/docs/api/components/DocList.md +26 -0
- package/docs/api/components/DocPara.md +27 -0
- package/docs/api/components/DocParam.md +28 -0
- package/docs/api/components/DocParamRef.md +25 -0
- package/docs/api/components/DocPermission.md +27 -0
- package/docs/api/components/DocRemarks.md +27 -0
- package/docs/api/components/DocReturns.md +27 -0
- package/docs/api/components/DocSee.md +30 -0
- package/docs/api/components/DocSeeAlso.md +29 -0
- package/docs/api/components/DocSummary.md +27 -0
- package/docs/api/components/DocTypeParam.md +28 -0
- package/docs/api/components/DocTypeParamRef.md +25 -0
- package/docs/api/components/DocValue.md +27 -0
- package/docs/api/components/DocWhen.md +27 -0
- package/docs/api/components/ElseClause.md +29 -0
- package/docs/api/components/ElseIfClause.md +30 -0
- package/docs/api/components/EnumDeclaration.md +76 -0
- package/docs/api/components/EnumMember.md +31 -0
- package/docs/api/components/Field.md +67 -0
- package/docs/api/components/IfStatement.md +30 -0
- package/docs/api/components/InterfaceDeclaration.md +82 -0
- package/docs/api/components/InterfaceMethod.md +68 -0
- package/docs/api/components/InterfaceProperty.md +78 -0
- package/docs/api/components/InvocationExpression.md +49 -0
- package/docs/api/components/LexicalScope.md +65 -0
- package/docs/api/components/Method.md +92 -0
- package/docs/api/components/MethodScope.md +65 -0
- package/docs/api/components/Name.md +19 -0
- package/docs/api/components/Namespace.md +35 -0
- package/docs/api/components/Parameter.md +58 -0
- package/docs/api/components/Parameters_2.md +27 -0
- package/docs/api/components/Property.md +110 -0
- package/docs/api/components/RecordDeclaration.md +84 -0
- package/docs/api/components/Reference.md +25 -0
- package/docs/api/components/Region.md +28 -0
- package/docs/api/components/SourceFile.md +45 -0
- package/docs/api/components/StructDeclaration.md +94 -0
- package/docs/api/components/UsingNamespaceDirective.md +25 -0
- package/docs/api/components/Usings.md +40 -0
- package/docs/api/components/VarDeclaration.md +74 -0
- package/docs/api/components/index.md +55 -0
- package/docs/api/functions/access.md +35 -0
- package/docs/api/functions/accessibilityFromProps.md +18 -0
- package/docs/api/functions/computeModifiersPrefix.md +20 -0
- package/docs/api/functions/createCSharpNamePolicy.md +17 -0
- package/docs/api/functions/createCSharpNamespaceScope.md +18 -0
- package/docs/api/functions/createClassScope.md +27 -0
- package/docs/api/functions/createFieldSymbol.md +43 -0
- package/docs/api/functions/createLibrary.md +19 -0
- package/docs/api/functions/createMethodScope.md +26 -0
- package/docs/api/functions/createMethodSymbol.md +34 -0
- package/docs/api/functions/createNamedTypeScope.md +27 -0
- package/docs/api/functions/createNamedTypeSymbol.md +35 -0
- package/docs/api/functions/createNamespaceSymbol.md +43 -0
- package/docs/api/functions/createParameterSymbol.md +45 -0
- package/docs/api/functions/createPropertySymbol.md +43 -0
- package/docs/api/functions/createTypeParameterSymbol.md +34 -0
- package/docs/api/functions/createVariableSymbol.md +43 -0
- package/docs/api/functions/getAccessModifier.md +18 -0
- package/docs/api/functions/getAsyncModifier.md +18 -0
- package/docs/api/functions/index.md +33 -0
- package/docs/api/functions/makeModifiers.md +18 -0
- package/docs/api/functions/nonAccessibilityFromProps.md +18 -0
- package/docs/api/functions/ref.md +18 -0
- package/docs/api/functions/useCSharpNamePolicy.md +17 -0
- package/docs/api/functions/useCSharpScope.md +17 -0
- package/docs/api/functions/useCsharpFormatOptions.md +18 -0
- package/docs/api/functions/useEnclosingNamespaceScope.md +17 -0
- package/docs/api/functions/useLexicalScope.md +17 -0
- package/docs/api/functions/useMethodScope.md +17 -0
- package/docs/api/functions/useNamedTypeScope.md +17 -0
- package/docs/api/functions/useNamespace.md +17 -0
- package/docs/api/functions/useSourceFileScope.md +17 -0
- package/docs/api/index.md +6 -0
- package/docs/api/types/AccessExpressionBuilder.md +11 -0
- package/docs/api/types/AccessExpressionPartProps.md +17 -0
- package/docs/api/types/AccessModifiers.md +13 -0
- package/docs/api/types/AttributeProps.md +8 -0
- package/docs/api/types/AttributesProp.md +5 -0
- package/docs/api/types/CSharpClassScope.md +9 -0
- package/docs/api/types/CSharpElements.md +5 -0
- package/docs/api/types/CSharpFormatOptions.md +5 -0
- package/docs/api/types/CSharpLexicalScope.md +10 -0
- package/docs/api/types/CSharpMethodScope.md +12 -0
- package/docs/api/types/CSharpNamedTypeScope.md +16 -0
- package/docs/api/types/CSharpNamespaceScope.md +10 -0
- package/docs/api/types/CSharpProjectSdk.md +5 -0
- package/docs/api/types/CSharpScope.md +12 -0
- package/docs/api/types/CSharpSourceFileScope.md +13 -0
- package/docs/api/types/CSharpSymbol.md +30 -0
- package/docs/api/types/CSharpSymbolKinds.md +5 -0
- package/docs/api/types/CSharpSymbolOptions.md +17 -0
- package/docs/api/types/ClassDescriptor.md +9 -0
- package/docs/api/types/ClassModifiers.md +10 -0
- package/docs/api/types/CreateMethodSymbolOptions.md +9 -0
- package/docs/api/types/CreateTypeParameterSymbolOptions.md +9 -0
- package/docs/api/types/DeclarationModifiers.md +8 -0
- package/docs/api/types/DeclaredAccessibility.md +5 -0
- package/docs/api/types/Descriptor.md +5 -0
- package/docs/api/types/DocCommentTagProps.md +7 -0
- package/docs/api/types/EnumDescriptor.md +9 -0
- package/docs/api/types/FieldDescriptor.md +9 -0
- package/docs/api/types/FieldModifiers.md +12 -0
- package/docs/api/types/GenericDescriptor.md +7 -0
- package/docs/api/types/InterfaceDescriptor.md +9 -0
- package/docs/api/types/InterfaceMethodModifiers.md +9 -0
- package/docs/api/types/InterfaceModifiers.md +7 -0
- package/docs/api/types/InterfacePropertyModifiers.md +9 -0
- package/docs/api/types/LexicalScopeProps.md +5 -0
- package/docs/api/types/LibraryFrom.md +7 -0
- package/docs/api/types/MemberDescriptor.md +16 -0
- package/docs/api/types/MethodDescriptor.md +10 -0
- package/docs/api/types/MethodKinds.md +5 -0
- package/docs/api/types/MethodModifiers.md +15 -0
- package/docs/api/types/MethodScopeProps.md +5 -0
- package/docs/api/types/MethodSymbol.md +13 -0
- package/docs/api/types/NamedTypeDescriptor.md +11 -0
- package/docs/api/types/NamedTypeSymbol.md +17 -0
- package/docs/api/types/NamedTypeSymbolKind.md +5 -0
- package/docs/api/types/NamedTypeTypeKind.md +5 -0
- package/docs/api/types/NamespaceDescriptor.md +8 -0
- package/docs/api/types/NamespaceSymbol.md +16 -0
- package/docs/api/types/NamespaceSymbolOptions.md +9 -0
- package/docs/api/types/NonAccessModifiers.md +13 -0
- package/docs/api/types/PropertyDescriptor_2.md +9 -0
- package/docs/api/types/PropertyModifiers.md +17 -0
- package/docs/api/types/RecordDescriptor.md +9 -0
- package/docs/api/types/RecordModifiers.md +7 -0
- package/docs/api/types/ResolveDescriptor.md +7 -0
- package/docs/api/types/StructDescriptor.md +9 -0
- package/docs/api/types/StructModifiers.md +10 -0
- package/docs/api/types/TypeParameterProps.md +11 -0
- package/docs/api/types/VarModifiers.md +8 -0
- package/docs/api/types/index.md +62 -0
- package/docs/api/variables/Attribute.md +21 -0
- package/docs/api/variables/index.md +3 -0
- package/package.json +5 -5
- package/src/components/constructor/constructor.test.tsx +27 -0
- package/src/components/constructor/constructor.tsx +5 -0
- package/src/components/enum/declaration.test.tsx +20 -0
- package/src/components/enum/declaration.tsx +4 -0
- package/src/components/enum/member.test.tsx +21 -0
- package/src/components/enum/member.tsx +5 -0
- 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,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,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,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,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,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,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
|
+
# CreateTypeParameterSymbolOptions
|
|
2
|
+
|
|
3
|
+
## Members
|
|
4
|
+
|
|
5
|
+
Extends [CSharpSymbolOptions](../csharpsymboloptions/)
|
|
6
|
+
|
|
7
|
+
| | | |
|
|
8
|
+
| ----- | ------------------------------------------------------------------------------------------------------- | - |
|
|
9
|
+
| scope | optional [CSharpMethodScope](../csharpmethodscope/) \| [CSharpNamedTypeScope](../csharpnamedtypescope/) | |
|
|
@@ -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
|
+
```
|