Struct sixtyfps_compilerlib::diagnostics::BuildDiagnostics [−][src]
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]
impl BuildDiagnostics
[src]pub fn push_diagnostic_with_span(
&mut self,
message: String,
span: SourceLocation,
level: DiagnosticLevel
)
[src]
&mut self,
message: String,
span: SourceLocation,
level: DiagnosticLevel
)
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]
&mut self,
old_property: &str,
new_property: &str,
source: &dyn Spanned
)
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>ⓘ
[src]
pub fn push_diagnostic(
&mut self,
message: String,
source: &dyn Spanned,
level: DiagnosticLevel
)
[src]
&mut self,
message: String,
source: &dyn Spanned,
level: DiagnosticLevel
)
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 Default for BuildDiagnostics
[src]fn default() -> BuildDiagnostics
[src]
impl IntoIterator 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?
fn into_iter(self) -> Self::IntoIter
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BuildDiagnostics
impl !RefUnwindSafe for BuildDiagnostics
impl !Send for BuildDiagnostics
impl !Send for BuildDiagnostics
impl !Sync for BuildDiagnostics
impl !Sync for BuildDiagnostics
impl Unpin for BuildDiagnostics
impl Unpin for BuildDiagnostics
impl UnwindSafe for BuildDiagnostics
impl UnwindSafe for BuildDiagnostics