@alloy-js/go 0.3.3 → 0.3.4-dev.4

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 (50) hide show
  1. package/docs/api/components/FunctionDeclaration.md +13 -13
  2. package/docs/api/components/FunctionParameter.md +8 -8
  3. package/docs/api/components/FunctionReceiver.md +8 -8
  4. package/docs/api/components/InterfaceFunction.md +9 -9
  5. package/docs/api/components/InterfaceTypeDeclaration.md +15 -17
  6. package/docs/api/components/Reference.md +25 -0
  7. package/docs/api/components/SourceDirectory.md +3 -1
  8. package/docs/api/components/SourceFile.md +3 -3
  9. package/docs/api/components/StructMember.md +9 -9
  10. package/docs/api/components/StructTypeDeclaration.md +15 -17
  11. package/docs/api/components/TypeDeclaration.md +11 -11
  12. package/docs/api/components/TypeParameter.md +7 -7
  13. package/docs/api/components/VariableDeclaration.md +10 -10
  14. package/docs/api/components/index.md +1 -0
  15. package/docs/api/contexts/TypeDeclarationGroup-context.md +1 -1
  16. package/docs/api/contexts/VariableDeclarationGroup-context.md +1 -1
  17. package/docs/api/contexts/index.md +2 -2
  18. package/docs/api/functions/createAnonymousTypeSymbol.md +13 -3
  19. package/docs/api/functions/createFunctionSymbol.md +18 -18
  20. package/docs/api/functions/createInterfaceMemberSymbol.md +18 -8
  21. package/docs/api/functions/createNestedStructSymbol.md +19 -9
  22. package/docs/api/functions/createParameterSymbol.md +17 -17
  23. package/docs/api/functions/createPropertySymbol.md +17 -17
  24. package/docs/api/functions/createStructMemberSymbol.md +18 -8
  25. package/docs/api/functions/createTypeParameterSymbol.md +15 -5
  26. package/docs/api/functions/createTypeSymbol.md +19 -9
  27. package/docs/api/functions/createVariableSymbol.md +17 -17
  28. package/docs/api/index.md +2 -2
  29. package/docs/api/types/CreateTypeParameterSymbolOptions.md +2 -0
  30. package/docs/api/types/FunctionSymbol.md +5 -5
  31. package/docs/api/types/GoFunctionScope.md +16 -6
  32. package/docs/api/types/GoLexicalScope.md +15 -5
  33. package/docs/api/types/GoModuleScope.md +14 -4
  34. package/docs/api/types/GoNamedTypeScope.md +8 -8
  35. package/docs/api/types/GoPackageScope.md +6 -4
  36. package/docs/api/types/GoScope.md +14 -4
  37. package/docs/api/types/GoSourceFileScope.md +17 -7
  38. package/docs/api/types/GoSymbol.md +7 -7
  39. package/docs/api/types/NamedTypeSymbol.md +9 -9
  40. package/docs/api/types/NamedTypeSymbolOptions.md +2 -0
  41. package/docs/api/types/PackageSymbol.md +7 -7
  42. package/docs/api/types/ResolveDescriptor.md +1 -3
  43. package/docs/api/types/index.md +8 -9
  44. package/docs/api/variables/index.md +1 -1
  45. package/docs/api/variables/std.md +1 -2459
  46. package/package.json +7 -9
  47. package/api-extractor.json +0 -4
  48. package/docs/api/types/ReferenceProps.md +0 -7
  49. package/temp/api.json +0 -10280
  50. package/tsdoc-metadata.json +0 -11
@@ -8,7 +8,7 @@
8
8
 
9
9
  <FunctionDeclaration
10
10
  doc={Children}
11
- name={string | Namekey}
11
+ name={string | Namekey<NamekeyOptions>}
12
12
  parameters={FunctionParameterProps[]}
13
13
  receiver={Children}
14
14
  refkey={Refkey}
@@ -28,7 +28,7 @@
28
28
 
