File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,6 @@ export function isPunctuatorToken(token: Token) {
112
112
) ;
113
113
}
114
114
115
- /**
116
- * A helper function to describe a token as a string for debugging
117
- */
118
- export function getTokenDesc ( token : Token ) : string {
119
- const value = token . value ;
120
- return value ? `${ token . kind } "${ value } "` : token . kind ;
121
- }
122
-
123
115
/**
124
116
* Helper function for constructing the Token object.
125
117
*/
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Source } from './source';
6
6
import { type GraphQLError } from '../error/GraphQLError' ;
7
7
import { syntaxError } from '../error/syntaxError' ;
8
8
import { type TokenKindEnum , TokenKind } from './tokenKind' ;
9
- import { type Lexer , getTokenDesc , createLexer } from './lexer' ;
9
+ import { type Lexer , createLexer } from './lexer' ;
10
10
import {
11
11
type Location ,
12
12
type Token ,
@@ -1568,3 +1568,11 @@ function many<T>(
1568
1568
} while ( ! expectOptionalToken ( lexer , closeKind ) ) ;
1569
1569
return nodes ;
1570
1570
}
1571
+
1572
+ /**
1573
+ * A helper function to describe a token as a string for debugging
1574
+ */
1575
+ function getTokenDesc ( token : Token ) : string {
1576
+ const value = token . value ;
1577
+ return value ? `${ token . kind } "${ value } "` : token . kind ;
1578
+ }
You can’t perform that action at this time.
0 commit comments