@alloy-js/csharp 0.20.0-dev.5 → 0.20.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 (73) hide show
  1. package/dist/src/components/SourceFile.d.ts +5 -0
  2. package/dist/src/components/SourceFile.d.ts.map +1 -1
  3. package/dist/src/components/SourceFile.js +18 -58
  4. package/dist/src/components/SourceFile.js.map +1 -1
  5. package/dist/src/components/access-expression/access-expression.d.ts +54 -0
  6. package/dist/src/components/access-expression/access-expression.d.ts.map +1 -0
  7. package/dist/src/components/access-expression/access-expression.js +277 -0
  8. package/dist/src/components/access-expression/access-expression.js.map +1 -0
  9. package/dist/src/components/access-expression/access-expression.test.d.ts +2 -0
  10. package/dist/src/components/access-expression/access-expression.test.d.ts.map +1 -0
  11. package/dist/src/components/access-expression/access-expression.test.js +336 -0
  12. package/dist/src/components/access-expression/access-expression.test.js.map +1 -0
  13. package/dist/src/components/access-expression/part-descriptors.d.ts +32 -0
  14. package/dist/src/components/access-expression/part-descriptors.d.ts.map +1 -0
  15. package/dist/src/components/access-expression/part-descriptors.js +99 -0
  16. package/dist/src/components/access-expression/part-descriptors.js.map +1 -0
  17. package/dist/src/components/class/declaration.d.ts.map +1 -1
  18. package/dist/src/components/class/declaration.js.map +1 -1
  19. package/dist/src/components/index.d.ts +1 -0
  20. package/dist/src/components/index.d.ts.map +1 -1
  21. package/dist/src/components/index.js +1 -0
  22. package/dist/src/components/index.js.map +1 -1
  23. package/dist/src/components/invocation-expression/invocation-expression.d.ts +29 -0
  24. package/dist/src/components/invocation-expression/invocation-expression.d.ts.map +1 -0
  25. package/dist/src/components/invocation-expression/invocation-expression.js +70 -0
  26. package/dist/src/components/invocation-expression/invocation-expression.js.map +1 -0
  27. package/dist/src/components/invocation-expression/invocation-expression.test.d.ts +2 -0
  28. package/dist/src/components/invocation-expression/invocation-expression.test.d.ts.map +1 -0
  29. package/dist/src/components/invocation-expression/invocation-expression.test.js +105 -0
  30. package/dist/src/components/invocation-expression/invocation-expression.test.js.map +1 -0
  31. package/dist/src/components/parameters/parameters.d.ts +1 -2
  32. package/dist/src/components/parameters/parameters.d.ts.map +1 -1
  33. package/dist/src/components/parameters/parameters.js +2 -1
  34. package/dist/src/components/parameters/parameters.js.map +1 -1
  35. package/dist/src/components/parameters/parameters.test.js +66 -0
  36. package/dist/src/components/parameters/parameters.test.js.map +1 -1
  37. package/dist/src/components/property/property.d.ts +2 -2
  38. package/dist/src/components/property/property.d.ts.map +1 -1
  39. package/dist/src/components/property/property.js +10 -3
  40. package/dist/src/components/property/property.js.map +1 -1
  41. package/dist/src/scopes/csharp.d.ts +2 -0
  42. package/dist/src/scopes/csharp.d.ts.map +1 -1
  43. package/dist/src/scopes/csharp.js +3 -0
  44. package/dist/src/scopes/csharp.js.map +1 -1
  45. package/dist/src/symbols/csharp.d.ts +11 -0
  46. package/dist/src/symbols/csharp.d.ts.map +1 -1
  47. package/dist/src/symbols/csharp.js +23 -0
  48. package/dist/src/symbols/csharp.js.map +1 -1
  49. package/dist/src/symbols/factories.d.ts.map +1 -1
  50. package/dist/src/symbols/factories.js +12 -6
  51. package/dist/src/symbols/factories.js.map +1 -1
  52. package/dist/src/symbols/reference.d.ts +2 -2
  53. package/dist/src/symbols/reference.d.ts.map +1 -1
  54. package/dist/src/symbols/reference.js +17 -5
  55. package/dist/src/symbols/reference.js.map +1 -1
  56. package/dist/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +2 -2
  58. package/src/components/SourceFile.tsx +27 -30
  59. package/src/components/access-expression/access-expression.test.tsx +284 -0
  60. package/src/components/access-expression/access-expression.tsx +375 -0
  61. package/src/components/access-expression/part-descriptors.ts +175 -0
  62. package/src/components/class/declaration.tsx +1 -0
  63. package/src/components/index.ts +1 -0
  64. package/src/components/invocation-expression/invocation-expression.test.tsx +101 -0
  65. package/src/components/invocation-expression/invocation-expression.tsx +60 -0
  66. package/src/components/parameters/parameters.test.tsx +46 -0
  67. package/src/components/parameters/parameters.tsx +2 -2
  68. package/src/components/property/property.tsx +8 -2
  69. package/src/scopes/csharp.ts +5 -0
  70. package/src/symbols/csharp.ts +32 -0
  71. package/src/symbols/factories.ts +31 -15
  72. package/src/symbols/{reference.ts → reference.tsx} +11 -9
  73. package/temp/api.json +271 -36
