Struct sixtyfps_compilerlib::diagnostics::BuildDiagnostics[][src]

pub struct BuildDiagnostics {
    pub all_loaded_files: Vec<PathBuf>,
    // some fields omitted
}

Fields

all_loaded_files: Vec<PathBuf>

This is the list of all loaded files (with or without diagnostic) does not include the main file. FIXME: this doesn’t really belong in the diagnostics, it should be somehow returned in another way (maybe in a compilation state that include the diagnostics?)

Implementations

impl BuildDiagnostics[src]

pub fn push_diagnostic_with_span(
    &mut self,
    message: String,
    span: SourceLocation,
    level: DiagnosticLevel
)
[src]

pub fn push_error_with_span(&mut self, message: String, span: SourceLocation)[src]

pub fn push_error(&mut self, message: String, source: &dyn Spanned)[src]

pub fn push_compiler_error(&mut self, error: Diagnostic)[src]

pub fn push_property_deprecation_warning(
    &mut self,
    old_property: &str,
    new_property: &str,
    source: &dyn Spanned
)
[src]

pub fn has_error(&self) -> bool[src]

Return true if there is at least one compilation error for this file

pub fn is_empty(&self) -> bool[src]

Return true if there are no diagnostics (warnings or errors); false otherwise.

pub fn to_string_vec(&self) -> Vec<String>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

pub fn push_diagnostic(
    &mut self,
    message: String,
    source: &dyn Spanned,
    level: DiagnosticLevel
)
[src]

pub fn push_internal_error(&mut self, err: Diagnostic)[src]

pub fn iter(&self) -> impl Iterator<Item = &Diagnostic>[src]

Trait Implementations

impl Default for BuildDiagnostics[src]

impl IntoIterator for BuildDiagnostics[src]

type Item = Diagnostic

The type of the elements being iterated over.

type IntoIter = <Vec<Diagnostic> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

Auto Trait Implementations

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, 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.