[−][src]Struct loa::server::Server
Fields
analysis: Analysismodule_cells: HashMap<URI, ModuleCell>Methods
impl Server[src]
pub fn new() -> Server[src]
pub fn add_all(&mut self, sources: Vec<Arc<Source>>)[src]
pub fn diagnostics(&mut self) -> HashMap<URI, Vec<Diagnostic>>[src]
Sweep the entire program for all diagnostics, syntax errors and semantics.
pub fn generator(&mut self) -> Generator[src]
pub fn load_std(&mut self) -> Result<()>[src]
pub fn get(&self, uri: &URI) -> Option<ModuleCell>[src]
pub fn set(&mut self, uri: URI, code: String, kind: SourceKind)[src]
pub fn remove(&mut self, uri: URI)[src]
pub fn edit(&mut self, edits: Vec<(Span, String)>)[src]
pub fn source(&self, uri: &URI) -> Option<Arc<Source>>[src]
pub fn tree(&self, uri: &URI) -> Option<Arc<Tree>>[src]
pub fn span(
&self,
uri: &URI,
(from, to): ((usize, usize), (usize, usize))
) -> Option<Span>[src]
&self,
uri: &URI,
(from, to): ((usize, usize), (usize, usize))
) -> Option<Span>
pub fn location(
&self,
uri: &URI,
(line, character): (usize, usize)
) -> Option<Location>[src]
&self,
uri: &URI,
(line, character): (usize, usize)
) -> Option<Location>
pub fn ends_with_syntax_error(&self, uri: &URI) -> bool[src]
pub fn type_at(&self, location: Location) -> Type[src]
pub fn behaviour_at(&self, location: Location) -> Option<Behaviour>[src]
pub fn usage(&mut self, location: Location) -> Option<Usage>[src]
pub fn literal_expression_at(&mut self, location: Location) -> Option<Node>[src]
pub fn completion(
&mut self,
location: Location,
prefix: String
) -> Option<Completion>[src]
&mut self,
location: Location,
prefix: String
) -> Option<Completion>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,