@alloy-js/csharp 0.20.0-dev.6 → 0.20.0-dev.9

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 (96) hide show
  1. package/dist/src/components/access-expression/access-expression.d.ts +54 -0
  2. package/dist/src/components/access-expression/access-expression.d.ts.map +1 -0
  3. package/dist/src/components/access-expression/access-expression.js +277 -0
  4. package/dist/src/components/access-expression/access-expression.js.map +1 -0
  5. package/dist/src/components/access-expression/access-expression.test.d.ts +2 -0
  6. package/dist/src/components/access-expression/access-expression.test.d.ts.map +1 -0
  7. package/dist/src/components/access-expression/access-expression.test.js +336 -0
  8. package/dist/src/components/access-expression/access-expression.test.js.map +1 -0
  9. package/dist/src/components/access-expression/part-descriptors.d.ts +32 -0
  10. package/dist/src/components/access-expression/part-descriptors.d.ts.map +1 -0
  11. package/dist/src/components/access-expression/part-descriptors.js +99 -0
  12. package/dist/src/components/access-expression/part-descriptors.js.map +1 -0
  13. package/dist/src/components/class/declaration.test.js +1 -1
  14. package/dist/src/components/enum/declaration.ref.test.js +1 -1
  15. package/dist/src/components/index.d.ts +2 -1
  16. package/dist/src/components/index.d.ts.map +1 -1
  17. package/dist/src/components/index.js +2 -1
  18. package/dist/src/components/index.js.map +1 -1
  19. package/dist/src/components/invocation-expression/invocation-expression.d.ts +29 -0
  20. package/dist/src/components/invocation-expression/invocation-expression.d.ts.map +1 -0
  21. package/dist/src/components/invocation-expression/invocation-expression.js +70 -0
  22. package/dist/src/components/invocation-expression/invocation-expression.js.map +1 -0
  23. package/dist/src/components/invocation-expression/invocation-expression.test.d.ts +2 -0
  24. package/dist/src/components/invocation-expression/invocation-expression.test.d.ts.map +1 -0
  25. package/dist/src/components/invocation-expression/invocation-expression.test.js +105 -0
  26. package/dist/src/components/invocation-expression/invocation-expression.test.js.map +1 -0
  27. package/dist/src/components/namespace.ref.test.js +1 -1
  28. package/dist/src/components/namespace.test.js +1 -1
  29. package/dist/src/components/parameters/parameters.d.ts +1 -2
  30. package/dist/src/components/parameters/parameters.d.ts.map +1 -1
  31. package/dist/src/components/parameters/parameters.js +2 -1
  32. package/dist/src/components/parameters/parameters.js.map +1 -1
  33. package/dist/src/components/parameters/parameters.test.js +66 -0
  34. package/dist/src/components/parameters/parameters.test.js.map +1 -1
  35. package/dist/src/components/property/property.d.ts +2 -2
  36. package/dist/src/components/property/property.d.ts.map +1 -1
  37. package/dist/src/components/property/property.js +10 -3
  38. package/dist/src/components/property/property.js.map +1 -1
  39. package/dist/src/components/{SourceFile.d.ts → source-file/source-file.d.ts} +3 -2
  40. package/dist/src/components/source-file/source-file.d.ts.map +1 -0
  41. package/dist/src/components/{SourceFile.js → source-file/source-file.js} +18 -13
  42. package/dist/src/components/source-file/source-file.js.map +1 -0
  43. package/dist/src/components/source-file/source-file.test.d.ts +2 -0
  44. package/dist/src/components/source-file/source-file.test.d.ts.map +1 -0
  45. package/dist/src/components/source-file/source-file.test.js +136 -0
  46. package/dist/src/components/source-file/source-file.test.js.map +1 -0
  47. package/dist/src/contexts/format-options.d.ts +5 -0
  48. package/dist/src/contexts/format-options.d.ts.map +1 -0
  49. package/dist/src/contexts/format-options.js +9 -0
  50. package/dist/src/contexts/format-options.js.map +1 -0
  51. package/dist/src/index.d.ts +1 -0
  52. package/dist/src/index.d.ts.map +1 -1
  53. package/dist/src/index.js +1 -0
  54. package/dist/src/index.js.map +1 -1
  55. package/dist/src/scopes/csharp.d.ts +2 -0
  56. package/dist/src/scopes/csharp.d.ts.map +1 -1
  57. package/dist/src/scopes/csharp.js +3 -0
  58. package/dist/src/scopes/csharp.js.map +1 -1
  59. package/dist/src/symbols/csharp.d.ts +11 -0
  60. package/dist/src/symbols/csharp.d.ts.map +1 -1
  61. package/dist/src/symbols/csharp.js +23 -0
  62. package/dist/src/symbols/csharp.js.map +1 -1
  63. package/dist/src/symbols/reference.d.ts +2 -2
  64. package/dist/src/symbols/reference.d.ts.map +1 -1
  65. package/dist/src/symbols/reference.js +17 -5
  66. package/dist/src/symbols/reference.js.map +1 -1
  67. package/dist/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +2 -2
  69. package/src/components/access-expression/access-expression.test.tsx +284 -0
  70. package/src/components/access-expression/access-expression.tsx +375 -0
  71. package/src/components/access-expression/part-descriptors.ts +175 -0
  72. package/src/components/class/declaration.test.tsx +1 -1
  73. package/src/components/enum/declaration.ref.test.tsx +1 -1
  74. package/src/components/index.ts +2 -1
  75. package/src/components/invocation-expression/invocation-expression.test.tsx +101 -0
  76. package/src/components/invocation-expression/invocation-expression.tsx +60 -0
  77. package/src/components/namespace.ref.test.tsx +1 -1
  78. package/src/components/namespace.test.tsx +1 -1
  79. package/src/components/parameters/parameters.test.tsx +46 -0
  80. package/src/components/parameters/parameters.tsx +2 -2
  81. package/src/components/property/property.tsx +8 -2
  82. package/src/components/source-file/source-file.test.tsx +96 -0
  83. package/src/components/{SourceFile.tsx → source-file/source-file.tsx} +20 -10
  84. package/src/contexts/format-options.ts +14 -0
  85. package/src/index.ts +1 -0
  86. package/src/scopes/csharp.ts +5 -0
  87. package/src/symbols/csharp.ts +32 -0
  88. package/src/symbols/{reference.ts → reference.tsx} +11 -9
  89. package/temp/api.json +423 -37
  90. package/dist/src/components/SourceFile.d.ts.map +0 -1
  91. package/dist/src/components/SourceFile.js.map +0 -1
  92. package/dist/test/sourcefile.test.d.ts +0 -2
  93. package/dist/test/sourcefile.test.d.ts.map +0 -1
  94. package/dist/test/sourcefile.test.js +0 -47
  95. package/dist/test/sourcefile.test.js.map +0 -1
  96. package/test/sourcefile.test.tsx +0 -33
