[−][src]Struct sixtyfps_compilerlib::diagnostics::FileDiagnostics
This structure holds all the diagnostics for a given files
Fields
inner: Vec<Diagnostic>
List of diagnostics related to this file
current_path: SourceFile
file path
source: Option<String>
Complete source code of the path, used to map from offset to line number
line_offsets: OnceCell<Vec<usize>>
The offset of each linebreak
Implementations
impl FileDiagnostics
[src]
pub fn push_diagnostic_with_span(
&mut self,
message: String,
span: Span,
level: Level
)
[src]
&mut self,
message: String,
span: Span,
level: Level
)
pub fn push_error_with_span(&mut self, message: String, span: Span)
[src]
pub fn push_error(&mut self, message: String, source: &dyn Spanned)
[src]
pub fn push_compiler_error(&mut self, error: CompilerDiagnostic)
[src]
pub fn has_error(&self) -> bool
[src]
Return true if there is at least one compilation error for this file
pub fn to_string_vec(&self) -> Vec<String>
[src]
pub fn new_from_error(path: PathBuf, err: Error) -> Self
[src]
Trait Implementations
impl Debug for FileDiagnostics
[src]
impl Default for FileDiagnostics
[src]
fn default() -> FileDiagnostics
[src]
impl Extend<FileDiagnostics> for BuildDiagnostics
[src]
fn extend<T: IntoIterator<Item = FileDiagnostics>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl IntoIterator for FileDiagnostics
[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?
fn into_iter(self) -> Self::IntoIter
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FileDiagnostics
impl !Send for FileDiagnostics
impl !Sync for FileDiagnostics
impl Unpin for FileDiagnostics
impl !UnwindSafe for FileDiagnostics
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<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[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>,