Skip to content

Commit 5f90d2e

Browse files
committed
Fix
1 parent ad03676 commit 5f90d2e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

app/rust-ffi/src/lib.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,6 @@ pub fn is_ident_or_operator(code: &str) -> u32 {
4343
}
4444
}
4545

46-
#[wasm_bindgen]
47-
pub fn is_ident_or_operator(code: &str) -> u32 {
48-
let parsed = enso_parser::lexer::run(code);
49-
if parsed.internal_error.is_some() {
50-
return 0;
51-
}
52-
let token = match &parsed.value[..] {
53-
[token] => token,
54-
_ => return 0,
55-
};
56-
match &token.variant {
57-
enso_parser::syntax::token::Variant::Ident(_) => 1,
58-
enso_parser::syntax::token::Variant::Operator(_) => 2,
59-
_ => 0,
60-
}
61-
}
62-
6346
#[wasm_bindgen]
6447
pub fn is_numeric_literal(code: &str) -> bool {
6548
let parsed = PARSER.with(|parser| parser.parse_block(code));

0 commit comments

Comments
 (0)