package/temp/api.json CHANGED
@@ -3306,6 +3306,41 @@
3306
3306
  "isStatic": false,
3307
3307
  "isProtected": false,
3308
3308
  "isAbstract": false
3309
+ },
3310
+ {
3311
+ "kind": "Property",
3312
+ "canonicalReference": "@alloy-js/csharp!CSharpScope#ownerSymbol:member",
3313
+ "docComment": "",
3314
+ "excerptTokens": [
3315
+ {
3316
+ "kind": "Content",
3317
+ "text": "get ownerSymbol(): "
3318
+ },
3319
+ {
3320
+ "kind": "Reference",
3321
+ "text": "CSharpSymbol",
3322
+ "canonicalReference": "@alloy-js/csharp!CSharpSymbol:class"
3323
+ },
3324
+ {
3325
+ "kind": "Content",
3326
+ "text": " | undefined"
3327
+ },
3328
+ {
3329
+ "kind": "Content",
3330
+ "text": ";"
3331
+ }
3332
+ ],
3333
+ "isReadonly": true,
3334
+ "isOptional": false,
3335
+ "releaseTag": "Public",
3336
+ "name": "ownerSymbol",
3337
+ "propertyTypeTokenRange": {
3338
+ "startIndex": 1,
3339
+ "endIndex": 3
3340
+ },
3341
+ "isStatic": false,
3342
+ "isProtected": false,
3343
+ "isAbstract": false
3309
3344
  }
3310
3345
  ],
3311
3346
  "extendsTokenRange": {
@@ -3859,6 +3894,36 @@
3859
3894
  "isProtected": false,
3860
3895
  "isAbstract": false
3861
3896
  },
3897
+ {
3898
+ "kind": "Property",
3899
+ "canonicalReference": "@alloy-js/csharp!CSharpSymbol#isNullable:member",
3900
+ "docComment": "/**\n * Whether this symbol might contain null. True if this symbol has a\n * `typeSymbol` and that symbol is nullable, or else when this symbol has the\n * `nullable` option set.\n */\n",
3901
+ "excerptTokens": [
3902
+ {
3903
+ "kind": "Content",
3904
+ "text": "get isNullable(): "
3905
+ },
3906
+ {
3907
+ "kind": "Content",
3908
+ "text": "boolean"
3909
+ },
3910
+ {
3911
+ "kind": "Content",
3912
+ "text": ";\n\nset isNullable(value: boolean);"
3913
+ }
3914
+ ],
3915
+ "isReadonly": false,
3916
+ "isOptional": false,
3917
+ "releaseTag": "Public",
3918
+ "name": "isNullable",
3919
+ "propertyTypeTokenRange": {
3920
+ "startIndex": 1,
3921
+ "endIndex": 2
3922
+ },
3923
+ "isStatic": false,
3924
+ "isProtected": false,
3925
+ "isAbstract": false
3926
+ },
3862
3927
  {
3863
3928
  "kind": "Property",
3864
3929
  "canonicalReference": "@alloy-js/csharp!CSharpSymbol#isOverride:member",
@@ -4179,6 +4244,33 @@
4179
4244
  "endIndex": 2
4180
4245
  }
