@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.
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 +3 -5
  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
@@ -4,30 +4,30 @@
4
4
  import { createVariableSymbol } from "@alloy-js/go";
5
5
 
6
6
 
7
- function createVariableSymbol(originalName: string | Namekey, options?: GoSymbolOptions): GoSymbol;
7
+ function createVariableSymbol(originalName: string | Namekey<NamekeyOptions>, options?: GoSymbolOptions): GoSymbol;
8
8
  ```
9
9
 
10
10
  ## Parameters
11
11
 
12
- | | | |
13
- | ------------ | ------------------------ | - |
14
- | originalName | string \| Namekey | |
15
- | options | optional GoSymbolOptions | |
12
+ | | | |
13
+ | ------------ | ---------------------------------- | - |
14
+ | originalName | string \| Namekey\<NamekeyOptions> | |
15
+ | options | optional GoSymbolOptions | |
16
16
 
17
17
  ## Options
18
18
 
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> | 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
 
package/docs/api/index.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @alloy-js/go API Reference
2
2
 
3
- - [components](components/index.md) (27 items)
3
+ - [components](components/index.md) (28 items)
4
4
  - [contexts](contexts/index.md) (2 items)
5
5
  - [functions](functions/index.md) (27 items)
6
- - [types](types/index.md) (37 items)
6
+ - [types](types/index.md) (36 items)
7
7
  - [variables](variables/index.md) (1 items)
@@ -1,5 +1,7 @@
1
1
  # CreateTypeParameterSymbolOptions
2
2
 
3
+ Options for creating a Go symbol.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoSymbolOptions](../gosymboloptions/)
@@ -6,8 +6,8 @@ A symbol for a function in Go, including receivers.
6
6
 
7
7
  Extends [GoSymbol](../gosymbol/)
8
8
 
9
- | | | |
10
- | -------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------- |
11
- | constructor | (name: string \| Namekey, spaces: OutputSpace \| undefined, options: GoSymbolOptions) | Constructs a new instance of the [`FunctionSymbol`](FunctionSymbol.md) class |
12
- | receiverSymbol | [NamedTypeSymbol](../namedtypesymbol/) \| undefined | |
13
- | symbolKind | | |
9
+ | | | |
10
+ | -------------- | ------------------------------------------------------------------------------------------------------- | - |
11
+ | constructor | (name: string \| Namekey\<NamekeyOptions>, spaces: OutputSpace \| undefined, options?: GoSymbolOptions) | |
12
+ | symbolKind | “function” | |
13
+ | receiverSymbol | [NamedTypeSymbol](../namedtypesymbol/) \| undefined | |
@@ -1,12 +1,22 @@
1
1
  # GoFunctionScope
2
2
 
3
+ A container of symbols accessible within some scope in your output code.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoLexicalScope](../golexicalscope/)
6
8
 
7
- | | | |
8
- | ----------------- | ----------------------------------------------- | - |
9
- | declarationSpaces | string\[] | |
10
- | localVariables | [OutputSpace](../../../core/types/outputspace/) | |
11
- | parameters | [OutputSpace](../../../core/types/outputspace/) | |
12
- | typeParameters | [OutputSpace](../../../core/types/outputspace/) | |
9
+ | | | |
10
+ | ----------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | declarationSpaces | string\[] | The declaration space keys for this scope type. Subclasses override this to declare which declaration spaces are created on construction (e.g., `["types", "values"]`). |
12
+ | localVariables | [OutputSpace](../../../core/types/outputspace/) | |
13
+ | parameters | [OutputSpace](../../../core/types/outputspace/) | |
14
+ | typeParameters | [OutputSpace](../../../core/types/outputspace/) | |
15
+
16
+ ## Remarks
17
+
18
+ Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
19
+
20
+ This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
21
+
22
+ Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
@@ -1,11 +1,21 @@
1
1
  # GoLexicalScope
2
2
 
3
+ A container of symbols accessible within some scope in your output code.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoScope](../goscope/)
6
8
 
7
- | | | |
8
- | ----------------- | ----------------------------------------------- | - |
9
- | declarationSpaces | string\[] | |
10
- | types | [OutputSpace](../../../core/types/outputspace/) | |
11
- | values | [OutputSpace](../../../core/types/outputspace/) | |
9
+ | | | |
10
+ | ----------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | declarationSpaces | string\[] | The declaration space keys for this scope type. Subclasses override this to declare which declaration spaces are created on construction (e.g., `["types", "values"]`). |
12
+ | types | [OutputSpace](../../../core/types/outputspace/) | |
13
+ | values | [OutputSpace](../../../core/types/outputspace/) | |
14
+
15
+ ## Remarks
16
+
17
+ Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
18
+
19
+ This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
20
+
21
+ Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
@@ -1,10 +1,20 @@
1
1
  # GoModuleScope
2
2
 
3
+ A container of symbols accessible within some scope in your output code.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoScope](../goscope/)
6
8
 
7
- | | | |
8
- | ----------- | -------------------------------- | ------------------------------------------------------ |
9
- | constructor | (name: string, builtin: boolean) | Constructs a new instance of the [`GoModuleScope`](GoModuleScope.md) class |
10
- | builtin | boolean | |
9
+ | | | |
10
+ | ----------- | --------------------------------- | - |
11
+ | constructor | (name: string, builtin?: boolean) | |
12
+ | builtin | boolean | |
13
+
14
+ ## Remarks
15
+
16
+ Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
17
+
18
+ This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
19
+
20
+ Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
@@ -6,11 +6,11 @@ This scope contains NamedTypeSymbols for types that are declared in containers l
6
6
 
7
7
  Extends [GoScope](../goscope/)
8
8
 
9
- | | | |
10
- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
11
- | constructor | (ownerSymbol: NamedTypeSymbol, parentScope: GoNamedTypeScope \| GoSourceFileScope \| GoModuleScope \| undefined, options: OutputScopeOptions) | Constructs a new instance of the [`GoNamedTypeScope`](GoNamedTypeScope.md) class |
12
- | declarationSpaces | never\[] | |
13
- | enclosingPackage | import(“../index.js”).[PackageSymbol](../packagesymbol/) \| undefined | |
14
- | members | import(“@alloy-js/core”).[OutputMemberSpace](../../../core/types/outputmemberspace/) | |
15
- | ownerSymbol | [NamedTypeSymbol](../namedtypesymbol/) | |
16
- | typeParameters | import(“@alloy-js/core”).[OutputMemberSpace](../../../core/types/outputmemberspace/) | For now, we stuff type parameters into the member scope. This is to ensure name conflicts are handled correctly. |
9
+ | | | |
10
+ | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | constructor | (ownerSymbol: NamedTypeSymbol, parentScope: GoModuleScope \| GoNamedTypeScope \| GoSourceFileScope \| undefined, options?: OutputScopeOptions) | |
12
+ | declarationSpaces | never\[] | The declaration space keys for this scope type. Subclasses override this to declare which declaration spaces are created on construction (e.g., `["types", "values"]`). |
13
+ | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
14
+ | members | [OutputMemberSpace](../../../core/types/outputmemberspace/) | |
15
+ | ownerSymbol | [NamedTypeSymbol](../namedtypesymbol/) | The symbol whose members are in scope. When an owner symbol is present, this scope is considered a member scope, and does not provide its own declaration spaces. |
16
+ | typeParameters | [OutputMemberSpace](../../../core/types/outputmemberspace/) | For now, we stuff type parameters into the member scope. This is to ensure name conflicts are handled correctly. |
@@ -1,10 +1,12 @@
1
1
  # GoPackageScope
2
2
 
3
+ This scope contains NamedTypeSymbols for types that are declared in containers like packages. This scope is a member scope which whose member symbol is a NamedTypeSymbol.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoNamedTypeScope](../gonamedtypescope/)
6
8
 
7
- | | | |
8
- | ----------- | ---------------------------------------------------------------------------- | ------------------------------------------------------- |
9
- | constructor | (packageSymbol: PackageSymbol, parentScope: GoPackageScope \| GoModuleScope) | Constructs a new instance of the [`GoPackageScope`](GoPackageScope.md) class |
10
- | ownerSymbol | [PackageSymbol](../packagesymbol/) | |
9
+ | | | |
10
+ | ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | constructor | (packageSymbol: PackageSymbol, parentScope?: GoModuleScope \| GoPackageScope) | |
12
+ | ownerSymbol | [PackageSymbol](../packagesymbol/) | The symbol whose members are in scope. When an owner symbol is present, this scope is considered a member scope, and does not provide its own declaration spaces. |
@@ -1,10 +1,20 @@
1
1
  # GoScope
2
2
 
3
+ A container of symbols accessible within some scope in your output code.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [OutputScope](../../../core/types/outputscope/)
6
8
 
7
- | | | |
8
- | ---------------- | ------------------------------------------------------------------------- | ------------------------------------------------ |
9
- | constructor | (name: string, parent: GoScope \| undefined, options: OutputScopeOptions) | Constructs a new instance of the [`GoScope`](GoScope.md) class |
10
- | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
9
+ | | | |
10
+ | ---------------- | -------------------------------------------------------------------------- | - |
11
+ | constructor | (name: string, parent: GoScope \| undefined, options?: OutputScopeOptions) | |
12
+ | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
13
+
14
+ ## Remarks
15
+
16
+ Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
17
+
18
+ This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
19
+
20
+ Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
@@ -1,13 +1,23 @@
1
1
  # GoSourceFileScope
2
2
 
3
+ A container of symbols accessible within some scope in your output code.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoLexicalScope](../golexicalscope/)
6
8
 
7
- | | | |
8
- | ---------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------- |
9
- | constructor | (name: string, parent: GoPackageScope, options: OutputScopeOptions) | Constructs a new instance of the [`GoSourceFileScope`](GoSourceFileScope.md) class |
10
- | addImport | (import\_: PackageSymbol) => GoSymbol | |
11
- | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
12
- | imports | import(“@vue/reactivity”).ShallowReactive<[ImportRecords](../importrecords/)> | |
13
- | parent | [GoPackageScope](../gopackagescope/) | |
9
+ | | | |
10
+ | ---------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------ |
11
+ | constructor | (name: string, parent?: GoPackageScope, options?: OutputScopeOptions) | |
12
+ | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
13
+ | imports | ShallowReactive<[ImportRecords](../importrecords/)> | |
14
+ | parent | [GoPackageScope](../gopackagescope/) | The parent scope of this scope. Undefined if this is a root scope. |
15
+ | addImport | (import\_: PackageSymbol) => GoSymbol | |
16
+
17
+ ## Remarks
18
+
19
+ Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
20
+
21
+ This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
22
+
23
+ Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
@@ -8,10 +8,10 @@ Many subtypes of this symbol exist for specific purposes. However, this symbol m
8
8
 
9
9
  Extends [OutputSymbol](../../../core/types/outputsymbol/)
10
10
 
11
- | | | |
12
- | -------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
13
- | constructor | (name: string \| Namekey, spaces: OutputSpace\[] \| OutputSpace \| undefined, options: GoSymbolOptions) | Constructs a new instance of the [`GoSymbol`](GoSymbol.md) class |
14
- | copy | () => OutputSymbol | |
15
- | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
16
- | protected getGoCopyOptions | () => GoSymbolOptions | |
17
- | protected initializeGoCopy | (copy: GoSymbol) => void | |
11
+ | | | |
12
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
13
+ | constructor | (name: string \| Namekey\<NamekeyOptions>, spaces: OutputSpace \| OutputSpace\[] \| undefined, options?: GoSymbolOptions) | |
14
+ | enclosingPackage | [PackageSymbol](../packagesymbol/) \| undefined | |
15
+ | copy | () => OutputSymbol | Create a clone of this symbol whose name and flags reactively track the original. |
16
+ | protected getGoCopyOptions | () => GoSymbolOptions | |
17
+ | protected initializeGoCopy | (copy: GoSymbol) => void | |
@@ -6,12 +6,12 @@ A symbol for a named type in Go such as a struct, interface, and so forth.
6
6
 
7
7
  Extends [GoSymbol](../gosymbol/)
8
8
 
9
- | | | |
10
- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
11
- | constructor | (name: string \| Namekey, spaces: OutputSpace\[] \| OutputSpace \| undefined, kind: NamedTypeTypeKind, options: NamedTypeSymbolOptions) | Constructs a new instance of the [`NamedTypeSymbol`](NamedTypeSymbol.md) class |
12
- | copy | () => NamedTypeSymbol | |
13
- | members | import(“@alloy-js/core”).[OutputMemberSpace](../../../core/types/outputmemberspace/) | |
14
- | memberSpaces | string\[] | |
15
- | symbolKind | [NamedTypeSymbolKind](../namedtypesymbolkind/) | |
16
- | typeKind | [NamedTypeTypeKind](../namedtypetypekind/) | |
17
- | typeParameters | import(“@alloy-js/core”).[OutputMemberSpace](../../../core/types/outputmemberspace/) | |
9
+ | | | |
10
+ | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | constructor | (name: string \| Namekey\<NamekeyOptions>, spaces: OutputSpace \| OutputSpace\[] \| undefined, kind: NamedTypeTypeKind, options?: NamedTypeSymbolOptions) | |
12
+ | symbolKind | [NamedTypeSymbolKind](../namedtypesymbolkind/) | |
13
+ | memberSpaces | string\[] | The member space keys for this symbol type. Subclasses override this to declare which member spaces are created on construction (e.g., `["static", "instance"]`). |
14
+ | members | [OutputMemberSpace](../../../core/types/outputmemberspace/) | |
15
+ | typeKind | [NamedTypeTypeKind](../namedtypetypekind/) | |
16
+ | typeParameters | [OutputMemberSpace](../../../core/types/outputmemberspace/) | |
17
+ | copy | () => NamedTypeSymbol | Create a clone of this symbol whose name and flags reactively track the original. |
@@ -1,5 +1,7 @@
1
1
  # NamedTypeSymbolOptions
2
2
 
3
+ Options for creating a Go symbol.
4
+
3
5
  ## Members
4
6
 
5
7
  Extends [GoSymbolOptions](../gosymboloptions/)
@@ -6,10 +6,10 @@ A symbol for a package in Go.
6
6
 
7
7
  Extends [NamedTypeSymbol](../namedtypesymbol/)
8
8
 
9
- | | | |
10
- | ------------------ | --------------------------------------------------------------------------- | ------------------------------------------------------ |
11
- | constructor | (name: string, parentPackage: PackageSymbol, options: PackageSymbolOptions) | Constructs a new instance of the [`PackageSymbol`](PackageSymbol.md) class |
12
- | builtin | boolean | |
13
- | copy | () => PackageSymbol | |
14
- | fullyQualifiedName | string | |
15
- | symbolKind | | |
9
+ | | | |
10
+ | ------------------ | ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
11
+ | constructor | (name: string, parentPackage?: PackageSymbol, options?: PackageSymbolOptions) | |
12
+ | symbolKind | “package” | |
13
+ | builtin | boolean | |
14
+ | fullyQualifiedName | string | |
15
+ | copy | () => PackageSymbol | Create a clone of this symbol whose name and flags reactively track the original. |
@@ -1,7 +1,5 @@
1
1
  # ResolveDescriptor
2
2
 
3
3
  ```ts