@@ -1,4 +1,5 @@
1
1
  import { OutputScope, OutputScopeOptions } from "@alloy-js/core";
2
+ import type { CSharpSymbol } from "../symbols/csharp.js";
2
3
  import { NamespaceSymbol } from "../symbols/namespace.js";
3
4
 
4
5
  export class CSharpScope extends OutputScope {
@@ -15,4 +16,8 @@ export class CSharpScope extends OutputScope {
15
16
  get enclosingNamespace() {
16
17
  return this.#namespaceSymbol;
17
18
  }
19
+
20
+ get ownerSymbol(): CSharpSymbol | undefined {
21
+ return super.ownerSymbol as CSharpSymbol | undefined;
22
+ }
18
23
  }
@@ -33,6 +33,10 @@ export interface CSharpSymbolOptions extends OutputSymbolOptions {
33
33
  isSealed?: boolean;
34
34
  isExtern?: boolean;
35
35
  isReadOnly?: boolean;
36
+ /**
37
+ * Whether the value held by this symbol could be null.
38
+ */
39
+ isNullable?: boolean;
36
40
  }
37
41
 
38
42
  export type CSharpSymbolKinds =
@@ -72,6 +76,7 @@ export class CSharpSymbol extends OutputSymbol {
72
76
  this.#isSealed = options.isSealed ?? false;
73
77
  this.#isExtern = options.isExtern ?? false;
74
78
  this.#isReadOnly = options.isReadOnly ?? false;
79
+ this.#isNullable = options.isNullable; // undefined means unset, here.
75
80
  }
76
81
 
77
82
  get enclosingNamespace(): NamespaceSymbol | undefined {
@@ -280,6 +285,33 @@ export class CSharpSymbol extends OutputSymbol {
280
285
  trigger(this, TriggerOpTypes.SET, "isReadOnly", value, old);
281
286
  }
282
287
  #isReadOnly: boolean = false;
288
+
289
+ #isNullable: boolean | undefined = undefined;
290
+
291
+ /**
292
+ * Whether this symbol might contain null. True if this symbol has a
293
+ * `typeSymbol` and that symbol is nullable, or else when this symbol has the
294
+ * `nullable` option set.
295
+ */
296
+ get isNullable() {
297
+ if (this.hasTypeSymbol && this.#isNullable === undefined) {
298
+ return (this.type! as CSharpSymbol).isNullable;
299
+ }
300
+
301
+ track(this, TrackOpTypes.GET, "isNullable");
302
+ return !!this.#isNullable;
303
+ }
304
+
305
+ set isNullable(value: boolean) {
306
+ const old = this.#isNullable;
307
+ if (old === value) {
308
+ return;
309
+ }
310
+
311
+ this.#isNullable = value;
312
+
313
+ trigger(this, TriggerOpTypes.SET, "isNullable", value, old);
314
+ }
283
315
  }
284
316
 
285
317
  export function accessibilityFromProps(props: AccessModifiers) {
@@ -1,4 +1,5 @@
1
- import { memo, OutputSymbol, Refkey, resolve } from "@alloy-js/core";
1
+ import { AccessExpression } from "#components/access-expression/access-expression.jsx";
2
+ import { Children, memo, OutputSymbol, Refkey, resolve } from "@alloy-js/core";
2
3
  import { CSharpScope } from "../scopes/csharp.js";
3
4
  import { CSharpNamespaceScope } from "../scopes/namespace.js";
4
5
  import { useSourceFileScope } from "../scopes/source-file.js";
@@ -9,10 +10,11 @@ import { NamespaceSymbol } from "./namespace.js";
9
10
  // e.g. if refkey is for bar in enum type foo, and
10
11
  // foo is in the same namespace as the refkey, then
11
12
  // the result would be foo.bar.
12
- export function ref(refkey: Refkey): () => [string, OutputSymbol | undefined] {
13
+ export function ref(
14
+ refkey: Refkey,
15
+ ): () => [Children, OutputSymbol | undefined] {
13
16
  const refSfScope = useSourceFileScope()!;
14
17
  const resolveResult = resolve<CSharpScope, CSharpSymbol>(refkey as Refkey);
15
-
16
18
  return memo(() => {
17
19
  if (resolveResult.value === undefined) {
18
20
  return ["<Unresolved Symbol>", undefined];
@@ -22,7 +24,6 @@ export function ref(refkey: Refkey): () => [string, OutputSymbol | undefined] {
22
24
  const { commonScope, pathDown, memberPath } = result;
23
25
  let { lexicalDeclaration } = result;
24
26
 
25
- const parts = [];
26
27
  if (!commonScope) {
27
28
  // this shouldn't be possible in csharp.
28
29
  return ["<Unresolved Symbol>", undefined];
@@ -47,16 +48,17 @@ export function ref(refkey: Refkey): () => [string, OutputSymbol | undefined] {
47
48
  refSfScope.addUsing(nsToUse!);
48
49
  }
49
50
 
51
+ const parts = [];
52
+
50
53
  for (const nsScope of pathDown) {
51
- parts.push(nsScope.ownerSymbol!.name);
54
+ parts.push(<AccessExpression.Part symbol={nsScope.ownerSymbol!} />);
52
55
  }
53
56
 
54
- parts.push(lexicalDeclaration.name);
55
-
57
+ parts.push(<AccessExpression.Part symbol={lexicalDeclaration} />);
56
58
  for (const member of memberPath) {
57
- parts.push(member.name);
59
+ parts.push(<AccessExpression.Part symbol={member} />);
58
60
  }
59
61
 
60
- return [parts.join("."), result.symbol];
62
+ return [<AccessExpression children={parts} />, result.symbol];
61
63
  });
62
64
  }
package/temp/api.json CHANGED
@@ -2525,6 +2525,87 @@
2525
2525
  "endIndex": 2
2526
2526
  }
2527
2527
  },
2528
+ {
2529
+ "kind": "Interface",
2530
+ "canonicalReference": "@alloy-js/csharp!CSharpFormatOptions:interface",
2531
+ "docComment": "",
2532
+ "excerptTokens": [
2533
+ {
2534
+ "kind": "Content",
2535
+ "text": "export interface CSharpFormatOptions extends "
2536
+ },
2537
+ {
2538
+ "kind": "Reference",
2539
+ "text": "CommonFormatOptions",
2540
+ "canonicalReference": "@alloy-js/core!CommonFormatOptions:interface"
2541
+ },
2542
+ {
2543
+ "kind": "Content",
2544
+ "text": " "
2545
+ }
2546
+ ],
2547
+ "fileUrlPath": "src/contexts/format-options.ts",
2548
+ "releaseTag": "Public",
2549
+ "name": "CSharpFormatOptions",
2550
+ "preserveMemberOrder": false,
2551
+ "members": [],
2552
+ "extendsTokenRanges": [
2553
+ {
2554
+ "startIndex": 1,
2555
+ "endIndex": 2
2556
+ }
2557
+ ]
2558
+ },
2559
+ {
2560
+ "kind": "Variable",
2561
+ "canonicalReference": "@alloy-js/csharp!CSharpFormatOptions:var",
2562
+ "docComment": "",
2563
+ "excerptTokens": [
2564
+ {
2565
+ "kind": "Content",
2566
+ "text": "CSharpFormatOptions: "
2567
+ },
2568
+ {
2569
+ "kind": "Content",
2570
+ "text": "import(\"@alloy-js/core\")."
2571
+ },
2572
+ {
2573
+ "kind": "Reference",
2574
+ "text": "ComponentDefinition",
2575
+ "canonicalReference": "@alloy-js/core!ComponentDefinition:interface"
2576
+ },
2577
+ {
2578
+ "kind": "Content",
2579
+ "text": "<import(\"@alloy-js/core\")."
2580
+ },
2581
+ {
2582
+ "kind": "Reference",
2583
+ "text": "ContextProviderProps",
2584
+ "canonicalReference": "@alloy-js/core!ContextProviderProps:interface"
2585
+ },
2586
+ {
2587
+ "kind": "Content",
2588
+ "text": "<"
2589
+ },
2590
+ {
2591
+ "kind": "Reference",
2592
+ "text": "CSharpFormatOptions",
2593
+ "canonicalReference": "@alloy-js/csharp!CSharpFormatOptions:interface"
2594
+ },
2595
+ {
2596
+ "kind": "Content",
2597
+ "text": ">>"
2598
+ }
2599
+ ],
2600
+ "fileUrlPath": "src/contexts/format-options.ts",
2601
+ "isReadonly": true,
2602
+ "releaseTag": "Public",
2603
+ "name": "CSharpFormatOptions",
2604
+ "variableTypeTokenRange": {
2605
+ "startIndex": 1,
2606
+ "endIndex": 8
2607
+ }
2608
+ },
2528
2609
  {
2529
2610
  "kind": "Class",
2530
2611
  "canonicalReference": "@alloy-js/csharp!CSharpLexicalScope:class",
@@ -3306,6 +3387,41 @@
3306
3387
  "isStatic": false,
3307
3388
  "isProtected": false,
3308
3389
  "isAbstract": false
3390
+ },
3391
+ {
3392
+ "kind": "Property",
3393
+ "canonicalReference": "@alloy-js/csharp!CSharpScope#ownerSymbol:member",
3394
+ "docComment": "",
3395
+ "excerptTokens": [
3396
+ {
3397
+ "kind": "Content",
3398
+ "text": "get ownerSymbol(): "
3399
+ },
3400
+ {
3401
+ "kind": "Reference",
3402
+ "text": "CSharpSymbol",
3403
+ "canonicalReference": "@alloy-js/csharp!CSharpSymbol:class"
3404
+ },
3405
+ {
3406
+ "kind": "Content",
3407
+ "text": " | undefined"
3408
+ },
3409
+ {
3410
+ "kind": "Content",
3411
+ "text": ";"
3412
+ }
3413
+ ],
3414
+ "isReadonly": true,
3415
+ "isOptional": false,
3416
+ "releaseTag": "Public",
3417
+ "name": "ownerSymbol",
3418
+ "propertyTypeTokenRange": {
3419
+ "startIndex": 1,
3420
+ "endIndex": 3
3421
+ },
3422
+ "isStatic": false,
3423
+ "isProtected": false,
3424
+ "isAbstract": false
3309
3425
  }
3310
3426
  ],
3311
3427
  "extendsTokenRange": {
@@ -3859,6 +3975,36 @@
3859
3975
  "isProtected": false,
3860
3976
  "isAbstract": false
3861
3977
  },
3978
+ {
3979
+ "kind": "Property",
3980
+ "canonicalReference": "@alloy-js/csharp!CSharpSymbol#isNullable:member",
3981
+ "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",
3982
+ "excerptTokens": [
3983
+ {
3984
+ "kind": "Content",
3985
+ "text": "get isNullable(): "
3986
+ },
3987
+ {
3988
+ "kind": "Content",
3989
+ "text": "boolean"
3990
+ },
3991
+ {
3992
+ "kind": "Content",
3993
+ "text": ";\n\nset isNullable(value: boolean);"
3994
+ }
3995
+ ],
3996
+ "isReadonly": false,
3997
+ "isOptional": false,
3998
+ "releaseTag": "Public",
3999
+ "name": "isNullable",
4000
+ "propertyTypeTokenRange": {
4001
+ "startIndex": 1,
4002
+ "endIndex": 2
4003
+ },
4004
+ "isStatic": false,
4005
+ "isProtected": false,
4006
+ "isAbstract": false
4007
+ },
3862
4008
  {
3863
4009
  "kind": "Property",
3864
4010
  "canonicalReference": "@alloy-js/csharp!CSharpSymbol#isOverride:member",
@@ -4179,6 +4325,33 @@
4179
4325
  "endIndex": 2
4180
4326
  }
4181
4327
  },
4328
+ {
4329
+ "kind": "PropertySignature",
4330
+ "canonicalReference": "@alloy-js/csharp!CSharpSymbolOptions#isNullable:member",
4331
+ "docComment": "/**\n * Whether the value held by this symbol could be null.\n */\n",
4332
+ "excerptTokens": [
4333
+ {
4334
+ "kind": "Content",
4335
+ "text": "isNullable?: "
4336
+ },
4337
+ {
4338
+ "kind": "Content",
4339
+ "text": "boolean"
4340
+ },
4341
+ {
4342
+ "kind": "Content",
4343
+ "text": ";"
4344
+ }
4345
+ ],
4346
+ "isReadonly": false,
4347
+ "isOptional": true,
4348
+ "releaseTag": "Public",
4349
+ "name": "isNullable",
4350
+ "propertyTypeTokenRange": {
4351
+ "startIndex": 1,
4352
+ "endIndex": 2
4353
+ }
4354
+ },
4182
4355
  {
4183
4356
  "kind": "PropertySignature",
4184
4357
  "canonicalReference": "@alloy-js/csharp!CSharpSymbolOptions#isOverride:member",
@@ -8076,6 +8249,163 @@
8076
8249
  }
8077
8250
  ]
8078
8251
  },