4181
4246
  },
4247
+ {
4248
+ "kind": "PropertySignature",
4249
+ "canonicalReference": "@alloy-js/csharp!CSharpSymbolOptions#isNullable:member",
4250
+ "docComment": "/**\n * Whether the value held by this symbol could be null.\n */\n",
4251
+ "excerptTokens": [
4252
+ {
4253
+ "kind": "Content",
4254
+ "text": "isNullable?: "
4255
+ },
4256
+ {
4257
+ "kind": "Content",
4258
+ "text": "boolean"
4259
+ },
4260
+ {
4261
+ "kind": "Content",
4262
+ "text": ";"
4263
+ }
4264
+ ],
4265
+ "isReadonly": false,
4266
+ "isOptional": true,
4267
+ "releaseTag": "Public",
4268
+ "name": "isNullable",
4269
+ "propertyTypeTokenRange": {
4270
+ "startIndex": 1,
4271
+ "endIndex": 2
4272
+ }
4273
+ },
4182
4274
  {
4183
4275
  "kind": "PropertySignature",
4184
4276
  "canonicalReference": "@alloy-js/csharp!CSharpSymbolOptions#isOverride:member",
@@ -8076,6 +8168,163 @@
8076
8168
  }
8077
8169
  ]
8078
8170
  },
