Trait swc_xml_visit::VisitAstPath
source · pub trait VisitAstPath {
Show 17 methods
// Provided methods
fn visit_attribute<'ast: 'r, 'r>(
&mut self,
n: &'ast Attribute,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_attributes<'ast: 'r, 'r>(
&mut self,
n: &'ast [Attribute],
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_cdata_section<'ast: 'r, 'r>(
&mut self,
n: &'ast CdataSection,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_child<'ast: 'r, 'r>(
&mut self,
n: &'ast Child,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_children<'ast: 'r, 'r>(
&mut self,
n: &'ast [Child],
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_comment<'ast: 'r, 'r>(
&mut self,
n: &'ast Comment,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_document<'ast: 'r, 'r>(
&mut self,
n: &'ast Document,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_document_mode<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentMode,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_document_type<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentType,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_element<'ast: 'r, 'r>(
&mut self,
n: &'ast Element,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_js_word<'ast: 'r, 'r>(
&mut self,
n: &'ast JsWord,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_namespace<'ast: 'r, 'r>(
&mut self,
n: &'ast Namespace,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_opt_js_word<'ast: 'r, 'r>(
&mut self,
n: Option<&'ast JsWord>,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_opt_namespace<'ast: 'r, 'r>(
&mut self,
n: Option<&'ast Namespace>,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_processing_instruction<'ast: 'r, 'r>(
&mut self,
n: &'ast ProcessingInstruction,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_span<'ast: 'r, 'r>(
&mut self,
n: &'ast Span,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_text<'ast: 'r, 'r>(
&mut self,
n: &'ast Text,
__ast_path: &mut AstNodePath<'r>
) { ... }
}
path
only.Provided Methods§
sourcefn visit_attribute<'ast: 'r, 'r>(
&mut self,
n: &'ast Attribute,
__ast_path: &mut AstNodePath<'r>
)
fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> )
sourcefn visit_cdata_section<'ast: 'r, 'r>(
&mut self,
n: &'ast CdataSection,
__ast_path: &mut AstNodePath<'r>
)
fn visit_cdata_section<'ast: 'r, 'r>( &mut self, n: &'ast CdataSection, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn visit_child<'ast: 'r, 'r>(
&mut self,
n: &'ast Child,
__ast_path: &mut AstNodePath<'r>
)
fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> )
sourcefn visit_comment<'ast: 'r, 'r>(
&mut self,
n: &'ast Comment,
__ast_path: &mut AstNodePath<'r>
)
fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn visit_document<'ast: 'r, 'r>(
&mut self,
n: &'ast Document,
__ast_path: &mut AstNodePath<'r>
)
fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn visit_document_mode<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentMode,
__ast_path: &mut AstNodePath<'r>
)
fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn visit_document_type<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentType,
__ast_path: &mut AstNodePath<'r>
)
fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn visit_element<'ast: 'r, 'r>(
&mut self,
n: &'ast Element,
__ast_path: &mut AstNodePath<'r>
)
fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
fn visit_js_word<'ast: 'r, 'r>( &mut self, n: &'ast JsWord, __ast_path: &mut AstNodePath<'r> )
sourcefn visit_namespace<'ast: 'r, 'r>(
&mut self,
n: &'ast Namespace,
__ast_path: &mut AstNodePath<'r>
)
fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
fn visit_opt_js_word<'ast: 'r, 'r>( &mut self, n: Option<&'ast JsWord>, __ast_path: &mut AstNodePath<'r> )
fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> )
sourcefn visit_processing_instruction<'ast: 'r, 'r>(
&mut self,
n: &'ast ProcessingInstruction,
__ast_path: &mut AstNodePath<'r>
)
fn visit_processing_instruction<'ast: 'r, 'r>( &mut self, n: &'ast ProcessingInstruction, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.
fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> )
sourcefn visit_text<'ast: 'r, 'r>(
&mut self,
n: &'ast Text,
__ast_path: &mut AstNodePath<'r>
)
fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> )
This method can be overridden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.