[][src]Struct loa::server::Server

pub struct Server {
    pub analysis: Analysis,
    pub module_cells: HashMap<URI, ModuleCell>,
}

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]

pub fn location(
    &self,
    uri: &URI,
    (line, character): (usize, usize)
) -> Option<Location>
[src]

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]

Trait Implementations

impl Clone for Server[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.