(cls: TokenClass)
| 140 | * not be. |
| 141 | */ |
| 142 | export function tokenClass(cls: TokenClass): string | null { |
| 143 | switch (cls) { |
| 144 | case 'comment': |
| 145 | return 't-c'; |
| 146 | case 'string': |
| 147 | return 't-s'; |
| 148 | case 'keyword': |
| 149 | return 't-k'; |
| 150 | case 'number': |
| 151 | return 't-n'; |
| 152 | case 'def': |
| 153 | return 't-def'; |
| 154 | default: |
| 155 | return null; |
| 156 | } |
| 157 | } |
nothing calls this directly
no outgoing calls
no test coverage detected