chore(ffi): remove enum name prefixes from all C enum values

This commit is contained in:
Andrew Hlynskyi 2023-09-03 06:47:27 +03:00
parent 5921b36a75
commit 9cc1daafca
6 changed files with 57 additions and 58 deletions

View file

@ -88,7 +88,7 @@ pub fn parse_file_at_path(opts: ParseFileOptions) -> Result<bool> {
}
let tree = match opts.encoding {
Some(encoding) if encoding == ffi::TSInputEncoding_TSInputEncodingUTF16 => {
Some(encoding) if encoding == ffi::TSInputEncodingUTF16 => {
let source_code_utf16 = source_code
.chunks_exact(2)
.map(|chunk| u16::from_le_bytes([chunk[0], chunk[1]]))