pub struct SquawkDatabase { /* private fields */ }Implementations§
Source§impl SquawkDatabase
impl SquawkDatabase
pub fn new() -> SquawkDatabase
pub fn open_file(&mut self, content: String)
pub fn update_file(&mut self, content: String)
pub fn dump_cst(&self) -> Result<String, Error>
pub fn dump_tokens(&self) -> Result<String, Error>
pub fn lint(&self) -> Result<JsValue, Error>
pub fn goto_definition(&self, line: u32, col: u32) -> Result<JsValue, Error>
pub fn hover(&self, line: u32, col: u32) -> Result<JsValue, Error>
pub fn find_references(&self, line: u32, col: u32) -> Result<JsValue, Error>
pub fn document_symbols(&self) -> Result<JsValue, Error>
pub fn code_actions(&self, line: u32, col: u32) -> Result<JsValue, Error>
pub fn inlay_hints(&self) -> Result<JsValue, Error>
pub fn folding_ranges(&self) -> Result<JsValue, Error>
pub fn selection_ranges( &self, positions: Vec<JsValue>, ) -> Result<JsValue, Error>
pub fn completion(&self, line: u32, col: u32) -> Result<JsValue, Error>
Trait Implementations§
Source§impl From<SquawkDatabase> for JsValue
impl From<SquawkDatabase> for JsValue
Source§fn from(value: SquawkDatabase) -> Self
fn from(value: SquawkDatabase) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SquawkDatabase
impl FromWasmAbi for SquawkDatabase
Source§impl IntoWasmAbi for SquawkDatabase
impl IntoWasmAbi for SquawkDatabase
Source§impl LongRefFromWasmAbi for SquawkDatabase
impl LongRefFromWasmAbi for SquawkDatabase
Source§impl OptionFromWasmAbi for SquawkDatabase
impl OptionFromWasmAbi for SquawkDatabase
Source§impl OptionIntoWasmAbi for SquawkDatabase
impl OptionIntoWasmAbi for SquawkDatabase
Source§impl RefFromWasmAbi for SquawkDatabase
impl RefFromWasmAbi for SquawkDatabase
Source§type Anchor = RcRef<SquawkDatabase>
type Anchor = RcRef<SquawkDatabase>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SquawkDatabase
impl RefMutFromWasmAbi for SquawkDatabase
Source§impl TryFromJsValue for SquawkDatabase
impl TryFromJsValue for SquawkDatabase
Source§impl VectorFromWasmAbi for SquawkDatabase
impl VectorFromWasmAbi for SquawkDatabase
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SquawkDatabase]>
Source§impl VectorIntoWasmAbi for SquawkDatabase
impl VectorIntoWasmAbi for SquawkDatabase
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SquawkDatabase]>) -> Self::Abi
Source§impl WasmDescribeVector for SquawkDatabase
impl WasmDescribeVector for SquawkDatabase
impl SupportsConstructor for SquawkDatabase
impl SupportsInstanceProperty for SquawkDatabase
impl SupportsStaticProperty for SquawkDatabase
Auto Trait Implementations§
impl !Freeze for SquawkDatabase
impl RefUnwindSafe for SquawkDatabase
impl Send for SquawkDatabase
impl !Sync for SquawkDatabase
impl Unpin for SquawkDatabase
impl UnsafeUnpin for SquawkDatabase
impl !UnwindSafe for SquawkDatabase
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.