File tree Expand file tree Collapse file tree 1 file changed +27
-20
lines changed Expand file tree Collapse file tree 1 file changed +27
-20
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,32 @@ export type Location = {
43
43
source: Source ;
44
44
} ;
45
45
46
+ /**
47
+ * Represents the different kinds of tokens in a GraphQL document.
48
+ * This type is not inlined in `Token` to fix syntax highlighting on GitHub
49
+ * *only*.
50
+ */
51
+ type TokenKind = '<SOF>'
52
+ | '<EOF>'
53
+ | '!'
54
+ | '$'
55
+ | '('
56
+ | ')'
57
+ | '...'
58
+ | ':'
59
+ | '='
60
+ | '@'
61
+ | '['
62
+ | ']'
63
+ | '{'
64
+ | '|'
65
+ | '}'
66
+ | 'Name'
67
+ | 'Int'
68
+ | 'Float'
69
+ | 'String'
70
+ | 'Comment' ;
71
+
46
72
/**
47
73
* Represents a range of characters represented by a lexical token
48
74
* within a Source.
@@ -52,26 +78,7 @@ export type Token = {
52
78
/**
53
79
* The kind of Token.
54
80
*/
55
- kind : '<SOF>'
56
- | '<EOF>'
57
- | '!'
58
- | '$'
59
- | '('
60
- | ')'
61
- | '...'
62
- | ':'
63
- | '='
64
- | '@'
65
- | '['
66
- | ']'
67
- | '{'
68
- | '|'
69
- | '}'
70
- | 'Name'
71
- | 'Int'
72
- | 'Float'
73
- | 'String'
74
- | 'Comment' ;
81
+ kind : TokenKind ;
75
82
76
83
/**
77
84
* The character offset at which this Node begins.
You can’t perform that action at this time.
0 commit comments