Struct sqruff_lib::core::linter::linted_file::LintedFile
source · pub struct LintedFile {
pub tree: Box<dyn Segment>,
pub templated_file: TemplatedFile,
pub violations: Vec<SQLLintError>,
}
Fields§
§tree: Box<dyn Segment>
§templated_file: TemplatedFile
§violations: Vec<SQLLintError>
Implementations§
source§impl LintedFile
impl LintedFile
sourcepub fn build_up_fixed_source_string(
source_file_slices: &[Range<usize>],
source_patches: &[FixPatch],
raw_source_string: &str
) -> String
pub fn build_up_fixed_source_string( source_file_slices: &[Range<usize>], source_patches: &[FixPatch], raw_source_string: &str ) -> String
Use patches and raw file to fix the source file.
This assumes that patches and slices have already been coordinated. If they haven’t then this will fail because we rely on patches having a corresponding slice of exactly the right file in the list of file slices.
pub fn fix_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LintedFile
impl !Send for LintedFile
impl !Sync for LintedFile
impl Unpin for LintedFile
impl !UnwindSafe for LintedFile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more