Skip to content

Commit

Permalink
fix(ast-spec): add all meaningful values from typescript-estree's `…
Browse files Browse the repository at this point in the history
…node-utils`' `TokenToText` interface as value for `PunctuatorToken`
  • Loading branch information
MichaelDeBoey committed Jun 12, 2021
1 parent 9305bcd commit 4be32cc
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion packages/ast-spec/src/token/PunctuatorToken/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,63 @@ import type { BaseToken } from '../../base/BaseToken';
export interface PunctuatorToken extends BaseToken {
type: AST_TOKEN_TYPES.Punctuator;
value:
| '--'
| '-'
| '-='
| ','
| ';'
| ':'
| '!'
| '!='
| '!=='
| '??'
| '??='
| '?.'
| '?'
| '...'
| '.'
| '('
| ')'
| '['
| ']'
| '{'
| '}'
| '=';
| '@'
| '*'
| '**'
| '**='
| '*='
| '/'
| '/='
| '&'
| '&&'
| '&&='
| '&='
| '%'
| '%='
| '^'
| '^='
| '+'
| '++'
| '+='
| '<'
| '</'
| '<<'
| '<<='
| '<='
| '='
| '=='
| '==='
| '=>'
| '>'
| '>='
| '>>'
| '>>='
| '>>>'
| '>>>='
| '|'
| '|='
| '||'
| '||='
| '~';
}

0 comments on commit 4be32cc

Please sign in to comment.