Add an Identifier node kind
This commit is contained in:
parent
ba11d87704
commit
2c7bbde93f
|
@ -16,6 +16,8 @@ export interface Node {
|
|||
// NodeType contains all of the legal Node implementations. This effectively "seales" the discriminated node type,
|
||||
// and makes constructing and inspecting nodes a little more bulletproof (i.e., they aren't arbitrary strings).
|
||||
export type NodeKind =
|
||||
IdentifierKind |
|
||||
|
||||
definitions.ModuleKind |
|
||||
definitions.ParameterKind |
|
||||
definitions.ModulePropertyKind |
|
||||
|
@ -55,3 +57,10 @@ export type NodeKind =
|
|||
expressions.ConditionalExpressionKind
|
||||
;
|
||||
|
||||
export interface Identifier extends Node {
|
||||
kind: IdentifierKind;
|
||||
ident: symbols.Identifier;
|
||||
}
|
||||
export const identifierKind = "Identifier";
|
||||
export type IdentifierKind = "Identifier";
|
||||
|
||||
|
|
Loading…
Reference in a new issue