We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad03676 commit 5f90d2eCopy full SHA for 5f90d2e
app/rust-ffi/src/lib.rs
@@ -43,23 +43,6 @@ pub fn is_ident_or_operator(code: &str) -> u32 {
43
}
44
45
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
-
63
#[wasm_bindgen]
64
pub fn is_numeric_literal(code: &str) -> bool {
65
let parsed = PARSER.with(|parser| parser.parse_block(code));
0 commit comments