Skip to main content

IntelliSense

Struct IntelliSense 

Source
pub struct IntelliSense { /* private fields */ }

Implementations§

Source§

impl IntelliSense

Source

pub fn new() -> Self

Source

pub fn with_strict(self, strict: bool) -> Self

Source

pub fn set_nl_labels(&mut self, labels: Option<NlLabelResolver>)

Source

pub fn completions( &mut self, source: &str, pos: u32, data: &VariableType, ) -> Vec<Completion>

Source

pub fn inspect( &mut self, source: &str, pos: u32, data: &VariableType, ) -> Option<InspectionResult>

Source

pub fn analyze( &mut self, source: &str, data: &VariableType, ) -> Rc<ExpressionAnalysis>

Source

pub fn nl_tokenize_batch( &mut self, requests: &[NlRequest], root_type: &VariableType, ) -> Vec<NlResult>

Source

pub fn nl_tokenize( &mut self, request: &NlRequest, root_type: &VariableType, ) -> NlResult

Source

pub fn nl_subject_options( &self, subject: &VariableType, ) -> Option<Vec<EnumOption>>

Source

pub fn nl_tokenize_scoped( &mut self, id: &str, source: &str, unary: bool, scope_type: &VariableType, expected: Option<&VariableType>, ) -> NlResult

Source

pub fn with_ast<T>( &mut self, source: &str, unary: bool, f: impl for<'arena> FnOnce(&'arena Node<'arena>, &AstMetadata) -> T, ) -> Option<T>

Source

pub fn field_reads( &mut self, source: &str, field_path: &[&str], ) -> Option<Vec<ReadDependency>>

Source

pub fn arm_test(&mut self, source: &str) -> ArmTest

Source

pub fn cell_test(&mut self, source: &str) -> ArmTest

Source

pub fn flow_source(&mut self, source: &str) -> Option<FlowSource>

Source

pub fn reads(&mut self, source: &str) -> Vec<ReadDependency>

Source

pub fn reads_unary(&mut self, source: &str) -> Vec<ReadDependency>

Source

pub fn dependencies(&mut self, source: &str) -> DependencyResult

Source

pub fn analyze_unary( &mut self, source: &str, data: &VariableType, ) -> Rc<ExpressionAnalysis>

Source

pub fn type_check( &mut self, source: &str, data: &VariableType, ) -> Option<Vec<IntelliSenseToken>>

Source

pub fn type_check_unary( &mut self, source: &str, data: &VariableType, ) -> Option<Vec<IntelliSenseToken>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.