pub struct IntelliSense { /* private fields */ }Implementations§
Source§impl IntelliSense
impl IntelliSense
pub fn new() -> Self
pub fn with_strict(self, strict: bool) -> Self
pub fn set_nl_labels(&mut self, labels: Option<NlLabelResolver>)
pub fn completions( &mut self, source: &str, pos: u32, data: &VariableType, ) -> Vec<Completion>
pub fn inspect( &mut self, source: &str, pos: u32, data: &VariableType, ) -> Option<InspectionResult>
pub fn analyze( &mut self, source: &str, data: &VariableType, ) -> Rc<ExpressionAnalysis>
pub fn nl_tokenize_batch( &mut self, requests: &[NlRequest], root_type: &VariableType, ) -> Vec<NlResult>
pub fn nl_tokenize( &mut self, request: &NlRequest, root_type: &VariableType, ) -> NlResult
pub fn nl_subject_options( &self, subject: &VariableType, ) -> Option<Vec<EnumOption>>
pub fn nl_tokenize_scoped( &mut self, id: &str, source: &str, unary: bool, scope_type: &VariableType, expected: Option<&VariableType>, ) -> NlResult
pub fn with_ast<T>( &mut self, source: &str, unary: bool, f: impl for<'arena> FnOnce(&'arena Node<'arena>, &AstMetadata) -> T, ) -> Option<T>
pub fn field_reads( &mut self, source: &str, field_path: &[&str], ) -> Option<Vec<ReadDependency>>
pub fn arm_test(&mut self, source: &str) -> ArmTest
pub fn cell_test(&mut self, source: &str) -> ArmTest
pub fn flow_source(&mut self, source: &str) -> Option<FlowSource>
pub fn reads(&mut self, source: &str) -> Vec<ReadDependency>
pub fn reads_unary(&mut self, source: &str) -> Vec<ReadDependency>
pub fn dependencies(&mut self, source: &str) -> DependencyResult
pub fn analyze_unary( &mut self, source: &str, data: &VariableType, ) -> Rc<ExpressionAnalysis>
pub fn type_check( &mut self, source: &str, data: &VariableType, ) -> Option<Vec<IntelliSenseToken>>
pub fn type_check_unary( &mut self, source: &str, data: &VariableType, ) -> Option<Vec<IntelliSenseToken>>
Auto Trait Implementations§
impl !Freeze for IntelliSense
impl !RefUnwindSafe for IntelliSense
impl !Send for IntelliSense
impl !Sync for IntelliSense
impl !UnwindSafe for IntelliSense
impl Unpin for IntelliSense
impl UnsafeUnpin for IntelliSense
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