-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add program to link nodes and update LinkableDictionary (#180)
- Loading branch information
1 parent
00e7e26
commit 93a318a
Showing
22 changed files
with
293 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@kinobi-so/visitors-core': minor | ||
'@kinobi-so/node-types': minor | ||
'@kinobi-so/nodes': minor | ||
'@kinobi-so/visitors': patch | ||
'@kinobi-so/errors': patch | ||
--- | ||
|
||
Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import type { CamelCaseString } from '../shared'; | ||
import type { ProgramLinkNode } from './ProgramLinkNode'; | ||
|
||
export interface AccountLinkNode { | ||
export interface AccountLinkNode<TProgram extends ProgramLinkNode | undefined = ProgramLinkNode | undefined> { | ||
readonly kind: 'accountLinkNode'; | ||
|
||
// Children. | ||
readonly program?: TProgram; | ||
|
||
// Data. | ||
readonly name: CamelCaseString; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import type { CamelCaseString } from '../shared'; | ||
import type { ProgramLinkNode } from './ProgramLinkNode'; | ||
|
||
export interface DefinedTypeLinkNode { | ||
export interface DefinedTypeLinkNode<TProgram extends ProgramLinkNode | undefined = ProgramLinkNode | undefined> { | ||
readonly kind: 'definedTypeLinkNode'; | ||
|
||
// Children. | ||
readonly program?: TProgram; | ||
|
||
// Data. | ||
readonly name: CamelCaseString; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import type { CamelCaseString } from '../shared'; | ||
import type { ProgramLinkNode } from './ProgramLinkNode'; | ||
|
||
export interface PdaLinkNode { | ||
export interface PdaLinkNode<TProgram extends ProgramLinkNode | undefined = ProgramLinkNode | undefined> { | ||
readonly kind: 'pdaLinkNode'; | ||
|
||
// Children. | ||
readonly program?: TProgram; | ||
|
||
// Data. | ||
readonly name: CamelCaseString; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.