Struct i_slint_compiler::diagnostics::BuildDiagnostics
source · [−]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
sourceimpl BuildDiagnostics
impl BuildDiagnostics
pub fn push_diagnostic_with_span(
&mut self,
message: String,
span: SourceLocation,
level: DiagnosticLevel
)
pub fn push_error_with_span(&mut self, message: String, span: SourceLocation)
pub fn push_error(&mut self, message: String, source: &dyn Spanned)
pub fn push_warning_with_span(&mut self, message: String, span: SourceLocation)
pub fn push_warning(&mut self, message: String, source: &dyn Spanned)
pub fn push_compiler_error(&mut self, error: Diagnostic)
pub fn push_property_deprecation_warning(
&mut self,
old_property: &str,
new_property: &str,
source: &dyn Spanned
)
sourcepub fn has_error(&self) -> bool
pub fn has_error(&self) -> bool
Return true if there is at least one compilation error for this file
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
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,
A: Allocator,
pub fn push_diagnostic(
&mut self,
message: String,
source: &dyn Spanned,
level: DiagnosticLevel
)
pub fn push_internal_error(&mut self, err: Diagnostic)
pub fn iter(&self) -> impl Iterator<Item = &Diagnostic>
Trait Implementations
sourceimpl Default for BuildDiagnostics
impl Default for BuildDiagnostics
sourcefn default() -> BuildDiagnostics
fn default() -> BuildDiagnostics
Returns the “default value” for a type. Read more
sourceimpl IntoIterator for BuildDiagnostics
impl IntoIterator for BuildDiagnostics
type Item = Diagnostic
type Item = Diagnostic
The type of the elements being iterated over.
type IntoIter = <Vec<Diagnostic> as IntoIterator>::IntoIter
type IntoIter = <Vec<Diagnostic> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for BuildDiagnostics
impl !Send for BuildDiagnostics
impl !Sync for BuildDiagnostics
impl Unpin for BuildDiagnostics
impl UnwindSafe for BuildDiagnostics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.