@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.
- package/dist/dev/src/components/constructor/constructor.js +78 -9
- package/dist/dev/src/components/constructor/constructor.js.map +1 -1
- package/dist/dev/src/components/constructor/constructor.test.js +170 -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 +34 -0
- package/dist/src/components/constructor/constructor.d.ts.map +1 -1
- package/dist/src/components/constructor/constructor.js +41 -4
- package/dist/src/components/constructor/constructor.js.map +1 -1
- package/dist/src/components/constructor/constructor.test.js +114 -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 +61 -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 +91 -0
- package/src/components/constructor/constructor.tsx +86 -1
- 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 +149 -5
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { MethodScope } from "#components/method-scope.jsx";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Block,
|
|
4
|
+
For,
|
|
5
|
+
Indent,
|
|
6
|
+
MemberDeclaration,
|
|
7
|
+
MemberName,
|
|
8
|
+
Refkey,
|
|
9
|
+
} from "@alloy-js/core";
|
|
3
10
|
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
4
11
|
import {
|
|
5
12
|
AccessModifiers,
|
|
@@ -8,6 +15,7 @@ import {
|
|
|
8
15
|
} from "../../modifiers.js";
|
|
9
16
|
import { useNamedTypeScope } from "../../scopes/contexts.js";
|
|
10
17
|
import { MethodSymbol } from "../../symbols/method.js";
|
|
18
|
+
import { DocWhen } from "../doc/comment.jsx";
|
|
11
19
|
import { ParameterProps, Parameters } from "../parameters/parameters.jsx";
|
|
12
20
|
|
|
13
21
|
/**
|
|
@@ -17,14 +25,57 @@ export interface ConstructorProps extends AccessModifiers {
|
|
|
17
25
|
/** Constructor parameters */
|
|
18
26
|
parameters?: ParameterProps[];
|
|
19
27
|
|
|
28
|
+
/** Doc comment */
|
|
29
|
+
doc?: Children;
|
|
30
|
+
|
|
20
31
|
/** Refkey */
|
|
21
32
|
refkey?: Refkey;
|
|
22
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Arguments to pass to the base class constructor.
|
|
36
|
+
* Renders `: base(args)` between parameter list and body.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <Constructor public baseConstructor={["name", "42"]}>
|
|
41
|
+
* ```
|
|
42
|
+
* This will produce:
|
|
43
|
+
* ```csharp
|
|
44
|
+
* public MyClass(...) : base(name, 42)
|
|
45
|
+
* {
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
baseConstructor?: Children[];
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Arguments to pass to another constructor in the same class.
|
|
53
|
+
* Renders `: this(args)` between parameter list and body.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```tsx
|
|
57
|
+
* <Constructor public thisConstructor={["0", "0"]}>
|
|
58
|
+
* ```
|
|
59
|
+
* This will produce:
|
|
60
|
+
* ```csharp
|
|
61
|
+
* public MyClass() : this(0, 0)
|
|
62
|
+
* {
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
thisConstructor?: Children[];
|
|
67
|
+
|
|
23
68
|
/** Constructor body */
|
|
24
69
|
children?: Children;
|
|
25
70
|
}
|
|
26
71
|
|
|
27
72
|
export function Constructor(props: ConstructorProps) {
|
|
73
|
+
if (props.baseConstructor && props.thisConstructor) {
|
|
74
|
+
throw new Error(
|
|
75
|
+
"Cannot use both 'baseConstructor' and 'thisConstructor' on the same constructor",
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
28
79
|
const scope = useNamedTypeScope();
|
|
29
80
|
|
|
30
81
|
const name = scope.ownerSymbol.name;
|
|
@@ -35,14 +86,48 @@ export function Constructor(props: ConstructorProps) {
|
|
|
35
86
|
|
|
36
87
|
const modifiers = computeModifiersPrefix([getAccessModifier(props)]);
|
|
37
88
|
|
|
89
|
+
const initializer =
|
|
90
|
+
props.baseConstructor ?
|
|
91
|
+
<ConstructorInitializer keyword="base" args={props.baseConstructor} />
|
|
92
|
+
: props.thisConstructor ?
|
|
93
|
+
<ConstructorInitializer keyword="this" args={props.thisConstructor} />
|
|
94
|
+
: null;
|
|
95
|
+
|
|
38
96
|
return (
|
|
39
97
|
<MemberDeclaration symbol={ctorSymbol}>
|
|
40
98
|
<MethodScope>
|
|
99
|
+
<DocWhen doc={props.doc} />
|
|
41
100
|
{modifiers}
|
|
42
101
|
<MemberName />
|
|
43
102
|
<Parameters parameters={props.parameters} />
|
|
103
|
+
{initializer}
|
|
44
104
|
<Block newline>{props.children}</Block>
|
|
45
105
|
</MethodScope>
|
|
46
106
|
</MemberDeclaration>
|
|
47
107
|
);
|
|
48
108
|
}
|
|
109
|
+
|
|
110
|
+
interface ConstructorInitializerProps {
|
|
111
|
+
keyword: "base" | "this";
|
|
112
|
+
args: Children[];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function ConstructorInitializer(props: ConstructorInitializerProps) {
|
|
116
|
+
return (
|
|
117
|
+
<group>
|
|
118
|
+
{" : "}
|
|
119
|
+
{props.keyword}(
|
|
120
|
+
<Indent nobreak>
|
|
121
|
+
<For each={props.args} joiner={", "}>
|
|
122
|
+
{(arg) => (
|
|
123
|
+
<>
|
|
124
|
+
<softline />
|
|
125
|
+
{arg}
|
|
126
|
+
</>
|
|
127
|
+
)}
|
|
128
|
+
</For>
|
|
129
|
+
</Indent>
|
|
130
|
+
<softline />)
|
|
131
|
+
</group>
|
|
132
|
+
);
|
|
133
|
+
}
|
|
@@ -45,3 +45,23 @@ it("takes a namekey", () => {
|
|
|
45
45
|
enum MyEnum;
|
|
46
46
|
`);
|
|
47
47
|
});
|
|
48
|
+
|
|
49
|
+
it("renders doc comment", () => {
|
|
50
|
+
const res = toSourceText(
|
|
51
|
+
<EnumDeclaration public name="TestEnum" doc="This is a test enum">
|
|
52
|
+
<EnumMember name="One" />,<hbr />
|
|
53
|
+
<EnumMember name="Two" />
|
|
54
|
+
</EnumDeclaration>,
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
expect(res).toBe(d`
|
|
58
|
+
namespace TestCode;
|
|
59
|
+
|
|
60
|
+
/// This is a test enum
|
|
61
|
+
public enum TestEnum
|
|
62
|
+
{
|
|
63
|
+
One,
|
|
64
|
+
Two
|
|
65
|
+
}
|
|
66
|
+
`);
|
|
67
|
+
});
|
|
@@ -14,11 +14,14 @@ import {
|
|
|
14
14
|
import { useCSharpNamePolicy } from "../../name-policy.js";
|
|
15
15
|
import { createNamedTypeScope } from "../../scopes/factories.js";
|
|
16
16
|
import { createNamedTypeSymbol } from "../../symbols/factories.js";
|
|
17
|
+
import { DocWhen } from "../doc/comment.jsx";
|
|
17
18
|
import { Name } from "../Name.jsx";
|
|
18
19
|
|
|
19
20
|
// properties for creating an enum
|
|
20
21
|
export interface EnumDeclarationProps extends AccessModifiers {
|
|
21
22
|
name: string | Namekey;
|
|
23
|
+
/** Doc comment */
|
|
24
|
+
doc?: Children;
|
|
22
25
|
refkey?: Refkey | Refkey[];
|
|
23
26
|
children?: Children;
|
|
24
27
|
}
|
|
@@ -54,6 +57,7 @@ export function EnumDeclaration(props: EnumDeclarationProps) {
|
|
|
54
57
|
|
|
55
58
|
return (
|
|
56
59
|
<Declaration symbol={symbol}>
|
|
60
|
+
<DocWhen doc={props.doc} />
|
|
57
61
|
{modifiers}enum <Name />
|
|
58
62
|
{!props.children && ";"}
|
|
59
63
|
{props.children && (
|
|
@@ -43,3 +43,24 @@ it("takes a namekey", () => {
|
|
|
43
43
|
Foo.MyMember;
|
|
44
44
|
`);
|
|
45
45
|
});
|
|
46
|
+
|
|
47
|
+
it("renders doc comment", () => {
|
|
48
|
+
const res = toSourceText(
|
|
49
|
+
<EnumDeclaration public name="TestEnum">
|
|
50
|
+
<EnumMember name="One" doc="First value" />,<hbr />
|
|
51
|
+
<EnumMember name="Two" doc="Second value" />
|
|
52
|
+
</EnumDeclaration>,
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
expect(res).toBe(d`
|
|
56
|
+
namespace TestCode;
|
|
57
|
+
|
|
58
|
+
public enum TestEnum
|
|
59
|
+
{
|
|
60
|
+
/// First value
|
|
61
|
+
One,
|
|
62
|
+
/// Second value
|
|
63
|
+
Two
|
|
64
|
+
}
|
|
65
|
+
`);
|
|
66
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Children,
|
|
2
3
|
createSymbol,
|
|
3
4
|
MemberDeclaration,
|
|
4
5
|
MemberName,
|
|
@@ -8,10 +9,13 @@ import {
|
|
|
8
9
|
import { useCSharpNamePolicy } from "../../name-policy.js";
|
|
9
10
|
import { useNamedTypeScope } from "../../scopes/contexts.js";
|
|
10
11
|
import { CSharpSymbol } from "../../symbols/csharp.js";
|
|
12
|
+
import { DocWhen } from "../doc/comment.jsx";
|
|
11
13
|
|
|
12
14
|
// properties for creating a C# enum member
|
|
13
15
|
export interface EnumMemberProps {
|
|
14
16
|
name: string | Namekey;
|
|
17
|
+
/** Doc comment */
|
|
18
|
+
doc?: Children;
|
|
15
19
|
refkey?: Refkey;
|
|
16
20
|
}
|
|
17
21
|
|
|
@@ -41,6 +45,7 @@ export function EnumMember(props: EnumMemberProps) {
|
|
|
41
45
|
|
|
42
46
|
return (
|
|
43
47
|
<MemberDeclaration symbol={thisEnumValueSymbol}>
|
|
48
|
+
<DocWhen doc={props.doc} />
|
|
44
49
|
<MemberName />
|
|
45
50
|
</MemberDeclaration>
|
|
46
51
|
);
|
package/temp/api.json
CHANGED
|
@@ -2305,6 +2305,38 @@
|
|
|
2305
2305
|
"name": "ConstructorProps",
|
|
2306
2306
|
"preserveMemberOrder": false,
|
|
2307
2307
|
"members": [
|
|
2308
|
+
{
|
|
2309
|
+
"kind": "PropertySignature",
|
|
2310
|
+
"canonicalReference": "@alloy-js/csharp!ConstructorProps#baseConstructor:member",
|
|
2311
|
+
"docComment": "/**\n * Arguments to pass to the base class constructor.\n * Renders `: base(args)` between parameter list and body.\n *\n * @example\n * ```tsx\n * <Constructor public baseConstructor={[\"name\", \"42\"]}>\n * ```\n *\n * This will produce:\n * ```csharp\n * public MyClass(...) : base(name, 42)\n * {\n * }\n * ```\n *\n */\n",
|
|
2312
|
+
"excerptTokens": [
|
|
2313
|
+
{
|
|
2314
|
+
"kind": "Content",
|
|
2315
|
+
"text": "baseConstructor?: "
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"kind": "Reference",
|
|
2319
|
+
"text": "Children",
|
|
2320
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"kind": "Content",
|
|
2324
|
+
"text": "[]"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
"kind": "Content",
|
|
2328
|
+
"text": ";"
|
|
2329
|
+
}
|
|
2330
|
+
],
|
|
2331
|
+
"isReadonly": false,
|
|
2332
|
+
"isOptional": true,
|
|
2333
|
+
"releaseTag": "Public",
|
|
2334
|
+
"name": "baseConstructor",
|
|
2335
|
+
"propertyTypeTokenRange": {
|
|
2336
|
+
"startIndex": 1,
|
|
2337
|
+
"endIndex": 3
|
|
2338
|
+
}
|
|
2339
|
+
},
|
|
2308
2340
|
{
|
|
2309
2341
|
"kind": "PropertySignature",
|
|
2310
2342
|
"canonicalReference": "@alloy-js/csharp!ConstructorProps#children:member",
|
|
@@ -2333,6 +2365,34 @@
|
|
|
2333
2365
|
"endIndex": 2
|
|
2334
2366
|
}
|
|
2335
2367
|
},
|
|
2368
|
+
{
|
|
2369
|
+
"kind": "PropertySignature",
|
|
2370
|
+
"canonicalReference": "@alloy-js/csharp!ConstructorProps#doc:member",
|
|
2371
|
+
"docComment": "/**\n * Doc comment\n */\n",
|
|
2372
|
+
"excerptTokens": [
|
|
2373
|
+
{
|
|
2374
|
+
"kind": "Content",
|
|
2375
|
+
"text": "doc?: "
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"kind": "Reference",
|
|
2379
|
+
"text": "Children",
|
|
2380
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"kind": "Content",
|
|
2384
|
+
"text": ";"
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
2387
|
+
"isReadonly": false,
|
|
2388
|
+
"isOptional": true,
|
|
2389
|
+
"releaseTag": "Public",
|
|
2390
|
+
"name": "doc",
|
|
2391
|
+
"propertyTypeTokenRange": {
|
|
2392
|
+
"startIndex": 1,
|
|
2393
|
+
"endIndex": 2
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2336
2396
|
{
|
|
2337
2397
|
"kind": "PropertySignature",
|
|
2338
2398
|
"canonicalReference": "@alloy-js/csharp!ConstructorProps#parameters:member",
|
|
@@ -2392,6 +2452,38 @@
|
|
|
2392
2452
|
"startIndex": 1,
|
|
2393
2453
|
"endIndex": 2
|
|
2394
2454
|
}
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"kind": "PropertySignature",
|
|
2458
|
+
"canonicalReference": "@alloy-js/csharp!ConstructorProps#thisConstructor:member",
|
|
2459
|
+
"docComment": "/**\n * Arguments to pass to another constructor in the same class.\n * Renders `: this(args)` between parameter list and body.\n *\n * @example\n * ```tsx\n * <Constructor public thisConstructor={[\"0\", \"0\"]}>\n * ```\n *\n * This will produce:\n * ```csharp\n * public MyClass() : this(0, 0)\n * {\n * }\n * ```\n *\n */\n",
|
|
2460
|
+
"excerptTokens": [
|
|
2461
|
+
{
|
|
2462
|
+
"kind": "Content",
|
|
2463
|
+
"text": "thisConstructor?: "
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"kind": "Reference",
|
|
2467
|
+
"text": "Children",
|
|
2468
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
"kind": "Content",
|
|
2472
|
+
"text": "[]"
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"kind": "Content",
|
|
2476
|
+
"text": ";"
|
|
2477
|
+
}
|
|
2478
|
+
],
|
|
2479
|
+
"isReadonly": false,
|
|
2480
|
+
"isOptional": true,
|
|
2481
|
+
"releaseTag": "Public",
|
|
2482
|
+
"name": "thisConstructor",
|
|
2483
|
+
"propertyTypeTokenRange": {
|
|
2484
|
+
"startIndex": 1,
|
|
2485
|
+
"endIndex": 3
|
|
2486
|
+
}
|
|
2395
2487
|
}
|
|
2396
2488
|
],
|
|
2397
2489
|
"extendsTokenRanges": [
|
|
@@ -8184,6 +8276,34 @@
|
|
|
8184
8276
|
"endIndex": 2
|
|
8185
8277
|
}
|
|
8186
8278
|
},
|
|
8279
|
+
{
|
|
8280
|
+
"kind": "PropertySignature",
|
|
8281
|
+
"canonicalReference": "@alloy-js/csharp!EnumDeclarationProps#doc:member",
|
|
8282
|
+
"docComment": "/**\n * Doc comment\n */\n",
|
|
8283
|
+
"excerptTokens": [
|
|
8284
|
+
{
|
|
8285
|
+
"kind": "Content",
|
|
8286
|
+
"text": "doc?: "
|
|
8287
|
+
},
|
|
8288
|
+
{
|
|
8289
|
+
"kind": "Reference",
|
|
8290
|
+
"text": "Children",
|
|
8291
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
8292
|
+
},
|
|
8293
|
+
{
|
|
8294
|
+
"kind": "Content",
|
|
8295
|
+
"text": ";"
|
|
8296
|
+
}
|
|
8297
|
+
],
|
|
8298
|
+
"isReadonly": false,
|
|
8299
|
+
"isOptional": true,
|
|
8300
|
+
"releaseTag": "Public",
|
|
8301
|
+
"name": "doc",
|
|
8302
|
+
"propertyTypeTokenRange": {
|
|
8303
|
+
"startIndex": 1,
|
|
8304
|
+
"endIndex": 2
|
|
8305
|
+
}
|
|
8306
|
+
},
|
|
8187
8307
|
{
|
|
8188
8308
|
"kind": "PropertySignature",
|
|
8189
8309
|
"canonicalReference": "@alloy-js/csharp!EnumDeclarationProps#name:member",
|
|
@@ -8359,10 +8479,6 @@
|
|
|
8359
8479
|
"kind": "Content",
|
|
8360
8480
|
"text": "): "
|
|
8361
8481
|
},
|
|
8362
|
-
{
|
|
8363
|
-
"kind": "Content",
|
|
8364
|
-
"text": "import(\"@alloy-js/core\")."
|
|
8365
|
-
},
|
|
8366
8482
|
{
|
|
8367
8483
|
"kind": "Reference",
|
|
8368
8484
|
"text": "Children",
|
|
@@ -8376,7 +8492,7 @@
|
|
|
8376
8492
|
"fileUrlPath": "src/components/enum/member.tsx",
|
|
8377
8493
|
"returnTypeTokenRange": {
|
|
8378
8494
|
"startIndex": 3,
|
|
8379
|
-
"endIndex":
|
|
8495
|
+
"endIndex": 4
|
|
8380
8496
|
},
|
|
8381
8497
|
"releaseTag": "Public",
|
|
8382
8498
|
"overloadIndex": 1,
|
|
@@ -8407,6 +8523,34 @@
|
|
|
8407
8523
|
"name": "EnumMemberProps",
|
|
8408
8524
|
"preserveMemberOrder": false,
|
|
8409
8525
|
"members": [
|
|
8526
|
+
{
|
|
8527
|
+
"kind": "PropertySignature",
|
|
8528
|
+
"canonicalReference": "@alloy-js/csharp!EnumMemberProps#doc:member",
|
|
8529
|
+
"docComment": "/**\n * Doc comment\n */\n",
|
|
8530
|
+
"excerptTokens": [
|
|
8531
|
+
{
|
|
8532
|
+
"kind": "Content",
|
|
8533
|
+
"text": "doc?: "
|
|
8534
|
+
},
|
|
8535
|
+
{
|
|
8536
|
+
"kind": "Reference",
|
|
8537
|
+
"text": "Children",
|
|
8538
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
8539
|
+
},
|
|
8540
|
+
{
|
|
8541
|
+
"kind": "Content",
|
|
8542
|
+
"text": ";"
|
|
8543
|
+
}
|
|
8544
|
+
],
|
|
8545
|
+
"isReadonly": false,
|
|
8546
|
+
"isOptional": true,
|
|
8547
|
+
"releaseTag": "Public",
|
|
8548
|
+
"name": "doc",
|
|
8549
|
+
"propertyTypeTokenRange": {
|
|
8550
|
+
"startIndex": 1,
|
|
8551
|
+
"endIndex": 2
|
|
8552
|
+
}
|
|
8553
|
+
},
|
|
8410
8554
|
{
|
|
8411
8555
|
"kind": "PropertySignature",
|
|
8412
8556
|
"canonicalReference": "@alloy-js/csharp!EnumMemberProps#name:member",
|