MCPcopy Create free account

hub / github.com/astral-sh/ruff / functions

Functions31,562 in github.com/astral-sh/ruff

↓ 1 callersMethodvisit_deferred
After initial traversal of the source tree has been completed, recursively visit all AST nodes that were deferred on the first pass. This includes lam
crates/ruff_linter/src/checkers/ast/mod.rs:3375
↓ 1 callersMethodvisit_deferred_class_bases
After initial traversal of the AST, visit all class bases that were deferred. This method should only be relevant in stub files, where forward refere
crates/ruff_linter/src/checkers/ast/mod.rs:3072
↓ 1 callersMethodvisit_deferred_functions
After initial traversal of the AST, visit all function bodies. Function bodies are always deferred on initial traversal of the source tree, as the bo
crates/ruff_linter/src/checkers/ast/mod.rs:3287
↓ 1 callersMethodvisit_deferred_future_type_definitions
After initial traversal of the AST, visit all "future type definitions". A "future type definition" is a type definition where [PEP 563] semantics ap
crates/ruff_linter/src/checkers/ast/mod.rs:3118
↓ 1 callersMethodvisit_deferred_lambdas
After initial traversal of the source tree has been completed, visit all lambdas. Lambdas are deferred during the initial traversal for the same reaso
crates/ruff_linter/src/checkers/ast/mod.rs:3317
↓ 1 callersMethodvisit_deferred_string_type_definitions
After initial traversal of the AST, visit all "string type definitions", i.e., type definitions that are enclosed within quotes so as to allow the typ
crates/ruff_linter/src/checkers/ast/mod.rs:3181
↓ 1 callersMethodvisit_deferred_type_alias_value
Visit an [`Expr`], and treat it as the value expression of a [PEP 695] type alias. For example: ```python type OptStr = str | None # We're visiting
crates/ruff_linter/src/checkers/ast/mod.rs:2757
↓ 1 callersMethodvisit_deferred_type_param_definitions
After initial traversal of the AST, visit all [type parameter definitions]. Type parameters natively support forward references, so are always deferr
crates/ruff_linter/src/checkers/ast/mod.rs:3155
↓ 1 callersMethodvisit_definition_body
Visits the definition with each formal parameter mapped to itself.
crates/ty_python_semantic/src/types/cyclic.rs:586
↓ 1 callersMethodvisit_edge
( &mut self, _db: &'db dyn Db, storage: &mut ConstraintSetStor
crates/ty_python_semantic/src/types/constraints.rs:4634
↓ 1 callersMethodvisit_elif_else_clause
(&mut self, elif_else_clause: &'a ElifElseClause)
crates/ruff_db/src/parsed.rs:822
↓ 1 callersMethodvisit_elif_else_clause
(&mut self, elif_else_clause: &'a ElifElseClause)
crates/ruff_python_ast/src/statement_visitor.rs:16
↓ 1 callersMethodvisit_elif_else_clause
(&self, elif_else_clause: &mut ElifElseClause)
crates/ruff_python_ast/src/visitor/transformer.rs:83
↓ 1 callersMethodvisit_elif_else_clause
Visit an [`ElifElseClause`]
crates/ruff_linter/src/checkers/ast/mod.rs:2805
↓ 1 callersMethodvisit_entry
( &self, visitor: &mut dyn WalkDirectoryVisitor, entry: walk_directory::DirectoryEntry
crates/ruff_db/src/system/memory_fs.rs:588
↓ 1 callersMethodvisit_enum_complement_type
(&self, db: &'db dyn Db, complement: EnumComplementType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:62
↓ 1 callersMethodvisit_except_handler
(&mut self, except_handler: &'a ExceptHandler)
crates/ruff_python_ast/src/statement_visitor.rs:13
↓ 1 callersMethodvisit_except_handler
(&self, except_handler: &mut ExceptHandler)
crates/ruff_python_ast/src/visitor/transformer.rs:41
↓ 1 callersMethodvisit_except_handler
(&mut self, except_handler: &'a ExceptHandler)
crates/ruff_linter/src/checkers/ast/mod.rs:2410
↓ 1 callersMethodvisit_except_handler
(&mut self, except_handler: &'a ExceptHandler)
crates/ruff_linter/src/rules/isort/block.rs:276
↓ 1 callersMethodvisit_except_handler_with_terminal
Visits an `except` handler, propagating the surrounding `terminal` flag into its body.
crates/ruff_linter/src/rules/ruff/rules/fallible_context_manager.rs:235
↓ 1 callersMethodvisit_exports
Run any lint rules that operate over the module exports (i.e., members of `__all__`).
crates/ruff_linter/src/checkers/ast/mod.rs:3387
↓ 1 callersMethodvisit_expr
(&mut self, expr: &Expr)
crates/ruff_python_ast_integration_tests/tests/visitor.rs:239
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'input Expr)
crates/ruff_python_formatter/src/expression/mod.rs:794
↓ 1 callersMethodvisit_expr
(&self, expr: &mut Expr)
crates/ruff_python_formatter/tests/normalizer.rs:54
↓ 1 callersMethodvisit_expr
(&self, expr: &mut Expr)
crates/ruff_python_ast/src/relocate.rs:19
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'db ast::Expr)
crates/ty_python_core/src/re_exports.rs:311
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a ast::Expr)
crates/ty_python_core/src/static_dunder_all.rs:89
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ty_ide/src/inlay_hints.rs:579
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a ast::Expr)
crates/ty_ide/src/will_rename.rs:956
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'ast ast::Expr)
crates/ty_python_semantic/src/types/unpacker.rs:44
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'ast ast::Expr)
crates/ty_python_semantic/src/types/infer/legacy_type_alias.rs:493
↓ 1 callersMethodvisit_expr
(&mut self, expression: &'ast ast::Expr)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:1198
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_map.rs:333
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/flake8_pytest_style/rules/patch.rs:64
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/tryceratops/rules/verbose_log_message.rs:101
↓ 1 callersMethodvisit_expr
(&mut self, expr: &Expr)
crates/ruff_linter/src/rules/pylint/helpers.rs:151
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs:527
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/flake8_bugbear/rules/reuse_of_groupby_generator.rs:253
↓ 1 callersMethodvisit_expr
(&mut self, expr: &Expr)
crates/ruff_linter/src/rules/flake8_bugbear/rules/return_in_generator.rs:147
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_variable_overrides_iterator.rs:89
↓ 1 callersMethodvisit_expr
(&mut self, expr: &Expr)
crates/ruff_linter/src/rules/flake8_bugbear/rules/function_call_in_argument_default.rs:105
↓ 1 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_linter/src/rules/pyupgrade/rules/super_call_with_parameters.rs:355
↓ 1 callersMethodvisit_expr_context
(&self, expr_context: &mut ExprContext)
crates/ruff_python_ast/src/visitor/transformer.rs:23
↓ 1 callersMethodvisit_f_string
(&self, f_string: &mut FString)
crates/ruff_python_ast/src/visitor/transformer.rs:86
↓ 1 callersMethodvisit_f_string
(&mut self, f_string: &'_ ast::FString)
crates/ruff_linter/src/rules/flake8_quotes/rules/avoidable_escaped_quote.rs:124
↓ 1 callersMethodvisit_function_type
(&self, db: &'db dyn Db, function: FunctionType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:556
↓ 1 callersMethodvisit_generators
Visit a list of [`Comprehension`] nodes, assumed to be the comprehensions that compose a generator expression, like a list or set comprehension.
crates/ruff_linter/src/checkers/ast/mod.rs:2624
↓ 1 callersMethodvisit_generic_alias_type
(&self, db: &'db dyn Db, alias: GenericAlias<'db>)
crates/ty_python_semantic/src/types/visitor.rs:584
↓ 1 callersMethodvisit_if_expression
Visits a conditional expression without reserving its flow snapshots in every recursive expression-visitor frame. This matters for deeply nested expre
crates/ty_python_core/src/builder.rs:3748
↓ 1 callersMethodvisit_import
Visit a top-level import statement.
crates/ruff_linter/src/importer/mod.rs:60
↓ 1 callersMethodvisit_impossible
( &mut self, _db: &'db dyn Db, _storage: &mut ConstraintSetSto
crates/ty_python_semantic/src/types/constraints.rs:4610
↓ 1 callersMethodvisit_intersection_type
(&self, db: &'db dyn Db, intersection: IntersectionType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:58
↓ 1 callersMethodvisit_intersection_type
(&self, db: &'db dyn Db, intersection: IntersectionType<'db>)
crates/ty_python_semantic/src/types/tuple/promotion.rs:69
↓ 1 callersMethodvisit_keyword
(&mut self, keyword: &'a Keyword)
crates/ruff_db/src/parsed.rs:768
↓ 1 callersMethodvisit_keyword
(&mut self, keyword: &'a Keyword)
crates/ruff_python_ast/src/visitor.rs:66
↓ 1 callersMethodvisit_keyword
(&self, keyword: &mut Keyword)
crates/ruff_python_ast/src/relocate.rs:129
↓ 1 callersMethodvisit_keyword
(&self, keyword: &mut Keyword)
crates/ruff_python_ast/src/visitor/transformer.rs:53
↓ 1 callersMethodvisit_keyword
(&mut self, keyword: &'ast ast::Keyword)
crates/ty_python_core/src/builder.rs:5727
↓ 1 callersMethodvisit_known_instance_type
(&self, db: &'db dyn Db, known: KnownInstanceType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:571
↓ 1 callersMethodvisit_live_variables
Visit only references that survive composition. For example, the equation for the parameter in `type Ignore[T] = int` is bivariant, so `Ignore[P[T]]`
crates/ty_python_semantic/src/types/variance/equations.rs:109
↓ 1 callersMethodvisit_match_case
(&mut self, match_case: &'a MatchCase)
crates/ruff_python_ast/src/statement_visitor.rs:19
↓ 1 callersMethodvisit_match_case
(&self, match_case: &mut MatchCase)
crates/ruff_python_ast/src/visitor/transformer.rs:68
↓ 1 callersFunctionvisit_matching_typeddict_field_types
Visit matching `TypedDict` field types, ignoring other alternatives and missing fields.
crates/ty_python_semantic/src/types/narrow.rs:5661
↓ 1 callersMethodvisit_method_wrapper_type
( &self, db: &'db dyn Db, method_wrapper: KnownBoundMethodType<'db>, )
crates/ty_python_semantic/src/types/visitor.rs:128
↓ 1 callersMethodvisit_module
(&self, module: &mut ast::Mod)
crates/ruff_python_formatter/tests/normalizer.rs:30
↓ 1 callersMethodvisit_module
Visit a [`Module`].
crates/ruff_linter/src/checkers/ast/mod.rs:2614
↓ 1 callersMethodvisit_node_inner
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:330
↓ 1 callersMethodvisit_nominal_instance_type
(&self, db: &'db dyn Db, nominal: NominalInstanceType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:112
↓ 1 callersMethodvisit_non_type_definition
Visit an [`Expr`], and treat it as _not_ a type definition.
crates/ruff_linter/src/checkers/ast/mod.rs:2778
↓ 1 callersMethodvisit_nonbinding_target
(&mut self, target: &'db ast::Expr)
crates/ty_ide/src/symbols.rs:843
↓ 1 callersMethodvisit_overload_set
Visits the given set of overload candidates, invoking the provided callback for each binding.
crates/ty_python_semantic/src/types/call/bind.rs:1117
↓ 1 callersMethodvisit_parameter
(&self, parameter: &mut Parameter)
crates/ruff_python_ast/src/visitor/transformer.rs:50
↓ 1 callersMethodvisit_parameter
(&mut self, parameter: &ast::Parameter)
crates/ty_python_semantic/src/pull_types.rs:118
↓ 1 callersMethodvisit_parameter
(&mut self, parameter: &'a Parameter)
crates/ruff_linter/src/checkers/ast/mod.rs:2473
↓ 1 callersMethodvisit_parameter_with_default
(&mut self, parameter_with_default: &'a ParameterWithDefault)
crates/ruff_python_ast/src/visitor/source_order.rs:95
↓ 1 callersMethodvisit_pattern
(&mut self, pattern: &'ast ast::Pattern)
crates/ty_python_core/src/builder.rs:5782
↓ 1 callersMethodvisit_pattern
(&mut self, pattern: &'ast ast::Pattern)
crates/ty_python_core/src/builder/loop_bindings_visitor.rs:171
↓ 1 callersMethodvisit_pattern
(&mut self, pattern: &'a Pattern)
crates/ruff_python_parser/src/semantic_errors.rs:2278
↓ 1 callersMethodvisit_pattern
(&mut self, pattern: &'a Pattern)
crates/ruff_linter/src/checkers/ast/mod.rs:2488
↓ 1 callersMethodvisit_pattern_arguments
(&self, pattern_arguments: &mut PatternArguments)
crates/ruff_python_ast/src/visitor/transformer.rs:74
↓ 1 callersMethodvisit_pattern_keyword
(&self, pattern_keyword: &mut PatternKeyword)
crates/ruff_python_ast/src/visitor/transformer.rs:77
↓ 1 callersMethodvisit_protocol_instance_type
( &self, db: &'db dyn Db, protocol: ProtocolInstanceType<'db>, )
crates/ty_python_semantic/src/types/visitor.rs:614
↓ 1 callersMethodvisit_recursive_type
(&self, db: &'db dyn Db, recursive: RecursiveType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:606
↓ 1 callersFunctionvisit_recursive_type_normalization
Runs recursive type normalization under a scoped guard keyed by function literal identity. `TypeOf` can make a function signature refer back to the s
crates/ty_python_semantic/src/types/function.rs:117
↓ 1 callersMethodvisit_runtime_ambiguous_annotation
Visit an [`Expr`], and treat it as a runtime-ambiguous type annotation.
crates/ruff_linter/src/checkers/ast/mod.rs:2723
↓ 1 callersMethodvisit_runtime_evaluated_annotation
Visit an [`Expr`], and treat it as a runtime-evaluated type annotation.
crates/ruff_linter/src/checkers/ast/mod.rs:2707
↓ 1 callersMethodvisit_runtime_required_annotation
Visit an [`Expr`], and treat it as a runtime-required type annotation.
crates/ruff_linter/src/checkers/ast/mod.rs:2715
↓ 1 callersMethodvisit_satisfied
( &mut self, _db: &'db dyn Db, _storage: &mut ConstraintSetSto
crates/ty_python_semantic/src/types/constraints.rs:4592
↓ 1 callersMethodvisit_singleton
(&mut self, _singleton: &'a Singleton)
crates/ruff_python_ast/src/visitor/source_order.rs:48
↓ 1 callersMethodvisit_slot_descriptor_type
(&self, db: &'db dyn Db, descriptor: SlotDescriptorType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:76
↓ 1 callersMethodvisit_specialization
Recursively visit a type and its specializations. The provided closure will be called on the type itself and its nested types, along with their varia
crates/ty_python_semantic/src/types.rs:4075
↓ 1 callersMethodvisit_specialization_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, polarity: TypeVarVaria
crates/ty_python_semantic/src/types.rs:4088
↓ 1 callersMethodvisit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_python_ast/src/visitor.rs:24
↓ 1 callersMethodvisit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_python_ast/src/statement_visitor.rs:10
↓ 1 callersMethodvisit_stmt
(&self, stmt: &mut Stmt)
crates/ruff_python_ast/src/visitor/transformer.rs:11
↓ 1 callersMethodvisit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_python_ast/src/visitor/source_order.rs:28
↓ 1 callersMethodvisit_stmt
(&mut self, stmt: &'a ast::Stmt)
crates/ty_python_core/src/static_dunder_all.rs:105
↓ 1 callersMethodvisit_stmt
(&mut self, stmt: &'ast ast::Stmt)
crates/ty_python_core/src/builder.rs:5639
↓ 1 callersMethodvisit_stmt
(&mut self, stmt: &'db ast::Stmt)
crates/ty_ide/src/symbols.rs:1532
← previousnext →14,101–14,200 of 31,562, ranked by callers