8171
+ {
8172
+ "kind": "Function",
8173
+ "canonicalReference": "@alloy-js/csharp!InvocationExpression:function(1)",
8174
+ "docComment": "/**\n * A call to a function or method.\n *\n * @example\n *\n *\n *\n * ```jsx\n * <InvocationExpression target=\"Foo\" typeArgs={[\"T\"]} args={[\"x\"]} />\n * ```\n *\n *\n * Renders to:\n *\n * ```csharp\n * Foo<T>(\"x\");\n * ```\n *\n */\n",
8175
+ "excerptTokens": [
8176
+ {
8177
+ "kind": "Content",
8178
+ "text": "export declare function InvocationExpression(props: "
8179
+ },
8180
+ {
8181
+ "kind": "Reference",
8182
+ "text": "InvocationExpressionProps",
8183
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps:interface"
8184
+ },
8185
+ {
8186
+ "kind": "Content",
8187
+ "text": "): "
8188
+ },
8189
+ {
8190
+ "kind": "Reference",
8191
+ "text": "Children",
8192
+ "canonicalReference": "@alloy-js/core!Children:type"
8193
+ },
8194
+ {
8195
+ "kind": "Content",
8196
+ "text": ";"
8197
+ }
8198
+ ],
8199
+ "fileUrlPath": "src/components/invocation-expression/invocation-expression.tsx",
8200
+ "returnTypeTokenRange": {
8201
+ "startIndex": 3,
8202
+ "endIndex": 4
8203
+ },
8204
+ "releaseTag": "Public",
8205
+ "overloadIndex": 1,
8206
+ "parameters": [
8207
+ {
8208
+ "parameterName": "props",
8209
+ "parameterTypeTokenRange": {
8210
+ "startIndex": 1,
8211
+ "endIndex": 2
8212
+ },
8213
+ "isOptional": false
8214
+ }
8215
+ ],
8216
+ "name": "InvocationExpression"
8217
+ },
8218
+ {
8219
+ "kind": "Interface",
8220
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps:interface",
8221
+ "docComment": "",
8222
+ "excerptTokens": [
8223
+ {
8224
+ "kind": "Content",
8225
+ "text": "export interface InvocationExpressionProps "
8226
+ }
8227
+ ],
8228
+ "fileUrlPath": "src/components/invocation-expression/invocation-expression.tsx",
8229
+ "releaseTag": "Public",
8230
+ "name": "InvocationExpressionProps",
8231
+ "preserveMemberOrder": false,
8232
+ "members": [
8233
+ {
8234
+ "kind": "PropertySignature",
8235
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps#args:member",
8236
+ "docComment": "/**\n * Arguments to pass to the invocation.\n */\n",
8237
+ "excerptTokens": [
8238
+ {
8239
+ "kind": "Content",
8240
+ "text": "args?: "
8241
+ },
8242
+ {
8243
+ "kind": "Reference",
8244
+ "text": "Children",
8245
+ "canonicalReference": "@alloy-js/core!Children:type"
8246
+ },
8247
+ {
8248
+ "kind": "Content",
8249
+ "text": "[]"
8250
+ },
8251
+ {
8252
+ "kind": "Content",
8253
+ "text": ";"
8254
+ }
8255
+ ],
8256
+ "isReadonly": false,
8257
+ "isOptional": true,
8258
+ "releaseTag": "Public",
8259
+ "name": "args",
8260
+ "propertyTypeTokenRange": {
8261
+ "startIndex": 1,
8262
+ "endIndex": 3
8263
+ }
8264
+ },
8265
+ {
8266
+ "kind": "PropertySignature",
8267
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps#target:member",
8268
+ "docComment": "",
8269
+ "excerptTokens": [
8270
+ {
8271
+ "kind": "Content",
8272
+ "text": "target: "
8273
+ },
8274
+ {
8275
+ "kind": "Reference",
8276
+ "text": "Children",
8277
+ "canonicalReference": "@alloy-js/core!Children:type"
8278
+ },
8279
+ {
8280
+ "kind": "Content",
8281
+ "text": ";"
8282
+ }
8283
+ ],
8284
+ "isReadonly": false,
8285
+ "isOptional": false,
8286
+ "releaseTag": "Public",
8287
+ "name": "target",
8288
+ "propertyTypeTokenRange": {
8289
+ "startIndex": 1,
8290
+ "endIndex": 2
8291
+ }
8292
+ },
8293
+ {
8294
+ "kind": "PropertySignature",
8295
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps#typeArgs:member",
8296
+ "docComment": "/**\n * Generic type arguments for the invocation.\n */\n",
8297
+ "excerptTokens": [
8298
+ {
8299
+ "kind": "Content",
8300
+ "text": "typeArgs?: "
8301
+ },
8302
+ {
8303
+ "kind": "Reference",
8304
+ "text": "Children",
8305
+ "canonicalReference": "@alloy-js/core!Children:type"
8306
+ },
8307
+ {
8308
+ "kind": "Content",
8309
+ "text": "[]"
8310
+ },
8311
+ {
8312
+ "kind": "Content",
8313
+ "text": ";"
8314
+ }
8315
+ ],
8316
+ "isReadonly": false,
8317
+ "isOptional": true,
8318
+ "releaseTag": "Public",
8319
+ "name": "typeArgs",
8320
+ "propertyTypeTokenRange": {
8321
+ "startIndex": 1,
8322
+ "endIndex": 3
8323
+ }
8324
+ }
8325
+ ],
8326
+ "extendsTokenRanges": []
8327
+ },
8079
8328
  {
8080
8329
  "kind": "Interface",
8081
8330
  "canonicalReference": "@alloy-js/csharp!LeixcalScopePropsWithScopeInfo:interface",
@@ -10592,34 +10841,6 @@
10592
10841
  "endIndex": 2
10593
10842
  }
10594
10843
  },
