chore(ffi): remove enum name prefixes from all C enum values
This commit is contained in:
parent
5921b36a75
commit
9cc1daafca
6 changed files with 57 additions and 58 deletions
|
|
@ -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]]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue