Trait swc_html_visit::VisitAstPath
source · pub trait VisitAstPath {
Show 19 methods
fn visit_atom<'ast: 'r, 'r>(
&mut self,
n: &'ast Atom,
__ast_path: &mut AstNodePath<'r>
) { ... }
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_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_fragment<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentFragment,
__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_atom<'ast: 'r, 'r>(
&mut self,
n: Option<&'ast Atom>,
__ast_path: &mut AstNodePath<'r>
) { ... }
fn visit_opt_document_fragment<'ast: 'r, 'r>(
&mut self,
n: Option<&'ast DocumentFragment>,
__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_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§
fn visit_atom<'ast: 'r, 'r>(
&mut self,
n: &'ast Atom,
__ast_path: &mut AstNodePath<'r>
)
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 overriden 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_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 overriden 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 overriden 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 overriden 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_fragment<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentFragment,
__ast_path: &mut AstNodePath<'r>
)
fn visit_document_fragment<'ast: 'r, 'r>(
&mut self,
n: &'ast DocumentFragment,
__ast_path: &mut AstNodePath<'r>
)
This method can be overriden 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 overriden 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 overriden 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 overriden 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 overriden 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_atom<'ast: 'r, 'r>(
&mut self,
n: Option<&'ast Atom>,
__ast_path: &mut AstNodePath<'r>
)
fn visit_opt_document_fragment<'ast: 'r, 'r>(
&mut self,
n: Option<&'ast DocumentFragment>,
__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_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 overriden to customize the visitor behavior.
This calls VisitWithPath::visit_children_with_path
on n
by default. The default method visit children nodes with self
.