10595
- {
10596
- "kind": "PropertySignature",
10597
- "canonicalReference": "@alloy-js/csharp!ParameterProps#symbol:member",
10598
- "docComment": "",
10599
- "excerptTokens": [
10600
- {
10601
- "kind": "Content",
10602
- "text": "symbol?: "
10603
- },
10604
- {
10605
- "kind": "Reference",
10606
- "text": "OutputSymbol",
10607
- "canonicalReference": "@alloy-js/core!OutputSymbol:class"
10608
- },
10609
- {
10610
- "kind": "Content",
10611
- "text": ";"
10612
- }
10613
- ],
10614
- "isReadonly": false,
10615
- "isOptional": true,
10616
- "releaseTag": "Public",
10617
- "name": "symbol",
10618
- "propertyTypeTokenRange": {
10619
- "startIndex": 1,
10620
- "endIndex": 2
10621
- }
10622
- },
10623
10844
  {
10624
10845
  "kind": "PropertySignature",
10625
10846
  "canonicalReference": "@alloy-js/csharp!ParameterProps#type:member",
@@ -11491,9 +11712,14 @@
11491
11712
  "kind": "Content",
11492
11713
  "text": "name: "
11493
11714
  },
11715
+ {
11716
+ "kind": "Reference",
11717
+ "text": "Namekey",
11718
+ "canonicalReference": "@alloy-js/core!Namekey:interface"
11719
+ },
11494
11720
  {
11495
11721
  "kind": "Content",
11496
- "text": "string"
11722
+ "text": " | string"
11497
11723
  },
11498
11724
  {
11499
11725
  "kind": "Content",
@@ -11506,7 +11732,7 @@
11506
11732
  "name": "name",
11507
11733
  "propertyTypeTokenRange": {
11508
11734
  "startIndex": 1,
11509
- "endIndex": 2
11735
+ "endIndex": 3
11510
11736
  }
11511
11737
  },
11512
11738
  {
@@ -11970,7 +12196,16 @@
11970
12196
  },
11971
12197
  {
11972
12198
  "kind": "Content",
11973
- "text": "() => [string, "
12199
+ "text": "() => ["
12200
+ },
12201
+ {
12202
+ "kind": "Reference",
12203
+ "text": "Children",
12204
+ "canonicalReference": "@alloy-js/core!Children:type"
12205
+ },
12206
+ {
12207
+ "kind": "Content",
12208
+ "text": ", "
11974
12209
  },
11975
12210
  {
11976
12211
  "kind": "Reference",
@@ -11986,10 +12221,10 @@
11986
12221
  "text": ";"
11987
12222
  }
11988
12223
  ],
11989
- "fileUrlPath": "src/symbols/reference.ts",
12224
+ "fileUrlPath": "src/symbols/reference.tsx",
11990
12225
  "returnTypeTokenRange": {
11991
12226
  "startIndex": 3,
11992
- "endIndex": 6
12227
+ "endIndex": 8
11993
12228
  },
11994
12229
  "releaseTag": "Public",
11995
12230
  "overloadIndex": 1,
@@ -12101,7 +12336,7 @@
12101
12336
  {
12102
12337
  "kind": "Function",
12103
12338
  "canonicalReference": "@alloy-js/csharp!SourceFile:function(1)",
12104
- "docComment": "",
12339
+ "docComment": "/**\n * A C# source file exists within the context of a namespace contains using statements and declarations\n */\n",
12105
12340
  "excerptTokens": [
12106
12341
  {
12107
12342
  "kind": "Content",
@@ -12148,7 +12383,7 @@
12148
12383
  {
12149
12384
  "kind": "Interface",
12150
12385
  "canonicalReference": "@alloy-js/csharp!SourceFileProps:interface",
12151
- "docComment": "",
12386
+ "docComment": "/**\n * Props for {@link SourceFile} component\n */\n",
12152
12387
  "excerptTokens": [
12153
12388
  {
12154
12389
  "kind": "Content",
@@ -12163,7 +12398,7 @@
12163
12398
  {
12164
12399
  "kind": "PropertySignature",
12165
12400
  "canonicalReference": "@alloy-js/csharp!SourceFileProps#children:member",
12166
- "docComment": "",
12401
+ "docComment": "/**\n * Source file content\n */\n",
12167
12402
  "excerptTokens": [
12168
12403
  {
12169
12404
  "kind": "Content",