Struct swc_ecma_utils::IdentUsageFinder

source ·
pub struct IdentUsageFinder<'a> { /* private fields */ }
Expand description

Finds usage of ident

Implementations§

source§

impl<'a> IdentUsageFinder<'a>

source

pub fn find<N>(ident: &'a Id, node: &N) -> bool
where N: VisitWith<Self>,

Trait Implementations§

source§

impl<'a> Visit for IdentUsageFinder<'a>

source§

fn visit_accessibility(&mut self, _: &Accessibility)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_true_plus_minus(&mut self, _: &TruePlusMinus)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_array_type(&mut self, _: &TsArrayType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_call_signature_decl(&mut self, _: &TsCallSignatureDecl)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_conditional_type(&mut self, _: &TsConditionalType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_construct_signature_decl(&mut self, _: &TsConstructSignatureDecl)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_constructor_type(&mut self, _: &TsConstructorType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_entity_name(&mut self, _: &TsEntityName)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_expr_with_type_args(&mut self, _: &TsExprWithTypeArgs)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_external_module_ref(&mut self, _: &TsExternalModuleRef)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_fn_or_constructor_type(&mut self, _: &TsFnOrConstructorType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_fn_param(&mut self, _: &TsFnParam)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_fn_type(&mut self, _: &TsFnType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_import_type(&mut self, _: &TsImportType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_index_signature(&mut self, _: &TsIndexSignature)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_indexed_access_type(&mut self, _: &TsIndexedAccessType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_infer_type(&mut self, _: &TsInferType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_interface_body(&mut self, _: &TsInterfaceBody)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_interface_decl(&mut self, _: &TsInterfaceDecl)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_intersection_type(&mut self, _: &TsIntersectionType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_keyword_type(&mut self, _: &TsKeywordType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_keyword_type_kind(&mut self, _: &TsKeywordTypeKind)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_mapped_type(&mut self, _: &TsMappedType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_method_signature(&mut self, _: &TsMethodSignature)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_module_ref(&mut self, _: &TsModuleRef)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_optional_type(&mut self, _: &TsOptionalType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_parenthesized_type(&mut self, _: &TsParenthesizedType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_property_signature(&mut self, _: &TsPropertySignature)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_qualified_name(&mut self, _: &TsQualifiedName)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_rest_type(&mut self, _: &TsRestType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_this_type(&mut self, _: &TsThisType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_this_type_or_ident(&mut self, _: &TsThisTypeOrIdent)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_tuple_type(&mut self, _: &TsTupleType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type(&mut self, _: &TsType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_alias_decl(&mut self, _: &TsTypeAliasDecl)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_ann(&mut self, _: &TsTypeAnn)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_element(&mut self, _: &TsTypeElement)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_lit(&mut self, _: &TsTypeLit)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_operator(&mut self, _: &TsTypeOperator)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_operator_op(&mut self, _: &TsTypeOperatorOp)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_param(&mut self, _: &TsTypeParam)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_param_decl(&mut self, _: &TsTypeParamDecl)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_param_instantiation(&mut self, _: &TsTypeParamInstantiation)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_predicate(&mut self, _: &TsTypePredicate)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_query(&mut self, _: &TsTypeQuery)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_query_expr(&mut self, _: &TsTypeQueryExpr)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_type_ref(&mut self, _: &TsTypeRef)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_union_or_intersection_type(&mut self, _: &TsUnionOrIntersectionType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ts_union_type(&mut self, _: &TsUnionType)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_member_expr(&mut self, n: &MemberExpr)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_super_prop_expr(&mut self, n: &SuperPropExpr)

This method can be overridden to customize the visitor behavior. Read more
source§

fn visit_ident(&mut self, i: &Ident)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_array_lit(&mut self, n: &ArrayLit)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_array_pat(&mut self, n: &ArrayPat)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_arrow_expr(&mut self, n: &ArrowExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_expr(&mut self, n: &AssignExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_op(&mut self, n: &AssignOp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_pat(&mut self, n: &AssignPat)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_pat_prop(&mut self, n: &AssignPatProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_prop(&mut self, n: &AssignProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_target(&mut self, n: &AssignTarget)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_assign_target_pat(&mut self, n: &AssignTargetPat)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_atom(&mut self, n: &Atom)

§

fn visit_auto_accessor(&mut self, n: &AutoAccessor)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_await_expr(&mut self, n: &AwaitExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_big_int(&mut self, n: &BigInt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_big_int_value(&mut self, n: &BigInt)

§

fn visit_bin_expr(&mut self, n: &BinExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_binary_op(&mut self, n: &BinaryOp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_binding_ident(&mut self, n: &BindingIdent)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_block_stmt(&mut self, n: &BlockStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_block_stmt_or_expr(&mut self, n: &BlockStmtOrExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_bool(&mut self, n: &Bool)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_break_stmt(&mut self, n: &BreakStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_call_expr(&mut self, n: &CallExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_callee(&mut self, n: &Callee)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_catch_clause(&mut self, n: &CatchClause)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_class(&mut self, n: &Class)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_class_decl(&mut self, n: &ClassDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_class_expr(&mut self, n: &ClassExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_class_member(&mut self, n: &ClassMember)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_class_members(&mut self, n: &[ClassMember])

§

fn visit_class_method(&mut self, n: &ClassMethod)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_class_prop(&mut self, n: &ClassProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_computed_prop_name(&mut self, n: &ComputedPropName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_cond_expr(&mut self, n: &CondExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_constructor(&mut self, n: &Constructor)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_continue_stmt(&mut self, n: &ContinueStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_debugger_stmt(&mut self, n: &DebuggerStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_decl(&mut self, n: &Decl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_decorator(&mut self, n: &Decorator)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_decorators(&mut self, n: &[Decorator])

§

fn visit_default_decl(&mut self, n: &DefaultDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_do_while_stmt(&mut self, n: &DoWhileStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_empty_stmt(&mut self, n: &EmptyStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_all(&mut self, n: &ExportAll)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_decl(&mut self, n: &ExportDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_default_decl(&mut self, n: &ExportDefaultDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_default_expr(&mut self, n: &ExportDefaultExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_default_specifier(&mut self, n: &ExportDefaultSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_named_specifier(&mut self, n: &ExportNamedSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_namespace_specifier(&mut self, n: &ExportNamespaceSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_specifier(&mut self, n: &ExportSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_export_specifiers(&mut self, n: &[ExportSpecifier])

§

fn visit_expr(&mut self, n: &Expr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_expr_or_spread(&mut self, n: &ExprOrSpread)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_expr_or_spreads(&mut self, n: &[ExprOrSpread])

§

fn visit_expr_stmt(&mut self, n: &ExprStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_exprs(&mut self, n: &[Box<Expr>])

§

fn visit_fn_decl(&mut self, n: &FnDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_fn_expr(&mut self, n: &FnExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_for_head(&mut self, n: &ForHead)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_for_in_stmt(&mut self, n: &ForInStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_for_of_stmt(&mut self, n: &ForOfStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_for_stmt(&mut self, n: &ForStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_function(&mut self, n: &Function)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_getter_prop(&mut self, n: &GetterProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_if_stmt(&mut self, n: &IfStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_import(&mut self, n: &Import)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_import_decl(&mut self, n: &ImportDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_import_default_specifier(&mut self, n: &ImportDefaultSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_import_named_specifier(&mut self, n: &ImportNamedSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_import_phase(&mut self, n: &ImportPhase)

§

fn visit_import_specifier(&mut self, n: &ImportSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_import_specifiers(&mut self, n: &[ImportSpecifier])

§

fn visit_import_star_as_specifier(&mut self, n: &ImportStarAsSpecifier)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_invalid(&mut self, n: &Invalid)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_attr(&mut self, n: &JSXAttr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_attr_name(&mut self, n: &JSXAttrName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_attr_or_spread(&mut self, n: &JSXAttrOrSpread)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_attr_or_spreads(&mut self, n: &[JSXAttrOrSpread])

§

fn visit_jsx_attr_value(&mut self, n: &JSXAttrValue)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_closing_element(&mut self, n: &JSXClosingElement)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_closing_fragment(&mut self, n: &JSXClosingFragment)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_element(&mut self, n: &JSXElement)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_element_child(&mut self, n: &JSXElementChild)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_element_children(&mut self, n: &[JSXElementChild])

§

fn visit_jsx_element_name(&mut self, n: &JSXElementName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_empty_expr(&mut self, n: &JSXEmptyExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_expr(&mut self, n: &JSXExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_expr_container(&mut self, n: &JSXExprContainer)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_fragment(&mut self, n: &JSXFragment)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_member_expr(&mut self, n: &JSXMemberExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_namespaced_name(&mut self, n: &JSXNamespacedName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_object(&mut self, n: &JSXObject)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_opening_element(&mut self, n: &JSXOpeningElement)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_opening_fragment(&mut self, n: &JSXOpeningFragment)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_spread_child(&mut self, n: &JSXSpreadChild)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_jsx_text(&mut self, n: &JSXText)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_key(&mut self, n: &Key)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_key_value_pat_prop(&mut self, n: &KeyValuePatProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_key_value_prop(&mut self, n: &KeyValueProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_labeled_stmt(&mut self, n: &LabeledStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_lit(&mut self, n: &Lit)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_member_prop(&mut self, n: &MemberProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_meta_prop_expr(&mut self, n: &MetaPropExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_meta_prop_kind(&mut self, n: &MetaPropKind)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_method_kind(&mut self, n: &MethodKind)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_method_prop(&mut self, n: &MethodProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_module(&mut self, n: &Module)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_module_decl(&mut self, n: &ModuleDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_module_export_name(&mut self, n: &ModuleExportName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_module_item(&mut self, n: &ModuleItem)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_module_items(&mut self, n: &[ModuleItem])

§

fn visit_named_export(&mut self, n: &NamedExport)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_new_expr(&mut self, n: &NewExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_null(&mut self, n: &Null)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_number(&mut self, n: &Number)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_object_lit(&mut self, n: &ObjectLit)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_object_pat(&mut self, n: &ObjectPat)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_object_pat_prop(&mut self, n: &ObjectPatProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_object_pat_props(&mut self, n: &[ObjectPatProp])

§

fn visit_opt_accessibility(&mut self, n: Option<&Accessibility>)

§

fn visit_opt_atom(&mut self, n: Option<&Atom>)

§

fn visit_opt_block_stmt(&mut self, n: Option<&BlockStmt>)

§

fn visit_opt_call(&mut self, n: &OptCall)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_opt_catch_clause(&mut self, n: Option<&CatchClause>)

§

fn visit_opt_chain_base(&mut self, n: &OptChainBase)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_opt_chain_expr(&mut self, n: &OptChainExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_opt_expr(&mut self, n: Option<&Box<Expr>>)

§

fn visit_opt_expr_or_spread(&mut self, n: Option<&ExprOrSpread>)

§

fn visit_opt_expr_or_spreads(&mut self, n: Option<&[ExprOrSpread]>)

§

fn visit_opt_ident(&mut self, n: Option<&Ident>)

§

fn visit_opt_jsx_attr_value(&mut self, n: Option<&JSXAttrValue>)

§

fn visit_opt_jsx_closing_element(&mut self, n: Option<&JSXClosingElement>)

§

fn visit_opt_module_export_name(&mut self, n: Option<&ModuleExportName>)

§

fn visit_opt_module_items(&mut self, n: Option<&[ModuleItem]>)

§

fn visit_opt_object_lit(&mut self, n: Option<&Box<ObjectLit>>)

§

fn visit_opt_pat(&mut self, n: Option<&Pat>)

§

fn visit_opt_span(&mut self, n: Option<&Span>)

§

fn visit_opt_stmt(&mut self, n: Option<&Box<Stmt>>)

§

fn visit_opt_str(&mut self, n: Option<&Box<Str>>)

§

fn visit_opt_true_plus_minus(&mut self, n: Option<&TruePlusMinus>)

§

fn visit_opt_ts_entity_name(&mut self, n: Option<&TsEntityName>)

§

fn visit_opt_ts_namespace_body(&mut self, n: Option<&TsNamespaceBody>)

§

fn visit_opt_ts_type(&mut self, n: Option<&Box<TsType>>)

§

fn visit_opt_ts_type_ann(&mut self, n: Option<&Box<TsTypeAnn>>)

§

fn visit_opt_ts_type_param_decl(&mut self, n: Option<&Box<TsTypeParamDecl>>)

§

fn visit_opt_ts_type_param_instantiation( &mut self, n: Option<&Box<TsTypeParamInstantiation>> )

§

fn visit_opt_var_decl_or_expr(&mut self, n: Option<&VarDeclOrExpr>)

§

fn visit_opt_vec_expr_or_spreads(&mut self, n: &[Option<ExprOrSpread>])

§

fn visit_opt_vec_pats(&mut self, n: &[Option<Pat>])

§

fn visit_param(&mut self, n: &Param)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_param_or_ts_param_prop(&mut self, n: &ParamOrTsParamProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_param_or_ts_param_props(&mut self, n: &[ParamOrTsParamProp])

§

fn visit_params(&mut self, n: &[Param])

§

fn visit_paren_expr(&mut self, n: &ParenExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_pat(&mut self, n: &Pat)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_pats(&mut self, n: &[Pat])

§

fn visit_private_method(&mut self, n: &PrivateMethod)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_private_name(&mut self, n: &PrivateName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_private_prop(&mut self, n: &PrivateProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_program(&mut self, n: &Program)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_prop(&mut self, n: &Prop)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_prop_name(&mut self, n: &PropName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_prop_or_spread(&mut self, n: &PropOrSpread)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_prop_or_spreads(&mut self, n: &[PropOrSpread])

§

fn visit_regex(&mut self, n: &Regex)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_reserved_unused(&mut self, n: &ReservedUnused)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_rest_pat(&mut self, n: &RestPat)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_return_stmt(&mut self, n: &ReturnStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_script(&mut self, n: &Script)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_seq_expr(&mut self, n: &SeqExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_setter_prop(&mut self, n: &SetterProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_simple_assign_target(&mut self, n: &SimpleAssignTarget)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_span(&mut self, n: &Span)

§

fn visit_spread_element(&mut self, n: &SpreadElement)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_static_block(&mut self, n: &StaticBlock)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_stmt(&mut self, n: &Stmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_stmts(&mut self, n: &[Stmt])

§

fn visit_str(&mut self, n: &Str)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_super(&mut self, n: &Super)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_super_prop(&mut self, n: &SuperProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_switch_case(&mut self, n: &SwitchCase)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_switch_cases(&mut self, n: &[SwitchCase])

§

fn visit_switch_stmt(&mut self, n: &SwitchStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_tagged_tpl(&mut self, n: &TaggedTpl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_this_expr(&mut self, n: &ThisExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_throw_stmt(&mut self, n: &ThrowStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_tpl(&mut self, n: &Tpl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_tpl_element(&mut self, n: &TplElement)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_tpl_elements(&mut self, n: &[TplElement])

§

fn visit_try_stmt(&mut self, n: &TryStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_as_expr(&mut self, n: &TsAsExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_const_assertion(&mut self, n: &TsConstAssertion)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_enum_decl(&mut self, n: &TsEnumDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_enum_member(&mut self, n: &TsEnumMember)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_enum_member_id(&mut self, n: &TsEnumMemberId)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_enum_members(&mut self, n: &[TsEnumMember])

§

fn visit_ts_export_assignment(&mut self, n: &TsExportAssignment)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_expr_with_type_args_vec(&mut self, n: &[TsExprWithTypeArgs])

§

fn visit_ts_fn_params(&mut self, n: &[TsFnParam])

§

fn visit_ts_getter_signature(&mut self, n: &TsGetterSignature)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_import_equals_decl(&mut self, n: &TsImportEqualsDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_instantiation(&mut self, n: &TsInstantiation)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_lit(&mut self, n: &TsLit)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_lit_type(&mut self, n: &TsLitType)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_module_block(&mut self, n: &TsModuleBlock)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_module_decl(&mut self, n: &TsModuleDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_module_name(&mut self, n: &TsModuleName)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_namespace_body(&mut self, n: &TsNamespaceBody)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_namespace_decl(&mut self, n: &TsNamespaceDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_namespace_export_decl(&mut self, n: &TsNamespaceExportDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_non_null_expr(&mut self, n: &TsNonNullExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_param_prop(&mut self, n: &TsParamProp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_param_prop_param(&mut self, n: &TsParamPropParam)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_satisfies_expr(&mut self, n: &TsSatisfiesExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_setter_signature(&mut self, n: &TsSetterSignature)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_tpl_lit_type(&mut self, n: &TsTplLitType)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_tuple_element(&mut self, n: &TsTupleElement)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_tuple_elements(&mut self, n: &[TsTupleElement])

§

fn visit_ts_type_assertion(&mut self, n: &TsTypeAssertion)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_ts_type_elements(&mut self, n: &[TsTypeElement])

§

fn visit_ts_type_params(&mut self, n: &[TsTypeParam])

§

fn visit_ts_types(&mut self, n: &[Box<TsType>])

§

fn visit_unary_expr(&mut self, n: &UnaryExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_unary_op(&mut self, n: &UnaryOp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_update_expr(&mut self, n: &UpdateExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_update_op(&mut self, n: &UpdateOp)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_using_decl(&mut self, n: &UsingDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_var_decl(&mut self, n: &VarDecl)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_var_decl_kind(&mut self, n: &VarDeclKind)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_var_decl_or_expr(&mut self, n: &VarDeclOrExpr)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_var_declarator(&mut self, n: &VarDeclarator)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_var_declarators(&mut self, n: &[VarDeclarator])

§

fn visit_while_stmt(&mut self, n: &WhileStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_with_stmt(&mut self, n: &WithStmt)

This method can be overridden to customize the visitor behavior. Read more
§

fn visit_yield_expr(&mut self, n: &YieldExpr)

This method can be overridden to customize the visitor behavior. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for IdentUsageFinder<'a>

§

impl<'a> RefUnwindSafe for IdentUsageFinder<'a>

§

impl<'a> Send for IdentUsageFinder<'a>

§

impl<'a> Sync for IdentUsageFinder<'a>

§

impl<'a> Unpin for IdentUsageFinder<'a>

§

impl<'a> UnwindSafe for IdentUsageFinder<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more