8252
+ {
8253
+ "kind": "Function",
8254
+ "canonicalReference": "@alloy-js/csharp!InvocationExpression:function(1)",
8255
+ "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",
8256
+ "excerptTokens": [
8257
+ {
8258
+ "kind": "Content",
8259
+ "text": "export declare function InvocationExpression(props: "
8260
+ },
8261
+ {
8262
+ "kind": "Reference",
8263
+ "text": "InvocationExpressionProps",
8264
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps:interface"
8265
+ },
8266
+ {
8267
+ "kind": "Content",
8268
+ "text": "): "
8269
+ },
8270
+ {
8271
+ "kind": "Reference",
8272
+ "text": "Children",
8273
+ "canonicalReference": "@alloy-js/core!Children:type"
8274
+ },
8275
+ {
8276
+ "kind": "Content",
8277
+ "text": ";"
8278
+ }
8279
+ ],
8280
+ "fileUrlPath": "src/components/invocation-expression/invocation-expression.tsx",
8281
+ "returnTypeTokenRange": {
8282
+ "startIndex": 3,
8283
+ "endIndex": 4
8284
+ },
8285
+ "releaseTag": "Public",
8286
+ "overloadIndex": 1,
8287
+ "parameters": [
8288
+ {
8289
+ "parameterName": "props",
8290
+ "parameterTypeTokenRange": {
8291
+ "startIndex": 1,
8292
+ "endIndex": 2
8293
+ },
8294
+ "isOptional": false
8295
+ }
8296
+ ],
8297
+ "name": "InvocationExpression"
8298
+ },
8299
+ {
8300
+ "kind": "Interface",
8301
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps:interface",
8302
+ "docComment": "",
8303
+ "excerptTokens": [
8304
+ {
8305
+ "kind": "Content",
8306
+ "text": "export interface InvocationExpressionProps "
8307
+ }
8308
+ ],
8309
+ "fileUrlPath": "src/components/invocation-expression/invocation-expression.tsx",
8310
+ "releaseTag": "Public",
8311
+ "name": "InvocationExpressionProps",
8312
+ "preserveMemberOrder": false,
8313
+ "members": [
8314
+ {
8315
+ "kind": "PropertySignature",
8316
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps#args:member",
8317
+ "docComment": "/**\n * Arguments to pass to the invocation.\n */\n",
8318
+ "excerptTokens": [
8319
+ {
8320
+ "kind": "Content",
8321
+ "text": "args?: "
8322
+ },
8323
+ {
8324
+ "kind": "Reference",
8325
+ "text": "Children",
8326
+ "canonicalReference": "@alloy-js/core!Children:type"
8327
+ },
8328
+ {
8329
+ "kind": "Content",
8330
+ "text": "[]"
8331
+ },
8332
+ {
8333
+ "kind": "Content",
8334
+ "text": ";"
8335
+ }
8336
+ ],
8337
+ "isReadonly": false,
8338
+ "isOptional": true,
8339
+ "releaseTag": "Public",
8340
+ "name": "args",
8341
+ "propertyTypeTokenRange": {
8342
+ "startIndex": 1,
8343
+ "endIndex": 3
8344
+ }
8345
+ },
8346
+ {
8347
+ "kind": "PropertySignature",
8348
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps#target:member",
8349
+ "docComment": "",
8350
+ "excerptTokens": [
8351
+ {
8352
+ "kind": "Content",
8353
+ "text": "target: "
8354
+ },
8355
+ {
8356
+ "kind": "Reference",
8357
+ "text": "Children",
8358
+ "canonicalReference": "@alloy-js/core!Children:type"
8359
+ },
8360
+ {
8361
+ "kind": "Content",
8362
+ "text": ";"
8363
+ }
8364
+ ],
8365
+ "isReadonly": false,
8366
+ "isOptional": false,
8367
+ "releaseTag": "Public",
8368
+ "name": "target",
8369
+ "propertyTypeTokenRange": {
8370
+ "startIndex": 1,
8371
+ "endIndex": 2
8372
+ }
8373
+ },
8374
+ {
8375
+ "kind": "PropertySignature",
8376
+ "canonicalReference": "@alloy-js/csharp!InvocationExpressionProps#typeArgs:member",
8377
+ "docComment": "/**\n * Generic type arguments for the invocation.\n */\n",
8378
+ "excerptTokens": [
8379
+ {
8380
+ "kind": "Content",
8381
+ "text": "typeArgs?: "
8382
+ },
8383
+ {
8384
+ "kind": "Reference",
8385
+ "text": "Children",
8386
+ "canonicalReference": "@alloy-js/core!Children:type"
8387
+ },
8388
+ {
8389
+ "kind": "Content",
8390
+ "text": "[]"
8391
+ },
8392
+ {
8393
+ "kind": "Content",
8394
+ "text": ";"
8395
+ }
8396
+ ],
8397
+ "isReadonly": false,
8398
+ "isOptional": true,
8399
+ "releaseTag": "Public",
8400
+ "name": "typeArgs",
8401
+ "propertyTypeTokenRange": {
8402
+ "startIndex": 1,
8403
+ "endIndex": 3
8404
+ }
8405
+ }
8406
+ ],
8407
+ "extendsTokenRanges": []
8408
+ },
8079
8409
  {
8080
8410
  "kind": "Interface",
8081
8411
  "canonicalReference": "@alloy-js/csharp!LeixcalScopePropsWithScopeInfo:interface",
@@ -10592,34 +10922,6 @@
10592
10922
  "endIndex": 2
10593
10923
  }