4
- type ResolveDescriptor<D> = D extends NamedTypeDescriptor<infer M> ? LibrarySymbolReference & {
5
- [K in keyof M]: ResolveDescriptor<M[K]>;
6
- } : LibrarySymbolReference;
4
+ type ResolveDescriptor<D> = D extends NamedTypeDescriptor<infer M> ? LibrarySymbolReference & { [K in keyof M]: ResolveDescriptor<M[K]> } : LibrarySymbolReference;
7
5
  ```
@@ -1,19 +1,19 @@
1
1
  # go — types
2
2
 
3
- - [CreateTypeParameterSymbolOptions](CreateTypeParameterSymbolOptions.md) — Extends [GoSymbolOptions](../gosymboloptions/)
3
+ - [CreateTypeParameterSymbolOptions](CreateTypeParameterSymbolOptions.md) — Options for creating a Go symbol.
4
4
  - [Descriptor](Descriptor.md) — type Descriptor = PackageDescriptor<any> | FieldDescriptor | FunctionDescriptor | MethodDescriptor | VariableDescriptor
5
5
  - [EmbedDescriptor](EmbedDescriptor.md) — Extends [MemberDescriptor](../memberdescriptor/)
6
6
  - [FieldDescriptor](FieldDescriptor.md) — Extends [MemberDescriptor](../memberdescriptor/)
7
7
  - [FunctionDescriptor](FunctionDescriptor.md) — Extends [MemberDescriptor](../memberdescriptor/)
8
8
  - [FunctionSymbol](FunctionSymbol.md) — A symbol for a function in Go, including receivers.
9
9
  - [GoElements](GoElements.md) — type GoElements = "parameter" | "type-parameter" | "function" | "type" | "variable" | "struct-member" | "interface-membe
10
- - [GoFunctionScope](GoFunctionScope.md) — Extends [GoLexicalScope](../golexicalscope/)
11
- - [GoLexicalScope](GoLexicalScope.md) — Extends [GoScope](../goscope/)
12
- - [GoModuleScope](GoModuleScope.md) — Extends [GoScope](../goscope/)
10
+ - [GoFunctionScope](GoFunctionScope.md) — A container of symbols accessible within some scope in your output code.
11
+ - [GoLexicalScope](GoLexicalScope.md) — A container of symbols accessible within some scope in your output code.
12
+ - [GoModuleScope](GoModuleScope.md) — A container of symbols accessible within some scope in your output code.
13
13
  - [GoNamedTypeScope](GoNamedTypeScope.md) — This scope contains NamedTypeSymbols for types that are declared in containers like packages.
14
- - [GoPackageScope](GoPackageScope.md) — Extends [GoNamedTypeScope](../gonamedtypescope/)
15
- - [GoScope](GoScope.md) — Extends [OutputScope](../../../core/types/outputscope/)
16
- - [GoSourceFileScope](GoSourceFileScope.md) — Extends [GoLexicalScope](../golexicalscope/)
14
+ - [GoPackageScope](GoPackageScope.md) — This scope contains NamedTypeSymbols for types that are declared in containers like packages.
15
+ - [GoScope](GoScope.md) — A container of symbols accessible within some scope in your output code.
16
+ - [GoSourceFileScope](GoSourceFileScope.md) — A container of symbols accessible within some scope in your output code.
17
17
  - [GoSymbol](GoSymbol.md) — This is the base type for all symbols in Go.
18
18
  - [GoSymbolKinds](GoSymbolKinds.md) — type GoSymbolKinds = "symbol" | "named-type" | "function" | "field" | "package";
19
19
  - [GoSymbolOptions](GoSymbolOptions.md) — Options for creating a Go symbol.
@@ -25,12 +25,11 @@
25
25
  - [NamedTypeDescriptor](NamedTypeDescriptor.md)
26
26
  - [NamedTypeSymbol](NamedTypeSymbol.md) — A symbol for a named type in Go such as a struct, interface, and so forth.
27
27
  - [NamedTypeSymbolKind](NamedTypeSymbolKind.md) — type NamedTypeSymbolKind = "named-type" | "package";
28
- - [NamedTypeSymbolOptions](NamedTypeSymbolOptions.md) — Extends [GoSymbolOptions](../gosymboloptions/)
28
+ - [NamedTypeSymbolOptions](NamedTypeSymbolOptions.md) — Options for creating a Go symbol.
29
29
  - [NamedTypeTypeKind](NamedTypeTypeKind.md) — type NamedTypeTypeKind = "import" | "function" | "var" | "type" | "struct" | "struct-member" | "interface" | "interface-
30
30
  - [PackageDescriptor](PackageDescriptor.md) — Extends [NamedTypeDescriptor](../namedtypedescriptor/)\<M>
31
31
  - [PackageSymbol](PackageSymbol.md) — A symbol for a package in Go.
32
32
  - [PackageSymbolOptions](PackageSymbolOptions.md) — Extends [OutputSymbolOptions](../../../core/types/outputsymboloptions/)
33
- - [ReferenceProps](ReferenceProps.md)
34
33
  - [ResolveDescriptor](ResolveDescriptor.md) — type ResolveDescriptor<D> = D extends NamedTypeDescriptor<infer M> ?
35
34
  - [SourceFileHeaderProps](SourceFileHeaderProps.md)
36
35
  - [StrictDescriptor](StrictDescriptor.md) — type StrictDescriptor = PackageDescriptor<Record<string, StrictDescriptor>> | FieldDescriptor | FunctionDescriptor | Met
@@ -1,3 +1,3 @@
1
1
  # go — variables
2
2
 
3
- - [std](std.md) — std: {
3
+ - [std](std.md) — const std: { fmt: LibraryFrom<{ kind: "package"; members: { Append: { kind: "function" }; Appendf: { kind: "function" };