Add an Identifier node kind

This commit is contained in:
joeduffy 2016-12-31 14:18:55 -08:00
parent ba11d87704
commit 2c7bbde93f

View file

@ -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";