@alloy-js/go 0.3.4-dev.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.
- package/docs/api/components/FunctionDeclaration.md +13 -13
- package/docs/api/components/FunctionParameter.md +8 -8
- package/docs/api/components/FunctionReceiver.md +8 -8
- package/docs/api/components/InterfaceFunction.md +9 -9
- package/docs/api/components/InterfaceTypeDeclaration.md +15 -17
- package/docs/api/components/Reference.md +25 -0
- package/docs/api/components/SourceDirectory.md +3 -1
- package/docs/api/components/SourceFile.md +3 -3
- package/docs/api/components/StructMember.md +9 -9
- package/docs/api/components/StructTypeDeclaration.md +15 -17
- package/docs/api/components/TypeDeclaration.md +11 -11
- package/docs/api/components/TypeParameter.md +7 -7
- package/docs/api/components/VariableDeclaration.md +10 -10
- package/docs/api/components/index.md +1 -0
- package/docs/api/contexts/TypeDeclarationGroup-context.md +1 -1
- package/docs/api/contexts/VariableDeclarationGroup-context.md +1 -1
- package/docs/api/contexts/index.md +2 -2
- package/docs/api/functions/createAnonymousTypeSymbol.md +13 -3
- package/docs/api/functions/createFunctionSymbol.md +18 -18
- package/docs/api/functions/createInterfaceMemberSymbol.md +18 -8
- package/docs/api/functions/createNestedStructSymbol.md +19 -9
- package/docs/api/functions/createParameterSymbol.md +17 -17
- package/docs/api/functions/createPropertySymbol.md +17 -17
- package/docs/api/functions/createStructMemberSymbol.md +18 -8
- package/docs/api/functions/createTypeParameterSymbol.md +15 -5
- package/docs/api/functions/createTypeSymbol.md +19 -9
- package/docs/api/functions/createVariableSymbol.md +17 -17
- package/docs/api/index.md +2 -2
- package/docs/api/types/CreateTypeParameterSymbolOptions.md +2 -0
- package/docs/api/types/FunctionSymbol.md +5 -5
- package/docs/api/types/GoFunctionScope.md +16 -6
- package/docs/api/types/GoLexicalScope.md +15 -5
- package/docs/api/types/GoModuleScope.md +14 -4
- package/docs/api/types/GoNamedTypeScope.md +8 -8
- package/docs/api/types/GoPackageScope.md +6 -4
- package/docs/api/types/GoScope.md +14 -4
- package/docs/api/types/GoSourceFileScope.md +17 -7
- package/docs/api/types/GoSymbol.md +7 -7
- package/docs/api/types/NamedTypeSymbol.md +9 -9
- package/docs/api/types/NamedTypeSymbolOptions.md +2 -0
- package/docs/api/types/PackageSymbol.md +7 -7
- package/docs/api/types/ResolveDescriptor.md +1 -3
- package/docs/api/types/index.md +8 -9
- package/docs/api/variables/index.md +1 -1
- package/docs/api/variables/std.md +1 -2459
- package/package.json +3 -5
- package/api-extractor.json +0 -4
- package/docs/api/types/ReferenceProps.md +0 -7
- package/temp/api.json +0 -10280
- package/tsdoc-metadata.json +0 -11
|
@@ -4,31 +4,31 @@
|
|
|
4
4
|
import { createFunctionSymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createFunctionSymbol(originalName: string | Namekey
|
|
7
|
+
function createFunctionSymbol(originalName: string | Namekey<NamekeyOptions>, isMethod: boolean, options?: GoSymbolOptions): FunctionSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ------------ |
|
|
14
|
-
| originalName | string \| Namekey
|
|
15
|
-
| isMethod | boolean
|
|
16
|
-
| options | optional GoSymbolOptions
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ---------------------------------- | - |
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
|
+
| isMethod | boolean | |
|
|
16
|
+
| options | optional GoSymbolOptions | |
|
|
17
17
|
|
|
18
18
|
## Options
|
|
19
19
|
|
|
20
|
-
| |
|
|
21
|
-
| --------------------- |
|
|
22
|
-
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/)
|
|
23
|
-
| binder | optional[Binder](../../../core/types/binder/)
|
|
24
|
-
| ignoreNameConflict | optional boolean
|
|
25
|
-
| ignoreNamePolicy | optional boolean
|
|
26
|
-
| lazyMemberInitializer | optional () => void
|
|
27
|
-
| metadata | optional Record\<string, unknown>
|
|
28
|
-
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/)
|
|
29
|
-
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[]
|
|
30
|
-
| transient | optional boolean
|
|
31
|
-
| type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[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. |
|
|
20
|
+
| | | |
|
|
21
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
|
|
23
|
+
| 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. |
|
|
24
|
+
| 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. |
|
|
25
|
+
| 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. |
|
|
26
|
+
| 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. |
|
|
27
|
+
| metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
|
|
28
|
+
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
|
|
29
|
+
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
|
|
30
|
+
| transient | optional boolean | Whether this symbol is transient. |
|
|
31
|
+
| 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. |
|
|
32
32
|
|
|
33
33
|
## Returns
|
|
34
34
|
|
|
@@ -4,21 +4,31 @@
|
|
|
4
4
|
import { createInterfaceMemberSymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createInterfaceMemberSymbol(originalName: string | Namekey
|
|
7
|
+
function createInterfaceMemberSymbol(originalName: string | Namekey<NamekeyOptions>, options?: NamedTypeSymbolOptions): NamedTypeSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ------------ |
|
|
14
|
-
| originalName | string \| Namekey
|
|
15
|
-
| options | optional NamedTypeSymbolOptions
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ---------------------------------- | - |
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
|
+
| options | optional NamedTypeSymbolOptions | |
|
|
16
16
|
|
|
17
17
|
## Options
|
|
18
18
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
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
|
|
|
@@ -4,22 +4,32 @@
|
|
|
4
4
|
import { createNestedStructSymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createNestedStructSymbol(originalName: string | Namekey
|
|
7
|
+
function createNestedStructSymbol(originalName: string | Namekey<NamekeyOptions>, kind: NamedTypeTypeKind, options?: NamedTypeSymbolOptions): NamedTypeSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ------------ |
|
|
14
|
-
| originalName | string \| Namekey
|
|
15
|
-
| kind | NamedTypeTypeKind
|
|
16
|
-
| options | optional NamedTypeSymbolOptions
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ---------------------------------- | - |
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
|
+
| kind | NamedTypeTypeKind | |
|
|
16
|
+
| options | optional NamedTypeSymbolOptions | |
|
|
17
17
|
|
|
18
18
|
## Options
|
|
19
19
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
20
|
+
| | | |
|
|
21
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
|
|
23
|
+
| 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. |
|
|
24
|
+
| 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. |
|
|
25
|
+
| 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. |
|
|
26
|
+
| 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. |
|
|
27
|
+
| metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
|
|
28
|
+
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
|
|
29
|
+
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
|
|
30
|
+
| transient | optional boolean | Whether this symbol is transient. |
|
|
31
|
+
| 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. |
|
|
32
|
+
| typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
|
|
23
33
|
|
|
24
34
|
## Returns
|
|
25
35
|
|
|
@@ -6,30 +6,30 @@ Create a symbol for a parameter in the current func scope.
|
|
|
6
6
|
import { createParameterSymbol } from "@alloy-js/go";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
function createParameterSymbol(originalName: string | Namekey
|
|
9
|
+
function createParameterSymbol(originalName: string | Namekey<NamekeyOptions>, options?: GoSymbolOptions): GoSymbol;
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Parameters
|
|
13
13
|
|
|
14
|
-
| |
|
|
15
|
-
| ------------ |
|
|
16
|
-
| originalName | string \| Namekey
|
|
17
|
-
| options | optional GoSymbolOptions
|
|
14
|
+
| | | |
|
|
15
|
+
| ------------ | ---------------------------------- | - |
|
|
16
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
17
|
+
| options | optional GoSymbolOptions | |
|
|
18
18
|
|
|
19
19
|
## Options
|
|
20
20
|
|
|
21
|
-
| |
|
|
22
|
-
| --------------------- |
|
|
23
|
-
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/)
|
|
24
|
-
| binder | optional[Binder](../../../core/types/binder/)
|
|
25
|
-
| ignoreNameConflict | optional boolean
|
|
26
|
-
| ignoreNamePolicy | optional boolean
|
|
27
|
-
| lazyMemberInitializer | optional () => void
|
|
28
|
-
| metadata | optional Record\<string, unknown>
|
|
29
|
-
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/)
|
|
30
|
-
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[]
|
|
31
|
-
| transient | optional boolean
|
|
32
|
-
| type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[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. |
|
|
21
|
+
| | | |
|
|
22
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
|
|
24
|
+
| 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. |
|
|
25
|
+
| 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. |
|
|
26
|
+
| 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. |
|
|
27
|
+
| 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. |
|
|
28
|
+
| metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
|
|
29
|
+
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
|
|
30
|
+
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
|
|
31
|
+
| transient | optional boolean | Whether this symbol is transient. |
|
|
32
|
+
| 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. |
|
|
33
33
|
|
|
34
34
|
## Returns
|
|
35
35
|
|
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
import { createPropertySymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createPropertySymbol(originalName: string | Namekey
|
|
7
|
+
function createPropertySymbol(originalName: string | Namekey<NamekeyOptions>, options: GoSymbolOptions): GoSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ------------ |
|
|
14
|
-
| originalName | string \| Namekey | |
|
|
15
|
-
| options | GoSymbolOptions
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ---------------------------------- | - |
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
|
+
| options | GoSymbolOptions | |
|
|
16
16
|
|
|
17
17
|
## Options
|
|
18
18
|
|
|
19
|
-
| |
|
|
20
|
-
| --------------------- |
|
|
21
|
-
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/)
|
|
22
|
-
| binder | optional[Binder](../../../core/types/binder/)
|
|
23
|
-
| ignoreNameConflict | optional boolean
|
|
24
|
-
| ignoreNamePolicy | optional boolean
|
|
25
|
-
| lazyMemberInitializer | optional () => void
|
|
26
|
-
| metadata | optional Record\<string, unknown>
|
|
27
|
-
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/)
|
|
28
|
-
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[]
|
|
29
|
-
| transient | optional boolean
|
|
30
|
-
| type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[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. |
|
|
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
31
|
|
|
32
32
|
## Returns
|
|
33
33
|
|
|
@@ -4,21 +4,31 @@
|
|
|
4
4
|
import { createStructMemberSymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createStructMemberSymbol(originalName: string | Namekey
|
|
7
|
+
function createStructMemberSymbol(originalName: string | Namekey<NamekeyOptions>, options?: NamedTypeSymbolOptions): NamedTypeSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ------------ |
|
|
14
|
-
| originalName | string \| Namekey
|
|
15
|
-
| options | optional NamedTypeSymbolOptions
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ---------------------------------- | - |
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
|
+
| options | optional NamedTypeSymbolOptions | |
|
|
16
16
|
|
|
17
17
|
## Options
|
|
18
18
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
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
|
|
|
@@ -4,21 +4,31 @@
|
|
|
4
4
|
import { createTypeParameterSymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createTypeParameterSymbol(originalName: string | Namekey
|
|
7
|
+
function createTypeParameterSymbol(originalName: string | Namekey<NamekeyOptions>, options?: CreateTypeParameterSymbolOptions): GoSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
12
|
| | | |
|
|
13
13
|
| ------------ | ----------------------------------------- | - |
|
|
14
|
-
| originalName | string \| Namekey
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
15
|
| options | optional CreateTypeParameterSymbolOptions | |
|
|
16
16
|
|
|
17
17
|
## Options
|
|
18
18
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
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
|
+
| scope | optional[GoFunctionScope](../../types/gofunctionscope/) \| [GoNamedTypeScope](../../types/gonamedtypescope/) | |
|
|
30
|
+
| transient | optional boolean | Whether this symbol is transient. |
|
|
31
|
+
| 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. |
|
|
22
32
|
|
|
23
33
|
## Returns
|
|
24
34
|
|
|
@@ -4,22 +4,32 @@
|
|
|
4
4
|
import { createTypeSymbol } from "@alloy-js/go";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createTypeSymbol(originalName: string | Namekey
|
|
7
|
+
function createTypeSymbol(originalName: string | Namekey<NamekeyOptions>, kind: NamedTypeTypeKind, options?: NamedTypeSymbolOptions): NamedTypeSymbol;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ------------ |
|
|
14
|
-
| originalName | string \| Namekey
|
|
15
|
-
| kind | NamedTypeTypeKind
|
|
16
|
-
| options | optional NamedTypeSymbolOptions
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ---------------------------------- | - |
|
|
14
|
+
| originalName | string \| Namekey\<NamekeyOptions> | |
|
|
15
|
+
| kind | NamedTypeTypeKind | |
|
|
16
|
+
| options | optional NamedTypeSymbolOptions | |
|
|
17
17
|
|
|
18
18
|
## Options
|
|
19
19
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
20
|
+
| | | |
|
|
21
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
|
|
23
|
+
| 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. |
|
|
24
|
+
| 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. |
|
|
25
|
+
| 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. |
|
|
26
|
+
| 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. |
|
|
27
|
+
| metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
|
|
28
|
+
| namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
|
|
29
|
+
| refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
|
|
30
|
+
| transient | optional boolean | Whether this symbol is transient. |
|
|
31
|
+
| 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. |
|
|
32
|
+
| typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
|
|
23
33
|
|
|
24
34
|
## Returns
|
|
25
35
|
|