mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
34 lines
646 B
TypeScript
34 lines
646 B
TypeScript
// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/language/tokenKind.js
|
|
|
|
|
|
/**
|
|
* An exported enum describing the different kinds of tokens that the
|
|
* lexer emits.
|
|
*/
|
|
export const TokenKind = Object.freeze({
|
|
SOF: '<SOF>',
|
|
EOF: '<EOF>',
|
|
BANG: '!',
|
|
DOLLAR: '$',
|
|
AMP: '&',
|
|
PAREN_L: '(',
|
|
PAREN_R: ')',
|
|
SPREAD: '...',
|
|
COLON: ':',
|
|
EQUALS: '=',
|
|
AT: '@',
|
|
BRACKET_L: '[',
|
|
BRACKET_R: ']',
|
|
BRACE_L: '{',
|
|
PIPE: '|',
|
|
BRACE_R: '}',
|
|
NAME: 'Name',
|
|
INT: 'Int',
|
|
FLOAT: 'Float',
|
|
STRING: 'String',
|
|
BLOCK_STRING: 'BlockString',
|
|
COMMENT: 'Comment'
|
|
});
|
|
/**
|
|
* The enum type representing the token kinds values.
|
|
*/ |