@alloy-js/csharp 0.21.0-dev.1 → 0.21.0-dev.3
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/src/components/enum/declaration.d.ts +2 -2
- package/dist/src/components/enum/declaration.d.ts.map +1 -1
- package/dist/src/components/enum/declaration.js +3 -3
- package/dist/src/components/enum/declaration.js.map +1 -1
- package/dist/src/components/enum/declaration.ref.test.js +1 -1
- package/dist/src/components/enum/declaration.test.js +15 -1
- package/dist/src/components/enum/declaration.test.js.map +1 -1
- package/dist/src/components/enum/member.d.ts +2 -2
- package/dist/src/components/enum/member.d.ts.map +1 -1
- package/dist/src/components/enum/member.js +3 -3
- package/dist/src/components/enum/member.js.map +1 -1
- package/dist/src/components/enum/member.test.js +24 -1
- package/dist/src/components/enum/member.test.js.map +1 -1
- package/dist/src/components/field/field.d.ts +2 -2
- package/dist/src/components/field/field.d.ts.map +1 -1
- package/dist/src/components/field/field.js.map +1 -1
- package/dist/src/components/field/field.test.js +19 -1
- package/dist/src/components/field/field.test.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -2
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/interface/declaration.d.ts +1 -1
- package/dist/src/components/interface/declaration.d.ts.map +1 -1
- package/dist/src/components/interface/declaration.js +3 -3
- package/dist/src/components/interface/declaration.js.map +1 -1
- package/dist/src/components/interface/declaration.test.js +14 -1
- package/dist/src/components/interface/declaration.test.js.map +1 -1
- package/dist/src/components/interface/method.d.ts +2 -2
- package/dist/src/components/interface/method.d.ts.map +1 -1
- package/dist/src/components/interface/method.js.map +1 -1
- package/dist/src/components/interface/method.test.js +17 -1
- package/dist/src/components/interface/method.test.js.map +1 -1
- package/dist/src/components/interface/property.d.ts +2 -2
- package/dist/src/components/interface/property.d.ts.map +1 -1
- package/dist/src/components/interface/property.js.map +1 -1
- package/dist/src/components/interface/property.test.js +19 -0
- package/dist/src/components/interface/property.test.js.map +1 -1
- package/dist/src/components/namespace/namespace-name.d.ts +10 -0
- package/dist/src/components/namespace/namespace-name.d.ts.map +1 -0
- package/dist/src/components/namespace/namespace-name.js +20 -0
- package/dist/src/components/namespace/namespace-name.js.map +1 -0
- package/dist/src/components/{namespace.d.ts → namespace/namespace.d.ts} +3 -1
- package/dist/src/components/namespace/namespace.d.ts.map +1 -0
- package/dist/src/components/{namespace.js → namespace/namespace.js} +12 -13
- package/dist/src/components/namespace/namespace.js.map +1 -0
- package/dist/src/components/namespace/namespace.test.d.ts.map +1 -0
- package/dist/src/components/namespace/namespace.test.js +207 -0
- package/dist/src/components/namespace/namespace.test.js.map +1 -0
- package/dist/src/components/namespace.ref.test.js +42 -10
- package/dist/src/components/namespace.ref.test.js.map +1 -1
- package/dist/src/components/record/declaration.d.ts +1 -1
- package/dist/src/components/record/declaration.d.ts.map +1 -1
- package/dist/src/components/record/declaration.js +3 -4
- package/dist/src/components/record/declaration.js.map +1 -1
- package/dist/src/components/record/declaration.test.js +14 -1
- package/dist/src/components/record/declaration.test.js.map +1 -1
- package/dist/src/components/source-file/source-file.d.ts.map +1 -1
- package/dist/src/components/source-file/source-file.js +4 -2
- package/dist/src/components/source-file/source-file.js.map +1 -1
- package/dist/src/components/source-file/source-file.test.js +1 -1
- package/dist/src/components/source-file/using.test.js +1 -1
- package/dist/src/components/struct/declaration.d.ts +1 -1
- package/dist/src/components/struct/declaration.d.ts.map +1 -1
- package/dist/src/components/struct/declaration.js +3 -3
- package/dist/src/components/struct/declaration.js.map +1 -1
- package/dist/src/components/struct/declaration.test.js +14 -1
- package/dist/src/components/struct/declaration.test.js.map +1 -1
- package/dist/src/components/type-parameters/type-parameter.d.ts +2 -2
- package/dist/src/components/type-parameters/type-parameter.d.ts.map +1 -1
- package/dist/src/components/type-parameters/type-parameter.js.map +1 -1
- package/dist/src/components/type-parameters/type-parameters.test.js +14 -0
- package/dist/src/components/type-parameters/type-parameters.test.js.map +1 -1
- package/dist/src/components/var/declaration.d.ts +2 -2
- package/dist/src/components/var/declaration.d.ts.map +1 -1
- package/dist/src/components/var/declaration.js.map +1 -1
- package/dist/src/components/var/declaration.test.js +22 -1
- package/dist/src/components/var/declaration.test.js.map +1 -1
- package/dist/src/name-policy.d.ts +1 -1
- package/dist/src/name-policy.d.ts.map +1 -1
- package/dist/src/name-policy.js +1 -0
- package/dist/src/name-policy.js.map +1 -1
- package/dist/src/symbols/factories.d.ts +1 -1
- package/dist/src/symbols/factories.d.ts.map +1 -1
- package/dist/src/symbols/factories.js +27 -7
- package/dist/src/symbols/factories.js.map +1 -1
- package/dist/src/symbols/namespace.d.ts +2 -2
- package/dist/src/symbols/namespace.d.ts.map +1 -1
- package/dist/src/symbols/namespace.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/enum/declaration.ref.test.tsx +1 -1
- package/src/components/enum/declaration.test.tsx +14 -1
- package/src/components/enum/declaration.tsx +4 -3
- package/src/components/enum/member.test.tsx +22 -1
- package/src/components/enum/member.tsx +4 -4
- package/src/components/field/field.test.tsx +14 -1
- package/src/components/field/field.tsx +2 -2
- package/src/components/index.ts +1 -1
- package/src/components/interface/declaration.test.tsx +11 -1
- package/src/components/interface/declaration.tsx +3 -4
- package/src/components/interface/method.test.tsx +14 -1
- package/src/components/interface/method.tsx +2 -1
- package/src/components/interface/property.test.tsx +13 -0
- package/src/components/interface/property.tsx +2 -1
- package/src/components/namespace/namespace-name.tsx +31 -0
- package/src/components/namespace/namespace.test.tsx +145 -0
- package/src/components/{namespace.tsx → namespace/namespace.tsx} +12 -15
- package/src/components/namespace.ref.test.tsx +34 -9
- package/src/components/record/declaration.test.tsx +11 -1
- package/src/components/record/declaration.tsx +3 -4
- package/src/components/source-file/source-file.test.tsx +1 -1
- package/src/components/source-file/source-file.tsx +2 -2
- package/src/components/source-file/using.test.tsx +1 -1
- package/src/components/struct/declaration.test.tsx +11 -1
- package/src/components/struct/declaration.tsx +3 -4
- package/src/components/type-parameters/type-parameter.tsx +2 -1
- package/src/components/type-parameters/type-parameters.test.tsx +9 -0
- package/src/components/var/declaration.test.tsx +16 -1
- package/src/components/var/declaration.tsx +2 -1
- package/src/name-policy.ts +3 -1
- package/src/symbols/factories.ts +47 -10
- package/src/symbols/namespace.ts +2 -2
- package/temp/api.json +184 -35
- package/dist/src/components/namespace.d.ts.map +0 -1
- package/dist/src/components/namespace.js.map +0 -1
- package/dist/src/components/namespace.test.d.ts.map +0 -1
- package/dist/src/components/namespace.test.js +0 -79
- package/dist/src/components/namespace.test.js.map +0 -1
- package/src/components/namespace.test.tsx +0 -52
- /package/dist/src/components/{namespace.test.d.ts → namespace/namespace.test.d.ts} +0 -0
package/temp/api.json
CHANGED
|
@@ -2060,7 +2060,34 @@
|
|
|
2060
2060
|
},
|
|
2061
2061
|
{
|
|
2062
2062
|
"kind": "Content",
|
|
2063
|
-
"text": "string"
|
|
2063
|
+
"text": "string | "
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"kind": "Reference",
|
|
2067
|
+
"text": "Namekey",
|
|
2068
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"kind": "Content",
|
|
2072
|
+
"text": " | (string | "
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"kind": "Reference",
|
|
2076
|
+
"text": "Namekey",
|
|
2077
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"kind": "Content",
|
|
2081
|
+
"text": ")[]"
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
"kind": "Content",
|
|
2085
|
+
"text": ", options?: "
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"kind": "Reference",
|
|
2089
|
+
"text": "CSharpSymbolOptions",
|
|
2090
|
+
"canonicalReference": "@alloy-js/csharp!CSharpSymbolOptions:interface"
|
|
2064
2091
|
},
|
|
2065
2092
|
{
|
|
2066
2093
|
"kind": "Content",
|
|
@@ -2078,8 +2105,8 @@
|
|
|
2078
2105
|
],
|
|
2079
2106
|
"fileUrlPath": "src/symbols/factories.ts",
|
|
2080
2107
|
"returnTypeTokenRange": {
|
|
2081
|
-
"startIndex":
|
|
2082
|
-
"endIndex":
|
|
2108
|
+
"startIndex": 9,
|
|
2109
|
+
"endIndex": 10
|
|
2083
2110
|
},
|
|
2084
2111
|
"releaseTag": "Public",
|
|
2085
2112
|
"overloadIndex": 1,
|
|
@@ -2088,9 +2115,17 @@
|
|
|
2088
2115
|
"parameterName": "name",
|
|
2089
2116
|
"parameterTypeTokenRange": {
|
|
2090
2117
|
"startIndex": 1,
|
|
2091
|
-
"endIndex":
|
|
2118
|
+
"endIndex": 6
|
|
2092
2119
|
},
|
|
2093
2120
|
"isOptional": false
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"parameterName": "options",
|
|
2124
|
+
"parameterTypeTokenRange": {
|
|
2125
|
+
"startIndex": 7,
|
|
2126
|
+
"endIndex": 8
|
|
2127
|
+
},
|
|
2128
|
+
"isOptional": true
|
|
2094
2129
|
}
|
|
2095
2130
|
],
|
|
2096
2131
|
"name": "createNamespaceSymbol"
|
|
@@ -2510,7 +2545,7 @@
|
|
|
2510
2545
|
},
|
|
2511
2546
|
{
|
|
2512
2547
|
"kind": "Content",
|
|
2513
|
-
"text": "\"class\" | \"constant\" | \"variable\" | \"struct\" | \"enum\" | \"enum-member\" | \"function\" | \"interface\" | \"record\" | \"class-member-private\" | \"class-member-public\" | \"class-method\" | \"class-property\" | \"parameter\" | \"type-parameter\""
|
|
2548
|
+
"text": "\"class\" | \"constant\" | \"variable\" | \"struct\" | \"enum\" | \"enum-member\" | \"function\" | \"interface\" | \"record\" | \"class-member-private\" | \"class-member-public\" | \"class-method\" | \"class-property\" | \"parameter\" | \"type-parameter\" | \"namespace\""
|
|
2514
2549
|
},
|
|
2515
2550
|
{
|
|
2516
2551
|
"kind": "Content",
|
|
@@ -6596,7 +6631,12 @@
|
|
|
6596
6631
|
},
|
|
6597
6632
|
{
|
|
6598
6633
|
"kind": "Content",
|
|
6599
|
-
"text": "string"
|
|
6634
|
+
"text": "string | "
|
|
6635
|
+
},
|
|
6636
|
+
{
|
|
6637
|
+
"kind": "Reference",
|
|
6638
|
+
"text": "Namekey",
|
|
6639
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
6600
6640
|
},
|
|
6601
6641
|
{
|
|
6602
6642
|
"kind": "Content",
|
|
@@ -6609,7 +6649,7 @@
|
|
|
6609
6649
|
"name": "name",
|
|
6610
6650
|
"propertyTypeTokenRange": {
|
|
6611
6651
|
"startIndex": 1,
|
|
6612
|
-
"endIndex":
|
|
6652
|
+
"endIndex": 3
|
|
6613
6653
|
}
|
|
6614
6654
|
},
|
|
6615
6655
|
{
|
|
@@ -6738,7 +6778,12 @@
|
|
|
6738
6778
|
},
|
|
6739
6779
|
{
|
|
6740
6780
|
"kind": "Content",
|
|
6741
|
-
"text": "string"
|
|
6781
|
+
"text": "string | "
|
|
6782
|
+
},
|
|
6783
|
+
{
|
|
6784
|
+
"kind": "Reference",
|
|
6785
|
+
"text": "Namekey",
|
|
6786
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
6742
6787
|
},
|
|
6743
6788
|
{
|
|
6744
6789
|
"kind": "Content",
|
|
@@ -6751,7 +6796,7 @@
|
|
|
6751
6796
|
"name": "name",
|
|
6752
6797
|
"propertyTypeTokenRange": {
|
|
6753
6798
|
"startIndex": 1,
|
|
6754
|
-
"endIndex":
|
|
6799
|
+
"endIndex": 3
|
|
6755
6800
|
}
|
|
6756
6801
|
},
|
|
6757
6802
|
{
|
|
@@ -7030,7 +7075,12 @@
|
|
|
7030
7075
|
},
|
|
7031
7076
|
{
|
|
7032
7077
|
"kind": "Content",
|
|
7033
|
-
"text": "string"
|
|
7078
|
+
"text": "string | "
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
"kind": "Reference",
|
|
7082
|
+
"text": "Namekey",
|
|
7083
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
7034
7084
|
},
|
|
7035
7085
|
{
|
|
7036
7086
|
"kind": "Content",
|
|
@@ -7043,7 +7093,7 @@
|
|
|
7043
7093
|
"name": "name",
|
|
7044
7094
|
"propertyTypeTokenRange": {
|
|
7045
7095
|
"startIndex": 1,
|
|
7046
|
-
"endIndex":
|
|
7096
|
+
"endIndex": 3
|
|
7047
7097
|
}
|
|
7048
7098
|
},
|
|
7049
7099
|
{
|
|
@@ -7370,7 +7420,12 @@
|
|
|
7370
7420
|
},
|
|
7371
7421
|
{
|
|
7372
7422
|
"kind": "Content",
|
|
7373
|
-
"text": "string"
|
|
7423
|
+
"text": "string | "
|
|
7424
|
+
},
|
|
7425
|
+
{
|
|
7426
|
+
"kind": "Reference",
|
|
7427
|
+
"text": "core.Namekey",
|
|
7428
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
7374
7429
|
},
|
|
7375
7430
|
{
|
|
7376
7431
|
"kind": "Content",
|
|
@@ -7383,7 +7438,7 @@
|
|
|
7383
7438
|
"name": "name",
|
|
7384
7439
|
"propertyTypeTokenRange": {
|
|
7385
7440
|
"startIndex": 1,
|
|
7386
|
-
"endIndex":
|
|
7441
|
+
"endIndex": 3
|
|
7387
7442
|
}
|
|
7388
7443
|
},
|
|
7389
7444
|
{
|
|
@@ -7686,7 +7741,12 @@
|
|
|
7686
7741
|
},
|
|
7687
7742
|
{
|
|
7688
7743
|
"kind": "Content",
|
|
7689
|
-
"text": "string"
|
|
7744
|
+
"text": "string | "
|
|
7745
|
+
},
|
|
7746
|
+
{
|
|
7747
|
+
"kind": "Reference",
|
|
7748
|
+
"text": "Namekey",
|
|
7749
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
7690
7750
|
},
|
|
7691
7751
|
{
|
|
7692
7752
|
"kind": "Content",
|
|
@@ -7699,7 +7759,7 @@
|
|
|
7699
7759
|
"name": "name",
|
|
7700
7760
|
"propertyTypeTokenRange": {
|
|
7701
7761
|
"startIndex": 1,
|
|
7702
|
-
"endIndex":
|
|
7762
|
+
"endIndex": 3
|
|
7703
7763
|
}
|
|
7704
7764
|
},
|
|
7705
7765
|
{
|
|
@@ -8111,7 +8171,12 @@
|
|
|
8111
8171
|
},
|
|
8112
8172
|
{
|
|
8113
8173
|
"kind": "Content",
|
|
8114
|
-
"text": "string"
|
|
8174
|
+
"text": "string | "
|
|
8175
|
+
},
|
|
8176
|
+
{
|
|
8177
|
+
"kind": "Reference",
|
|
8178
|
+
"text": "Namekey",
|
|
8179
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
8115
8180
|
},
|
|
8116
8181
|
{
|
|
8117
8182
|
"kind": "Content",
|
|
@@ -8124,7 +8189,7 @@
|
|
|
8124
8189
|
"name": "name",
|
|
8125
8190
|
"propertyTypeTokenRange": {
|
|
8126
8191
|
"startIndex": 1,
|
|
8127
|
-
"endIndex":
|
|
8192
|
+
"endIndex": 3
|
|
8128
8193
|
}
|
|
8129
8194
|
},
|
|
8130
8195
|
{
|
|
@@ -10098,7 +10163,7 @@
|
|
|
10098
10163
|
"text": ";"
|
|
10099
10164
|
}
|
|
10100
10165
|
],
|
|
10101
|
-
"fileUrlPath": "src/components/namespace.tsx",
|
|
10166
|
+
"fileUrlPath": "src/components/namespace/namespace.tsx",
|
|
10102
10167
|
"returnTypeTokenRange": {
|
|
10103
10168
|
"startIndex": 3,
|
|
10104
10169
|
"endIndex": 4
|
|
@@ -10127,7 +10192,7 @@
|
|
|
10127
10192
|
"text": "export interface NamespaceProps "
|
|
10128
10193
|
}
|
|
10129
10194
|
],
|
|
10130
|
-
"fileUrlPath": "src/components/namespace.tsx",
|
|
10195
|
+
"fileUrlPath": "src/components/namespace/namespace.tsx",
|
|
10131
10196
|
"releaseTag": "Public",
|
|
10132
10197
|
"name": "NamespaceProps",
|
|
10133
10198
|
"preserveMemberOrder": false,
|
|
@@ -10171,7 +10236,25 @@
|
|
|
10171
10236
|
},
|
|
10172
10237
|
{
|
|
10173
10238
|
"kind": "Content",
|
|
10174
|
-
"text": "string"
|
|
10239
|
+
"text": "string | "
|
|
10240
|
+
},
|
|
10241
|
+
{
|
|
10242
|
+
"kind": "Reference",
|
|
10243
|
+
"text": "Namekey",
|
|
10244
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
10245
|
+
},
|
|
10246
|
+
{
|
|
10247
|
+
"kind": "Content",
|
|
10248
|
+
"text": " | (string | "
|
|
10249
|
+
},
|
|
10250
|
+
{
|
|
10251
|
+
"kind": "Reference",
|
|
10252
|
+
"text": "Namekey",
|
|
10253
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
10254
|
+
},
|
|
10255
|
+
{
|
|
10256
|
+
"kind": "Content",
|
|
10257
|
+
"text": ")[]"
|
|
10175
10258
|
},
|
|
10176
10259
|
{
|
|
10177
10260
|
"kind": "Content",
|
|
@@ -10184,7 +10267,48 @@
|
|
|
10184
10267
|
"name": "name",
|
|
10185
10268
|
"propertyTypeTokenRange": {
|
|
10186
10269
|
"startIndex": 1,
|
|
10187
|
-
"endIndex":
|
|
10270
|
+
"endIndex": 6
|
|
10271
|
+
}
|
|
10272
|
+
},
|
|
10273
|
+
{
|
|
10274
|
+
"kind": "PropertySignature",
|
|
10275
|
+
"canonicalReference": "@alloy-js/csharp!NamespaceProps#refkey:member",
|
|
10276
|
+
"docComment": "",
|
|
10277
|
+
"excerptTokens": [
|
|
10278
|
+
{
|
|
10279
|
+
"kind": "Content",
|
|
10280
|
+
"text": "refkey?: "
|
|
10281
|
+
},
|
|
10282
|
+
{
|
|
10283
|
+
"kind": "Reference",
|
|
10284
|
+
"text": "Refkey",
|
|
10285
|
+
"canonicalReference": "@alloy-js/core!Refkey:type"
|
|
10286
|
+
},
|
|
10287
|
+
{
|
|
10288
|
+
"kind": "Content",
|
|
10289
|
+
"text": " | "
|
|
10290
|
+
},
|
|
10291
|
+
{
|
|
10292
|
+
"kind": "Reference",
|
|
10293
|
+
"text": "Refkey",
|
|
10294
|
+
"canonicalReference": "@alloy-js/core!Refkey:type"
|
|
10295
|
+
},
|
|
10296
|
+
{
|
|
10297
|
+
"kind": "Content",
|
|
10298
|
+
"text": "[]"
|
|
10299
|
+
},
|
|
10300
|
+
{
|
|
10301
|
+
"kind": "Content",
|
|
10302
|
+
"text": ";"
|
|
10303
|
+
}
|
|
10304
|
+
],
|
|
10305
|
+
"isReadonly": false,
|
|
10306
|
+
"isOptional": true,
|
|
10307
|
+
"releaseTag": "Public",
|
|
10308
|
+
"name": "refkey",
|
|
10309
|
+
"propertyTypeTokenRange": {
|
|
10310
|
+
"startIndex": 1,
|
|
10311
|
+
"endIndex": 5
|
|
10188
10312
|
}
|
|
10189
10313
|
}
|
|
10190
10314
|
],
|
|
@@ -10226,7 +10350,12 @@
|
|
|
10226
10350
|
},
|
|
10227
10351
|
{
|
|
10228
10352
|
"kind": "Content",
|
|
10229
|
-
"text": "string"
|
|
10353
|
+
"text": "string | "
|
|
10354
|
+
},
|
|
10355
|
+
{
|
|
10356
|
+
"kind": "Reference",
|
|
10357
|
+
"text": "Namekey",
|
|
10358
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
10230
10359
|
},
|
|
10231
10360
|
{
|
|
10232
10361
|
"kind": "Content",
|
|
@@ -10259,23 +10388,23 @@
|
|
|
10259
10388
|
"parameterName": "name",
|
|
10260
10389
|
"parameterTypeTokenRange": {
|
|
10261
10390
|
"startIndex": 1,
|
|
10262
|
-
"endIndex":
|
|
10391
|
+
"endIndex": 3
|
|
10263
10392
|
},
|
|
10264
10393
|
"isOptional": false
|
|
10265
10394
|
},
|
|
10266
10395
|
{
|
|
10267
10396
|
"parameterName": "parentNamespace",
|
|
10268
10397
|
"parameterTypeTokenRange": {
|
|
10269
|
-
"startIndex":
|
|
10270
|
-
"endIndex":
|
|
10398
|
+
"startIndex": 4,
|
|
10399
|
+
"endIndex": 5
|
|
10271
10400
|
},
|
|
10272
10401
|
"isOptional": true
|
|
10273
10402
|
},
|
|
10274
10403
|
{
|
|
10275
10404
|
"parameterName": "options",
|
|
10276
10405
|
"parameterTypeTokenRange": {
|
|
10277
|
-
"startIndex":
|
|
10278
|
-
"endIndex":
|
|
10406
|
+
"startIndex": 6,
|
|
10407
|
+
"endIndex": 7
|
|
10279
10408
|
},
|
|
10280
10409
|
"isOptional": true
|
|
10281
10410
|
}
|
|
@@ -12079,7 +12208,12 @@
|
|
|
12079
12208
|
},
|
|
12080
12209
|
{
|
|
12081
12210
|
"kind": "Content",
|
|
12082
|
-
"text": "string"
|
|
12211
|
+
"text": "string | "
|
|
12212
|
+
},
|
|
12213
|
+
{
|
|
12214
|
+
"kind": "Reference",
|
|
12215
|
+
"text": "core.Namekey",
|
|
12216
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
12083
12217
|
},
|
|
12084
12218
|
{
|
|
12085
12219
|
"kind": "Content",
|
|
@@ -12092,7 +12226,7 @@
|
|
|
12092
12226
|
"name": "name",
|
|
12093
12227
|
"propertyTypeTokenRange": {
|
|
12094
12228
|
"startIndex": 1,
|
|
12095
|
-
"endIndex":
|
|
12229
|
+
"endIndex": 3
|
|
12096
12230
|
}
|
|
12097
12231
|
},
|
|
12098
12232
|
{
|
|
@@ -12776,7 +12910,12 @@
|
|
|
12776
12910
|
},
|
|
12777
12911
|
{
|
|
12778
12912
|
"kind": "Content",
|
|
12779
|
-
"text": "string"
|
|
12913
|
+
"text": "string | "
|
|
12914
|
+
},
|
|
12915
|
+
{
|
|
12916
|
+
"kind": "Reference",
|
|
12917
|
+
"text": "core.Namekey",
|
|
12918
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
12780
12919
|
},
|
|
12781
12920
|
{
|
|
12782
12921
|
"kind": "Content",
|
|
@@ -12789,7 +12928,7 @@
|
|
|
12789
12928
|
"name": "name",
|
|
12790
12929
|
"propertyTypeTokenRange": {
|
|
12791
12930
|
"startIndex": 1,
|
|
12792
|
-
"endIndex":
|
|
12931
|
+
"endIndex": 3
|
|
12793
12932
|
}
|
|
12794
12933
|
},
|
|
12795
12934
|
{
|
|
@@ -13065,7 +13204,12 @@
|
|
|
13065
13204
|
},
|
|
13066
13205
|
{
|
|
13067
13206
|
"kind": "Content",
|
|
13068
|
-
"text": "string"
|
|
13207
|
+
"text": "string | "
|
|
13208
|
+
},
|
|
13209
|
+
{
|
|
13210
|
+
"kind": "Reference",
|
|
13211
|
+
"text": "Namekey",
|
|
13212
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
13069
13213
|
},
|
|
13070
13214
|
{
|
|
13071
13215
|
"kind": "Content",
|
|
@@ -13078,7 +13222,7 @@
|
|
|
13078
13222
|
"name": "name",
|
|
13079
13223
|
"propertyTypeTokenRange": {
|
|
13080
13224
|
"startIndex": 1,
|
|
13081
|
-
"endIndex":
|
|
13225
|
+
"endIndex": 3
|
|
13082
13226
|
}
|
|
13083
13227
|
},
|
|
13084
13228
|
{
|
|
@@ -13753,7 +13897,12 @@
|
|
|
13753
13897
|
},
|
|
13754
13898
|
{
|
|
13755
13899
|
"kind": "Content",
|
|
13756
|
-
"text": "string"
|
|
13900
|
+
"text": "string | "
|
|
13901
|
+
},
|
|
13902
|
+
{
|
|
13903
|
+
"kind": "Reference",
|
|
13904
|
+
"text": "Namekey",
|
|
13905
|
+
"canonicalReference": "@alloy-js/core!Namekey:interface"
|
|
13757
13906
|
},
|
|
13758
13907
|
{
|
|
13759
13908
|
"kind": "Content",
|
|
@@ -13766,7 +13915,7 @@
|
|
|
13766
13915
|
"name": "name",
|
|
13767
13916
|
"propertyTypeTokenRange": {
|
|
13768
13917
|
"startIndex": 1,
|
|
13769
|
-
"endIndex":
|
|
13918
|
+
"endIndex": 3
|
|
13770
13919
|
}
|
|
13771
13920
|
},
|
|
13772
13921
|
{
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/components/namespace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAMtD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,YAyB9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Block","NamespaceContext","useSourceFileScope","createNamespaceSymbol","NamespaceScope","Namespace","props","namespaceSymbol","name","sfScope","_$createComponent","Provider","value","symbol","children","hasBlockNamespace","_$memo"],"sources":["../../../src/components/namespace.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,KAAK,QAAQ,gBAAgB;AAEtC,SAASC,gBAAgB,QAAQ,0BAA0B;AAC3D,SAASC,kBAAkB,QAAQ,0BAA0B;AAC7D,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,cAAc;AAOvB,OAAO,SAASC,SAASA,CAACC,KAAqB,EAAE;EAC/C,MAAMC,eAAe,GAAGJ,qBAAqB,CAACG,KAAK,CAACE,IAAI,CAAC;EACzD,MAAMC,OAAO,GAAGP,kBAAkB,CAAC,CAAC;EAEpC,IAAI,CAACO,OAAO,EAAE;IACZ,OAAAC,iBAAA,CACGT,gBAAgB,CAACU,QAAQ;MAACC,KAAK,EAAE;QAAEC,MAAM,EAAEN;MAAgB,CAAC;MAAA,IAAAO,SAAA;QAAA,OAC1DR,KAAK,CAACQ,QAAQ;MAAA;IAAA;EAGrB,CAAC,MAAM;IACLL,OAAO,CAACM,iBAAiB,GAAG,IAAI;IAChC,sBAAAC,MAAA,OAEeT,eAAe,CAACC,IAAI,GAAE,GAAG,EAAAE,iBAAA,CACnCV,KAAK;MAAA,IAAAc,SAAA;QAAA,OAAAJ,iBAAA,CACHT,gBAAgB,CAACU,QAAQ;UAACC,KAAK,EAAE;YAAEC,MAAM,EAAEN;UAAgB,CAAC;UAAA,IAAAO,SAAA;YAAA,OAAAJ,iBAAA,CAC1DN,cAAc;cAACS,MAAM,EAAEN,eAAe;cAAA,IAAAO,SAAA;gBAAA,OACpCR,KAAK,CAACQ,QAAQ;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAM3B;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.test.d.ts","sourceRoot":"","sources":["../../../src/components/namespace.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { Output } from "@alloy-js/core";
|
|
3
|
-
import { d } from "@alloy-js/core/testing";
|
|
4
|
-
import { expect, it } from "vitest";
|
|
5
|
-
import { ClassDeclaration } from "./class/declaration.js";
|
|
6
|
-
import { Namespace } from "./namespace.js";
|
|
7
|
-
import { SourceFile } from "./source-file/source-file.js";
|
|
8
|
-
it("defines multiple namespaces and source files with unique content", () => {
|
|
9
|
-
const tree = _$createComponent(Output, {
|
|
10
|
-
get children() {
|
|
11
|
-
return [_$createComponent(Namespace, {
|
|
12
|
-
name: "Namespace1",
|
|
13
|
-
get children() {
|
|
14
|
-
return [_$createComponent(SourceFile, {
|
|
15
|
-
path: "Model1.cs",
|
|
16
|
-
get children() {
|
|
17
|
-
return _$createComponent(ClassDeclaration, {
|
|
18
|
-
"public": true,
|
|
19
|
-
name: "Model1"
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}), _$createComponent(SourceFile, {
|
|
23
|
-
path: "Model2.cs",
|
|
24
|
-
get children() {
|
|
25
|
-
return _$createComponent(ClassDeclaration, {
|
|
26
|
-
"public": true,
|
|
27
|
-
name: "Model2"
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
})];
|
|
31
|
-
}
|
|
32
|
-
}), _$createComponent(Namespace, {
|
|
33
|
-
name: "Namespace2",
|
|
34
|
-
get children() {
|
|
35
|
-
return [_$createComponent(SourceFile, {
|
|
36
|
-
path: "Model3.cs",
|
|
37
|
-
get children() {
|
|
38
|
-
return _$createComponent(ClassDeclaration, {
|
|
39
|
-
"public": true,
|
|
40
|
-
name: "Model3"
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}), _$createComponent(SourceFile, {
|
|
44
|
-
path: "Model4.cs",
|
|
45
|
-
get children() {
|
|
46
|
-
return _$createComponent(ClassDeclaration, {
|
|
47
|
-
"public": true,
|
|
48
|
-
name: "Model4"
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
})];
|
|
52
|
-
}
|
|
53
|
-
})];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
expect(tree).toRenderTo({
|
|
57
|
-
"Model1.cs": d`
|
|
58
|
-
namespace Namespace1;
|
|
59
|
-
|
|
60
|
-
public class Model1;
|
|
61
|
-
`,
|
|
62
|
-
"Model2.cs": d`
|
|
63
|
-
namespace Namespace1;
|
|
64
|
-
|
|
65
|
-
public class Model2;
|
|
66
|
-
`,
|
|
67
|
-
"Model3.cs": d`
|
|
68
|
-
namespace Namespace2;
|
|
69
|
-
|
|
70
|
-
public class Model3;
|
|
71
|
-
`,
|
|
72
|
-
"Model4.cs": d`
|
|
73
|
-
namespace Namespace2;
|
|
74
|
-
|
|
75
|
-
public class Model4;
|
|
76
|
-
`
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=namespace.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Output","d","expect","it","ClassDeclaration","Namespace","SourceFile","tree","_$createComponent","children","name","path","toRenderTo"],"sources":["../../../src/components/namespace.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,MAAM,QAAQ,gBAAgB;AACvC,SAASC,CAAC,QAAQ,wBAAwB;AAC1C,SAASC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AACnC,SAASC,gBAAgB;AACzB,SAASC,SAAS;AAClB,SAASC,UAAU;AAEnBH,EAAE,CAAC,kEAAkE,EAAE,MAAM;EAC3E,MAAMI,IAAI,GAAAC,iBAAA,CACPR,MAAM;IAAA,IAAAS,SAAA;MAAA,QAAAD,iBAAA,CACJH,SAAS;QAACK,IAAI;QAAA,IAAAD,SAAA;UAAA,QAAAD,iBAAA,CACZF,UAAU;YAACK,IAAI;YAAA,IAAAF,SAAA;cAAA,OAAAD,iBAAA,CACbJ,gBAAgB;gBAAA;gBAAQM,IAAI;cAAA;YAAA;UAAA,IAAAF,iBAAA,CAE9BF,UAAU;YAACK,IAAI;YAAA,IAAAF,SAAA;cAAA,OAAAD,iBAAA,CACbJ,gBAAgB;gBAAA;gBAAQM,IAAI;cAAA;YAAA;UAAA;QAAA;MAAA,IAAAF,iBAAA,CAGhCH,SAAS;QAACK,IAAI;QAAA,IAAAD,SAAA;UAAA,QAAAD,iBAAA,CACZF,UAAU;YAACK,IAAI;YAAA,IAAAF,SAAA;cAAA,OAAAD,iBAAA,CACbJ,gBAAgB;gBAAA;gBAAQM,IAAI;cAAA;YAAA;UAAA,IAAAF,iBAAA,CAE9BF,UAAU;YAACK,IAAI;YAAA,IAAAF,SAAA;cAAA,OAAAD,iBAAA,CACbJ,gBAAgB;gBAAA;gBAAQM,IAAI;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA,EAIpC;EAEDR,MAAM,CAACK,IAAI,CAAC,CAACK,UAAU,CAAC;IACtB,WAAW,EAAEX,CAAC;AAClB;AACA;AACA;AACA,KAAK;IACD,WAAW,EAAEA,CAAC;AAClB;AACA;AACA;AACA,KAAK;IACD,WAAW,EAAEA,CAAC;AAClB;AACA;AACA;AACA,KAAK;IACD,WAAW,EAAEA,CAAC;AAClB;AACA;AACA;AACA;EACE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Output } from "@alloy-js/core";
|
|
2
|
-
import { d } from "@alloy-js/core/testing";
|
|
3
|
-
import { expect, it } from "vitest";
|
|
4
|
-
import { ClassDeclaration } from "./class/declaration.jsx";
|
|
5
|
-
import { Namespace } from "./namespace.jsx";
|
|
6
|
-
import { SourceFile } from "./source-file/source-file.jsx";
|
|
7
|
-
|
|
8
|
-
it("defines multiple namespaces and source files with unique content", () => {
|
|
9
|
-
const tree = (
|
|
10
|
-
<Output>
|
|
11
|
-
<Namespace name="Namespace1">
|
|
12
|
-
<SourceFile path="Model1.cs">
|
|
13
|
-
<ClassDeclaration public name="Model1" />
|
|
14
|
-
</SourceFile>
|
|
15
|
-
<SourceFile path="Model2.cs">
|
|
16
|
-
<ClassDeclaration public name="Model2" />
|
|
17
|
-
</SourceFile>
|
|
18
|
-
</Namespace>
|
|
19
|
-
<Namespace name="Namespace2">
|
|
20
|
-
<SourceFile path="Model3.cs">
|
|
21
|
-
<ClassDeclaration public name="Model3" />
|
|
22
|
-
</SourceFile>
|
|
23
|
-
<SourceFile path="Model4.cs">
|
|
24
|
-
<ClassDeclaration public name="Model4" />
|
|
25
|
-
</SourceFile>
|
|
26
|
-
</Namespace>
|
|
27
|
-
</Output>
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
expect(tree).toRenderTo({
|
|
31
|
-
"Model1.cs": d`
|
|
32
|
-
namespace Namespace1;
|
|
33
|
-
|
|
34
|
-
public class Model1;
|
|
35
|
-
`,
|
|
36
|
-
"Model2.cs": d`
|
|
37
|
-
namespace Namespace1;
|
|
38
|
-
|
|
39
|
-
public class Model2;
|
|
40
|
-
`,
|
|
41
|
-
"Model3.cs": d`
|
|
42
|
-
namespace Namespace2;
|
|
43
|
-
|
|
44
|
-
public class Model3;
|
|
45
|
-
`,
|
|
46
|
-
"Model4.cs": d`
|
|
47
|
-
namespace Namespace2;
|
|
48
|
-
|
|
49
|
-
public class Model4;
|
|
50
|
-
`,
|
|
51
|
-
});
|
|
52
|
-
});
|
|
File without changes
|