10594
10924
  },
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
10925
  {
10624
10926
  "kind": "PropertySignature",
10625
10927
  "canonicalReference": "@alloy-js/csharp!ParameterProps#type:member",
@@ -11491,9 +11793,14 @@
11491
11793
  "kind": "Content",
11492
11794
  "text": "name: "
11493
11795
  },
11796
+ {
11797
+ "kind": "Reference",
11798
+ "text": "Namekey",
11799
+ "canonicalReference": "@alloy-js/core!Namekey:interface"
11800
+ },
11494
11801
  {
11495
11802
  "kind": "Content",
11496
- "text": "string"
11803
+ "text": " | string"
11497
11804
  },
11498
11805
  {
11499
11806
  "kind": "Content",
@@ -11506,7 +11813,7 @@
11506
11813
  "name": "name",
11507
11814
  "propertyTypeTokenRange": {
11508
11815
  "startIndex": 1,
11509
- "endIndex": 2
11816
+ "endIndex": 3
11510
11817
  }
11511
11818
  },
11512
11819
  {
@@ -11970,7 +12277,16 @@
11970
12277
  },
11971
12278
  {
11972
12279
  "kind": "Content",
11973
- "text": "() => [string, "
12280
+ "text": "() => ["
12281
+ },
12282
+ {
12283
+ "kind": "Reference",
12284
+ "text": "Children",
12285
+ "canonicalReference": "@alloy-js/core!Children:type"
12286
+ },
12287
+ {
12288
+ "kind": "Content",
12289
+ "text": ", "
11974
12290
  },