29
29
  FunctionDeclaration({
30
30
  doc: Children,
31
- name: string | Namekey,
31
+ name: string | Namekey<NamekeyOptions>,
32
32
  parameters: FunctionParameterProps[],
33
33
  receiver: Children,
34
34
  refkey: Refkey,
@@ -40,14 +40,14 @@
40
40
 
41
41
  ## Props
42
42
 
43
- | | | |
44
- | -------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
- | children | optional[Children](../../../core/types/children/) | |
46
- | doc | optional[Children](../../../core/types/children/) | Doc comment |
47
- | name | string \| [Namekey](../../../core/types/namekey/) | |
48
- | parameters | optional[FunctionParameterProps](../functionparameter/)\[] | |
49
- | receiver | optional[Children](../../../core/types/children/) | Go receiver (for methods) |
50
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
51
- | returns | optional[Children](../../../core/types/children/) | |
52
- | singleLine | optional boolean | Whether to render the function in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
53
- | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters for generic functions |
43
+ | | | |
44
+ | -------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
+ | children | optional[Children](../../../core/types/children/) | |
46
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
47
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
48
+ | parameters | optional[FunctionParameterProps](../functionparameter/)\[] | |
49
+ | receiver | optional[Children](../../../core/types/children/) | Go receiver (for methods) |
50
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
51
+ | returns | optional[Children](../../../core/types/children/) | |
52
+ | singleLine | optional boolean | Whether to render the function in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
53
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters for generic functions |
@@ -9,7 +9,7 @@ Define a parameter to be used in functions.
9
9
 
10
10
 
11
11
  <FunctionParameter
12
- name={string | Namekey}
12
+ name={string | Namekey<NamekeyOptions>}
13
13
  refkey={Refkey}
14
14
  type={Children}
15
15
  variadic
@@ -23,7 +23,7 @@ Define a parameter to be used in functions.
23
23
 
24
24
 
25
25
  FunctionParameter({
26
- name: string | Namekey,
26
+ name: string | Namekey<NamekeyOptions>,
27
27
  refkey: Refkey,
28
28
  type: Children,
29
29
  variadic: boolean,
@@ -32,9 +32,9 @@ Define a parameter to be used in functions.
32
32
 
33
33
  ## Props
34
34
 
35
- | | | |
36
- | -------- | ------------------------------------------------- | - |
37
- | name | string \| [Namekey](../../../core/types/namekey/) | |
38
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
39
- | type | [Children](../../../core/types/children/) | |
40
- | variadic | optional boolean | |
35
+ | | | |
36
+ | -------- | -------------------------------------------------------------------------------------------------------- | - |
37
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
38
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
39
+ | type | [Children](../../../core/types/children/) | |
40
+ | variadic | optional boolean | |
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  <FunctionReceiver
10
- name={string | Namekey}
10
+ name={string | Namekey<NamekeyOptions>}
11
11
  refkey={Refkey}
12
12
  type={Children}
13
13
  typeParameters={TypeParameterProps[]}
@@ -21,7 +21,7 @@
21
21
 
22
22
 
23
23
  FunctionReceiver({
24
- name: string | Namekey,
24
+ name: string | Namekey<NamekeyOptions>,
25
25
  refkey: Refkey,
26
26
  type: Children,
27
27
  typeParameters: TypeParameterProps[],
@@ -30,9 +30,9 @@
30
30
 
31
31
  ## Props
32
32
 
33
- | | | |
34
- | -------------- | -------------------------------------------------- | - |
35
- | name | string \| [Namekey](../../../core/types/namekey/) | |
36
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
37
- | type | [Children](../../../core/types/children/) | |
38
- | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | |
33
+ | | | |
34
+ | -------------- | -------------------------------------------------------------------------------------------------------- | - |
35
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
36
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
37
+ | type | [Children](../../../core/types/children/) | |
38
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | |
@@ -8,7 +8,7 @@
8
8
 
9
9
  <InterfaceFunction
10
10
  doc={Children}
11
- name={string | Namekey}
11
+ name={string | Namekey<NamekeyOptions>}
12
12
  parameters={FunctionParameterProps[]}
13
13
  refkey={Refkey}
14
14
  returns={Children}
@@ -23,7 +23,7 @@
23
23
 
24
24
  InterfaceFunction({
25
25
  doc: Children,
26
- name: string | Namekey,
26
+ name: string | Namekey<NamekeyOptions>,
27
27
  parameters: FunctionParameterProps[],
28
28
  refkey: Refkey,
29
29
  returns: Children,
@@ -32,10 +32,10 @@
32
32
 
33
33
  ## Props
34
34
 
35
- | | | |
36
- | ---------- | ---------------------------------------------------------- | ----------- |
37
- | doc | optional[Children](../../../core/types/children/) | Doc comment |
38
- | name | string \| [Namekey](../../../core/types/namekey/) | |
39
- | parameters | optional[FunctionParameterProps](../functionparameter/)\[] | |
40
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
41
- | returns | optional[Children](../../../core/types/children/) | |
35
+ | | | |
36
+ | ---------- | -------------------------------------------------------------------------------------------------------- | ----------- |
37
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
38
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
39
+ | parameters | optional[FunctionParameterProps](../functionparameter/)\[] | |
40
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
41
+ | returns | optional[Children](../../../core/types/children/) | |
@@ -13,13 +13,14 @@ Properties for creating a named interface type declaration. This is a combinatio
13
13
  <InterfaceTypeDeclaration
14
14
  alias
15
15
  doc={Children}
16
- name={string | Namekey}
17
- refkey={Refkey}
16
+ name={string | Namekey<NamekeyOptions>}
18
17
  refkey={Refkey}
19
18
  singleLine
20
19
  symbol={NamedTypeSymbol}
21
20
  typeParameters={TypeParameterProps[]}
22
- />
21
+ >
22
+ {children}
23
+ </InterfaceTypeDeclaration>
23
24
  ```
24
25
 
25
26
  * stc
@@ -31,8 +32,7 @@ Properties for creating a named interface type declaration. This is a combinatio
31
32
  InterfaceTypeDeclaration({
32
33
  alias: boolean,
33
34
  doc: Children,
34
- name: string | Namekey,
35
- refkey: Refkey,
35
+ name: string | Namekey<NamekeyOptions>,
36
36
  refkey: Refkey,
37
37
  singleLine: boolean,
38
38
  symbol: NamedTypeSymbol,
@@ -42,15 +42,13 @@ Properties for creating a named interface type declaration. This is a combinatio
42
42
 
43
43
  ## Props
44
44
 
45
- | | | |
46
- | -------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
- | alias | optional boolean | Whether the type is an alias |
48
- | children | optional[Children](../../../core/types/children/) | |
49
- | children | optional[Children](../../../core/types/children/) | Type expression |
50
- | doc | optional[Children](../../../core/types/children/) | Documentation comment |
51
- | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
52
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
53
- | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
54
- | singleLine | optional boolean | Whether to render the interface in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
55
- | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
56
- | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
45
+ | | | |
46
+ | -------------- | -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
+ | alias | optional boolean | Whether the type is an alias |
48
+ | children | optional[Children](../../../core/types/children/) | Type expression |
49
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
50
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | Type name |
51
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
52
+ | singleLine | optional boolean | Whether to render the interface in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
53
+ | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
54
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
@@ -0,0 +1,25 @@
1
+ # Reference
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { Reference } from "@alloy-js/go";
7
+
8
+
9
+ <Reference refkey={Refkey} />
10
+ ```
11
+
12
+ * stc
13
+
14
+ ```ts
15
+ import { Reference } from "@alloy-js/go/stc";
16
+
17
+
18
+ Reference({ refkey: Refkey }).children(children)
19
+ ```
20
+
21
+ ## Props
22
+
23
+ | | | |
24
+ | ------ | ------------------------------------- | - |
25
+ | refkey | [Refkey](../../../core/types/refkey/) | |
@@ -6,7 +6,9 @@
6
6
  import { SourceDirectory } from "@alloy-js/go";
7
7
 
8
8
 
9
- <SourceDirectory name="string" path="string" />
9
+ <SourceDirectory name="string" path="string">
10
+ {children}
11
+ </SourceDirectory>
10
12
  ```
11
13
 
12
14
  * stc
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  <SourceFile
10
- export={boolean | string}
10
+ export={string | boolean}
11
11
  header={Children}
12
12
  headerComment="string"
13
13
  package="string"
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
  SourceFile({
27
- export: boolean | string,
27
+ export: string | boolean,
28
28
  header: Children,
29
29
  headerComment: string,
30
30
  package: string,
@@ -37,7 +37,7 @@
37
37
  | | | |
38
38
  | ------------- | ------------------------------------------------- | - |
39
39
  | children | optional[Children](../../../core/types/children/) | |
40
- | export | optional boolean \| string | |
40
+ | export | optional string \| boolean | |
41
41
  | header | optional[Children](../../../core/types/children/) | |
42
42
  | headerComment | optional string | |
43
43
  | package | optional string | |
@@ -8,7 +8,7 @@
8
8
 
9
9
  <StructMember
10
10
  doc={Children}
11
- name={string | Namekey}
11
+ name={string | Namekey<NamekeyOptions>}
12
12
  refkey={Refkey}
13
13
  tag={string | Record<string, string>}
14
14
  type={Children}
@@ -23,7 +23,7 @@
23
23
 
24
24
  StructMember({
25
25
  doc: Children,
26
- name: string | Namekey,
26
+ name: string | Namekey<NamekeyOptions>,
27
27
  refkey: Refkey,
28
28
  tag: string | Record<string, string>,
29
29
  type: Children,
@@ -32,10 +32,10 @@
32
32
 
33
33
  ## Props
34
34
 
35
- | | | |
36
- | ------ | ------------------------------------------------- | ----------- |
37
- | doc | optional[Children](../../../core/types/children/) | Doc comment |
38
- | name | string \| [Namekey](../../../core/types/namekey/) | |
39
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
40
- | tag | optional string \| Record\<string, string> | |
41
- | type | [Children](../../../core/types/children/) | |
35
+ | | | |
36
+ | ------ | -------------------------------------------------------------------------------------------------------- | ----------- |
37
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
38
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
39
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
40
+ | tag | optional string \| Record\<string, string> | |
41
+ | type | [Children](../../../core/types/children/) | |
@@ -13,13 +13,14 @@ Properties for creating a named struct type declaration. This is a combination o
13
13
  <StructTypeDeclaration
14
14
  alias
15
15
  doc={Children}
16
- name={string | Namekey}
17
- refkey={Refkey}
16
+ name={string | Namekey<NamekeyOptions>}
18
17
  refkey={Refkey}
19
18
  singleLine
20
19
  symbol={NamedTypeSymbol}
21
20
  typeParameters={TypeParameterProps[]}
22
- />
21
+ >
22
+ {children}
23
+ </StructTypeDeclaration>
23
24
  ```
24
25
 
25
26
  * stc
@@ -31,8 +32,7 @@ Properties for creating a named struct type declaration. This is a combination o
31
32
  StructTypeDeclaration({
32
33
  alias: boolean,
33
34
  doc: Children,
34
- name: string | Namekey,
35
- refkey: Refkey,
35
+ name: string | Namekey<NamekeyOptions>,
36
36
  refkey: Refkey,
37
37
  singleLine: boolean,
38
38
  symbol: NamedTypeSymbol,
@@ -42,15 +42,13 @@ Properties for creating a named struct type declaration. This is a combination o
42
42
 
43
43
  ## Props
44
44
 
45
- | | | |
46
- | -------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
47
- | alias | optional boolean | Whether the type is an alias |
48
- | children | optional[Children](../../../core/types/children/) | |
49
- | children | optional[Children](../../../core/types/children/) | Type expression |
50
- | doc | optional[Children](../../../core/types/children/) | Documentation comment |
51
- | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
52
- | refkey | optional[Refkey](../../../core/types/refkey/) | |
53
- | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
54
- | singleLine | optional boolean | Whether to render the struct in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
55
- | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
56
- | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
45
+ | | | |
46
+ | -------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
47
+ | alias | optional boolean | Whether the type is an alias |
48
+ | children | optional[Children](../../../core/types/children/) | Type expression |
49
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
50
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | Type name |
51
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
52
+ | singleLine | optional boolean | Whether to render the struct in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
53
+ | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
54
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
@@ -9,7 +9,7 @@
9
9
  <TypeDeclaration
10
10
  alias
11
11
  doc={Children}
12
- name={string | Namekey}
12
+ name={string | Namekey<NamekeyOptions>}
13
13
  refkey={Refkey}
14
14
  symbol={NamedTypeSymbol}
15
15
  typeParameters={TypeParameterProps[]}
@@ -27,7 +27,7 @@
27
27
  TypeDeclaration({
28
28
  alias: boolean,
29
29
  doc: Children,
30
- name: string | Namekey,
30
+ name: string | Namekey<NamekeyOptions>,
31
31
  refkey: Refkey,
32
32
  symbol: NamedTypeSymbol,
33
33
  typeParameters: TypeParameterProps[],
@@ -36,12 +36,12 @@
36
36
 
37
37
  ## Props
38
38
 
39
- | | | |
40
- | -------------- | ------------------------------------------------------- | ---------------------------- |
41
- | alias | optional boolean | Whether the type is an alias |
42
- | children | optional[Children](../../../core/types/children/) | Type expression |
43
- | doc | optional[Children](../../../core/types/children/) | Documentation comment |
44
- | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
45
- | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
46
- | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
47
- | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
39
+ | | | |
40
+ | -------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------- |
41
+ | alias | optional boolean | Whether the type is an alias |
42
+ | children | optional[Children](../../../core/types/children/) | Type expression |
43
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
44
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | Type name |
45
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
46
+ | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
47
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
@@ -10,7 +10,7 @@ Information for a Go generic type parameter.
10
10
 
11
11
  <TypeParameter
12
12
  constraint={Children}
13
- name={string | Namekey}
13
+ name={string | Namekey<NamekeyOptions>}
14
14
  refkey={Refkey}
15
15
  />
16
16
  ```
@@ -23,15 +23,15 @@ Information for a Go generic type parameter.
23
23
 
24
24
  TypeParameter({
25
25
  constraint: Children,
26
- name: string | Namekey,
26
+ name: string | Namekey<NamekeyOptions>,
27
27
  refkey: Refkey,
28
28
  }).children(children)
29
29
  ```
30
30
 
31
31
  ## Props
32
32
 
33
- | | | |
34
- | ---------- | ------------------------------------------------- | --------------------------------- |
35
- | constraint | [Children](../../../core/types/children/) | The parameter constraint |
36
- | name | string \| [Namekey](../../../core/types/namekey/) | The name of the type parameter. |
37
- | refkey | optional[Refkey](../../../core/types/refkey/) | A refkey for this type parameter. |
33
+ | | | |
34
+ | ---------- | -------------------------------------------------------------------------------------------------------- | --------------------------------- |
35
+ | constraint | [Children](../../../core/types/children/) | The parameter constraint |
36
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | The name of the type parameter. |
37
+ | refkey | optional[Refkey](../../../core/types/refkey/) | A refkey for this type parameter. |
@@ -9,7 +9,7 @@
9
9
  <VariableDeclaration
10
10
  const
11
11
  doc={Children}
12
- name={string | Namekey}
12
+ name={string | Namekey<NamekeyOptions>}
13
13
  refkey={Refkey}
14
14
  type={Children}
15
15
  >
@@ -26,7 +26,7 @@
26
26
  VariableDeclaration({
27
27
  const: boolean,
28
28
  doc: Children,
29
- name: string | Namekey,
29
+ name: string | Namekey<NamekeyOptions>,
30
30
  refkey: Refkey,
31
31
  type: Children,
32
32
  }).children(children)
@@ -34,11 +34,11 @@
34
34
 
35
35
  ## Props
36
36
 
37
- | | | |
38
- | -------- | ------------------------------------------------- | ------------------------------------- |
39
- | children | optional[Children](../../../core/types/children/) | Initializer expression |
40
- | const | optional boolean | Whether this is a `const` declaration |
41
- | doc | optional[Children](../../../core/types/children/) | Documentation comment |
42
- | name | string \| [Namekey](../../../core/types/namekey/) | Variable name |
43
- | refkey | optional[Refkey](../../../core/types/refkey/) | Variable refkey |
44
- | type | optional[Children](../../../core/types/children/) | Type of the variable declaration |
37
+ | | | |
38
+ | -------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------- |
39
+ | children | optional[Children](../../../core/types/children/) | Initializer expression |
40
+ | const | optional boolean | Whether this is a `const` declaration |
41
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
42
+ | name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | Variable name |
43
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Variable refkey |
44
+ | type | optional[Children](../../../core/types/children/) | Type of the variable declaration |
@@ -13,6 +13,7 @@
13
13
  - [ModuleDirectory](ModuleDirectory.md) — import { ModuleDirectory } from "@alloy-js/go";
14
14
  - [Name](Name.md) — import { Name } from "@alloy-js/go";
15
15
  - [Pointer](Pointer.md) — A Go pointer type that wraps the given type.
16
+ - [Reference](Reference.md) — import { Reference } from "@alloy-js/go";
16
17
  - [SingleImportStatement](SingleImportStatement.md) — import { SingleImportStatement } from "@alloy-js/go";
17
18
  - [SourceDirectory](SourceDirectory.md) — import { SourceDirectory } from "@alloy-js/go";
18
19
  - [SourceFile](SourceFile.md) — import { SourceFile } from "@alloy-js/go";
@@ -1,7 +1,7 @@
1
1
  # TypeDeclarationGroup context
2
2
 
3
3
  ```ts
4
- const TypeDeclarationGroupContext: ComponentContext<TypeDeclarationGroupContext>
4
+ const TypeDeclarationGroupContext: ComponentContext<TypeDeclarationGroupContext>;
5
5
  ```
6
6
 
7
7
  ## Accessor
@@ -1,7 +1,7 @@
1
1
  # VariableDeclarationGroup context
2
2
 
3
3
  ```ts
4
- const VariableDeclarationGroupContext: ComponentContext<VariableDeclarationGroupContext>
4
+ const VariableDeclarationGroupContext: ComponentContext<VariableDeclarationGroupContext>;
5
5
  ```
6
6
 
7
7
  ## Accessor
@@ -1,4 +1,4 @@
1
1
  # go — contexts
2
2
 
3
- - [TypeDeclarationGroup context](TypeDeclarationGroup-context.md) — const TypeDeclarationGroupContext: ComponentContext<TypeDeclarationGroupContext>
4
- - [VariableDeclarationGroup context](VariableDeclarationGroup-context.md) — const VariableDeclarationGroupContext: ComponentContext<VariableDeclarationGroupContext>
3
+ - [TypeDeclarationGroup context](TypeDeclarationGroup-context.md) — const TypeDeclarationGroupContext: ComponentContext<TypeDeclarationGroupContext>;
4
+ - [VariableDeclarationGroup context](VariableDeclarationGroup-context.md) — const VariableDeclarationGroupContext: ComponentContext<VariableDeclarationGroupContext>;
@@ -16,9 +16,19 @@ function createAnonymousTypeSymbol(kind: NamedTypeTypeKind, options?: NamedTypeS
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | -------------- | -------------------------------------------- | - |
21
- | typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
19
+ | | | |
20
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
24
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
25
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
26
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
27
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
28
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
29
+ | transient | optional boolean | Whether this symbol is transient. |
30
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined, [OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
31
+ | typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
22
32
 
23
33
  ## Returns
24
34