pub struct Analyzer { /* private fields */ }Implementations§
Source§impl Analyzer
impl Analyzer
pub fn new() -> Analyzer
pub fn sync_document(&mut self, path: &str, content: &str)
pub fn remove_document(&mut self, path: &str)
pub fn errors(&self) -> JsValue
pub fn semantic_tokens(&self, path: &str) -> Option<Vec<u32>>
pub fn semantic_token_types(&self) -> Vec<String>
pub fn semantic_token_modifiers(&self) -> Vec<String>
pub fn definition(&self, path: &str, line: u32, column: u32) -> JsValue
pub fn types_for_completion( &self, path: &str, line: u32, column: u32, ) -> JsValue
pub fn includes_for_completion( &self, path: &str, line: u32, column: u32, ) -> JsValue
pub fn keywords_for_completion(&self) -> JsValue
pub fn set_wasm_read_file(&mut self, read_file: Function)
Trait Implementations§
Source§impl FromWasmAbi for Analyzer
impl FromWasmAbi for Analyzer
Source§impl IntoWasmAbi for Analyzer
impl IntoWasmAbi for Analyzer
Source§impl LongRefFromWasmAbi for Analyzer
impl LongRefFromWasmAbi for Analyzer
Source§impl OptionFromWasmAbi for Analyzer
impl OptionFromWasmAbi for Analyzer
Source§impl OptionIntoWasmAbi for Analyzer
impl OptionIntoWasmAbi for Analyzer
Source§impl RefFromWasmAbi for Analyzer
impl RefFromWasmAbi for Analyzer
Source§type Abi = WasmPtr<WasmRefCell<Analyzer>>
type Abi = WasmPtr<WasmRefCell<Analyzer>>
The Wasm ABI type references to
Self are recovered from.Source§impl RefMutFromWasmAbi for Analyzer
impl RefMutFromWasmAbi for Analyzer
Source§impl TryFromJsValue for Analyzer
impl TryFromJsValue for Analyzer
Source§impl VectorFromWasmAbi for Analyzer
impl VectorFromWasmAbi for Analyzer
Source§impl VectorIntoWasmAbi for Analyzer
impl VectorIntoWasmAbi for Analyzer
impl SupportsConstructor for Analyzer
impl SupportsInstanceProperty for Analyzer
impl SupportsStaticProperty for Analyzer
Auto Trait Implementations§
impl Freeze for Analyzer
impl !RefUnwindSafe for Analyzer
impl !Send for Analyzer
impl !Sync for Analyzer
impl Unpin for Analyzer
impl UnsafeUnpin for Analyzer
impl !UnwindSafe for Analyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.