11975
12291
  {
11976
12292
  "kind": "Reference",
@@ -11986,10 +12302,10 @@
11986
12302
  "text": ";"
11987
12303
  }
11988
12304
  ],
11989
- "fileUrlPath": "src/symbols/reference.ts",
12305
+ "fileUrlPath": "src/symbols/reference.tsx",
11990
12306
  "returnTypeTokenRange": {
11991
12307
  "startIndex": 3,
11992
- "endIndex": 6
12308
+ "endIndex": 8
11993
12309
  },
11994
12310
  "releaseTag": "Public",
11995
12311
  "overloadIndex": 1,
@@ -12126,7 +12442,7 @@
12126
12442
  "text": ";"
12127
12443
  }
12128
12444
  ],
12129
- "fileUrlPath": "src/components/SourceFile.tsx",
12445
+ "fileUrlPath": "src/components/source-file/source-file.tsx",
12130
12446
  "returnTypeTokenRange": {
12131
12447
  "startIndex": 3,
12132
12448
  "endIndex": 4
@@ -12152,10 +12468,19 @@
12152
12468
  "excerptTokens": [
12153
12469
  {
12154
12470
  "kind": "Content",
12155
- "text": "export interface SourceFileProps "
12471
+ "text": "export interface SourceFileProps extends "
12472
+ },
12473
+ {
12474
+ "kind": "Reference",
12475
+ "text": "CSharpFormatOptions",
12476
+ "canonicalReference": "@alloy-js/csharp!CSharpFormatOptions:interface"
12477
+ },
12478
+ {
12479
+ "kind": "Content",
12480
+ "text": " "
12156
12481
  }
12157
12482
  ],
12158
- "fileUrlPath": "src/components/SourceFile.tsx",
12483
+ "fileUrlPath": "src/components/source-file/source-file.tsx",
12159
12484
  "releaseTag": "Public",
12160
12485
  "name": "SourceFileProps",
12161
12486
  "preserveMemberOrder": false,
@@ -12243,7 +12568,12 @@
12243
12568
  }
