(ch: number)
| 190 | } |
| 191 | |
| 192 | export function isIdentifierPart(ch: number): boolean { |
| 193 | return ch >= CharacterCodes.A && ch <= CharacterCodes.Z || |
| 194 | ch >= CharacterCodes.a && ch <= CharacterCodes.z || |
| 195 | ch >= CharacterCodes._0 && ch <= CharacterCodes._9 || |
| 196 | ch === CharacterCodes._ || ch === CharacterCodes.minus || |
| 197 | ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierPart(ch); |
| 198 | } |
| 199 | |
| 200 | /** Characters that are in this range are actually code points that take two characters in UTF-16 */ |
| 201 | export function sizeOf(ch: number): number { |
no test coverage detected