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
pub fn push_diagnostic_with_span(
&mut self,
message: String,
span: SourceLocation,
level: DiagnosticLevel
)
pub fn push_property_deprecation_warning(
&mut self,
old_property: &str,
new_property: &str,
source: &dyn Spanned
)
Return true if there is at least one compilation error for this file
Return true if there are no diagnostics (warnings or errors); false otherwise.
pub fn push_diagnostic(
&mut self,
message: String,
source: &dyn Spanned,
level: DiagnosticLevel
)
Trait Implementations
Returns the “default value” for a type. Read more
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?