12244
12569
  }
12245
12570
  ],
12246
- "extendsTokenRanges": []
12571
+ "extendsTokenRanges": [
12572
+ {
12573
+ "startIndex": 1,
12574
+ "endIndex": 2
12575
+ }
12576
+ ]
12247
12577
  },
12248
12578
  {
12249
12579
  "kind": "Function",
@@ -12795,6 +13125,62 @@
12795
13125
  ],
12796
13126
  "extendsTokenRanges": []
12797
13127
  },
13128
+ {
13129
+ "kind": "Function",
13130
+ "canonicalReference": "@alloy-js/csharp!useCsharpFormatOptions:function(1)",
13131
+ "docComment": "",
13132
+ "excerptTokens": [
13133
+ {
13134
+ "kind": "Content",
13135
+ "text": "useCsharpFormatOptions: (overrides?: "
13136
+ },
13137
+ {
13138
+ "kind": "Reference",
13139
+ "text": "Partial",
13140
+ "canonicalReference": "!Partial:type"
13141
+ },
13142
+ {
13143
+ "kind": "Content",
13144
+ "text": "<"
13145
+ },
13146
+ {
13147
+ "kind": "Reference",
13148
+ "text": "CSharpFormatOptions",
13149
+ "canonicalReference": "@alloy-js/csharp!CSharpFormatOptions:interface"
13150
+ },
13151
+ {
13152
+ "kind": "Content",
13153
+ "text": "> | undefined"
13154
+ },
13155
+ {
13156
+ "kind": "Content",
13157
+ "text": ") => "
13158
+ },
13159
+ {
13160
+ "kind": "Reference",
13161
+ "text": "CSharpFormatOptions",
13162
+ "canonicalReference": "@alloy-js/csharp!CSharpFormatOptions:interface"
13163
+ }
13164
+ ],
13165
+ "fileUrlPath": "src/contexts/format-options.ts",
13166
+ "returnTypeTokenRange": {
13167
+ "startIndex": 6,
13168
+ "endIndex": 7
13169
+ },
13170
+ "releaseTag": "Public",
13171
+ "overloadIndex": 1,
13172
+ "parameters": [
13173
+ {
13174
+ "parameterName": "overrides",
13175
+ "parameterTypeTokenRange": {
13176
+ "startIndex": 1,
13177
+ "endIndex": 5
13178
+ },
13179
+ "isOptional": true
13180
+ }
13181
+ ],
13182
+ "name": "useCsharpFormatOptions"
13183
+ },
12798
13184
  {
12799
13185
  "kind": "Function",
12800
13186
  "canonicalReference": "@alloy-js/csharp!useCSharpNamePolicy:function(1)",
@@ -1 +0,0 @@
1
- {"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAKT,MAAM,gBAAgB,CAAC;AASxB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAqDhD"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["Block","computed","SourceFile","CoreSourceFile","Scope","useBinder","getGlobalNamespace","useNamespaceContext","CSharpSourceFileScope","NamespaceScopes","Reference","UsingDirective","props","sourceFileScope","path","nsContext","globalNs","nsSymbol","symbol","nsRef","name","undefined","usings","Array","from","concat","using","content","_$createComponent","children","filetype","reference","tabWidth","printWidth","value","_$memo","size","length","namespaces","_$createIntrinsic","hasBlockNamespace"],"sources":["../../../src/components/SourceFile.tsx"],"sourcesContent":[null],"mappings":";AAAA,SACEA,KAAK,EAELC,QAAQ,EACRC,UAAU,IAAIC,cAAc,EAC5BC,KAAK,EACLC,SAAS,QACJ,gBAAgB;AACvB,SAASC,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,qBAAqB,QAAQ,0BAA0B;AAEhE,SAASC,eAAe;AACxB,SAASC,SAAS;AAClB,SAASC,cAAc;;AAEvB;AACA;AACA;;AAeA;AACA,OAAO,SAAST,UAAUA,CAACU,KAAsB,EAAE;EACjD,MAAMC,eAAe,GAAG,IAAIL,qBAAqB,CAACI,KAAK,CAACE,IAAI,CAAC;EAE7D,MAAMC,SAAS,GAAGR,mBAAmB,CAAC,CAAC;EACvC,MAAMS,QAAQ,GAAGV,kBAAkB,CAACD,SAAS,CAAC,CAAC,CAAC;EAChD,MAAMY,QAAQ,GAAGF,SAAS,GAAGA,SAAS,CAACG,MAAM,GAAGF,QAAQ;EACxD,MAAMG,KAAK,GAAGJ,SAAS,GAAGA,SAAS,CAACG,MAAM,CAACE,IAAI,GAAGC,SAAS;EAC3D,MAAMC,MAAM,GAAGrB,QAAQ,CAAC,MAAM;IAC5B,OACEsB,KAAK,CAACC,IAAI,CAACX,eAAe,CAACS,MAAM,CAAC,CAClCG,MAAM,CAACb,KAAK,CAACc,KAAK,IAAI,EAAE,CAAC;EAC7B,CAAC,CAAC;EAEF,MAAMC,OAAO,GAAG1B,QAAQ,CAAC,MAAA2B,iBAAA,CACtBnB,eAAe;IAACS,MAAM,EAAED,QAAQ;IAAA,IAAAY,SAAA;MAAA,OAAGjB,KAAK,CAACiB,QAAQ;IAAA;EAAA,EACnD,CAAC;EACF,OAAAD,iBAAA,CACGzB,cAAc;IAAA,IACbW,IAAIA,CAAA;MAAA,OAAEF,KAAK,CAACE,IAAI;IAAA;IAChBgB,QAAQ;IACRC,SAAS,EAAErB,SAAS;IACpBsB,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,GAAG;IAAA,IAAAJ,SAAA;MAAA,OAAAD,iBAAA,CAEdxB,KAAK;QAAC8B,KAAK,EAAErB,eAAe;QAAA,IAAAgB,SAAA;UAAA,QAAAM,MAAA,OAC1BA,MAAA,UAACtB,eAAe,CAACS,MAAM,CAACc,IAAI,GAAG,CAAC,IAC9BxB,KAAK,CAACc,KAAK,IAAId,KAAK,CAACc,KAAK,CAACW,MAAM,GAAG,CAAE,SAAAT,iBAAA,CAEpCjB,cAAc;YAAA,IAAC2B,UAAUA,CAAA;cAAA,OAAEhB,MAAM,CAACY,KAAK;YAAA;UAAA,IAAAK,iBAAA,aAAAA,iBAAA,YAI3C,GAAAJ,MAAA,OACAlB,QAAQ,KAAKD,QAAQ,GACpBW,OAAO,kBAEMR,KAAK,EAAAgB,MAAA,OACfA,MAAA,SAAAtB,eAAe,CAAC2B,iBAAiB,OAE7B,GAAG,EAAAZ,iBAAA,CACH5B,KAAK;YAAA6B,QAAA,EAAEF;UAAO,YAAAY,iBAAA,aAAAA,iBAAA,aAKdZ,OAAO,CACP,EAEJ;QAAA;MAAA;IAAA;EAAA;AAKb","ignoreList":[]}