pub struct TemplateAnalyzer { /* private fields */ }Expand description
Template analyzer for static analysis
Implementations§
Source§impl TemplateAnalyzer
impl TemplateAnalyzer
Sourcepub fn analyze_directory<P: AsRef<Path>>(
&self,
dir_path: P,
) -> Result<HashMap<String, DebugInfo>>
pub fn analyze_directory<P: AsRef<Path>>( &self, dir_path: P, ) -> Result<HashMap<String, DebugInfo>>
Sourcepub fn find_unused_variables(
&self,
template_info: &DebugInfo,
context: &TemplateContext,
) -> Vec<String>
pub fn find_unused_variables( &self, template_info: &DebugInfo, context: &TemplateContext, ) -> Vec<String>
Find unused variables in context
§Arguments
template_info- Template debug informationcontext- Template context
Sourcepub fn find_missing_variables(
&self,
template_info: &DebugInfo,
context: &TemplateContext,
) -> Vec<String>
pub fn find_missing_variables( &self, template_info: &DebugInfo, context: &TemplateContext, ) -> Vec<String>
Find potentially missing variables
§Arguments
template_info- Template debug informationcontext- Template context
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemplateAnalyzer
impl RefUnwindSafe for TemplateAnalyzer
impl Send for TemplateAnalyzer
impl Sync for TemplateAnalyzer
impl Unpin for TemplateAnalyzer
impl UnwindSafe for TemplateAnalyzer
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