MCPcopy Create free account

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

Functions27,645 in github.com/astral-sh/ruff

↓ 16 callersMethodas_subscript_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2606
↓ 16 callersMethodas_system
(&self)
crates/ty_test/src/db.rs:339
↓ 16 callersMethodassert_progressing
(&mut self, p: &Parser)
crates/ruff_python_parser/src/parser/progress.rs:35
↓ 16 callersMethodbuild
(self)
crates/ty_python_semantic/src/db.rs:229
↓ 16 callersFunctioncatch_unwind
Invokes a closure, capturing and returning the cause of an unwinding panic if one occurs. ### Thread safety This is implemented by installing a cust
crates/ruff_db/src/panic.rs:145
↓ 16 callersMethodcurrent_expressions
Returns an [`Iterator`] over the current expression hierarchy, from the current [`Expr`] through to any parents.
crates/ruff_python_semantic/src/model.rs:1487
↓ 16 callersMethoddefault_specialization
Returns the default specialization for this class. For static classes, this applies default type arguments. For dynamic classes, this returns a non-g
crates/ty_python_semantic/src/types/class.rs:627
↓ 16 callersMethodexactly_one
(self)
crates/ty_python_semantic/src/types/callable.rs:698
↓ 16 callersMethodfiles
Returns the files belonging to this project.
crates/ty_project/src/lib.rs:613
↓ 16 callersMethodfocus_range
Returns the [`FileRange`] of the function's name.
crates/ty_python_semantic/src/types/function.rs:411
↓ 16 callersMethodget
Looks up a lint by its name.
crates/ty_python_semantic/src/lint.rs:415
↓ 16 callersMethodis_always_false
(self)
crates/ty_python_core/src/lib.rs:949
↓ 16 callersMethodis_eof
(self)
crates/ruff_python_ast/src/token.rs:327
↓ 16 callersMethodis_global
Returns `true` if this is the id of the global scope
crates/ruff_python_semantic/src/scope.rs:252
↓ 16 callersMethodis_global
(self)
crates/ty_python_core/src/scope.rs:96
↓ 16 callersMethodis_keyword_variadic
Returns `true` if this is a keyword-variadic parameter.
crates/ty_python_semantic/src/types/signatures.rs:4836
↓ 16 callersMethodis_literal_expr
Returns `true` if the expression is a literal expression. A literal expression is either a string literal, bytes literal, integer, float, complex num
crates/ruff_python_ast/src/nodes.rs:63
↓ 16 callersMethodpath
Returns the relative path as specified by the user.
crates/ty_project/src/metadata/value.rs:53
↓ 16 callersFunctionplace_from_bindings
Infer the combined type from an iterator of bindings, and return it together with boundness information in a [`Place`]. The type will be a union if t
crates/ty_python_semantic/src/place.rs:670
↓ 16 callersMethodplace_id
Returns the [`ScopedPlaceId`] of the place expression.
crates/ty_python_core/src/place.rs:247
↓ 16 callersMethodposition
(&self)
crates/ruff_linter/src/noqa.rs:691
↓ 16 callersMethodrange
(&self)
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:585
↓ 16 callersMethodreturn_type
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/call.rs:235
↓ 16 callersMethodreturn_type
Compute the overall effective return type of this `ConstructorBinding`.
crates/ty_python_semantic/src/types/call/bind/constructor.rs:210
↓ 16 callersMethodreverse
(self)
crates/ruff_linter/src/rules/refurb/rules/if_expr_min_max.rs:173
↓ 16 callersMethodset
Set the value of the `AtomicNodeIndex`.
crates/ruff_python_ast/src/node_index.rs:177
↓ 16 callersMethodset_fix
Set the fix for this diagnostic.
crates/ruff_db/src/diagnostic/mod.rs:351
↓ 16 callersMethodspecialization
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:5077
↓ 16 callersMethodvalues
Returns an iterator over the fixes in the map.
crates/ruff/src/diagnostics.rs:146
↓ 16 callersMethodvalues
(&self)
crates/ruff_python_index/src/interpolated_string_ranges.rs:70
↓ 16 callersMethodwith_qualifiers
(self, qualifiers: TypeQualifiers)
crates/ty_python_semantic/src/place.rs:325
↓ 16 callersMethodwrite_char
( ch: char, quote: Quote, formatter: &mut impl std::fmt::Write, )
crates/ruff_python_literal/src/escape.rs:178
↓ 15 callersMethodas_i64
(self)
crates/ty_python_semantic/src/types/literal.rs:308
↓ 15 callersMethodas_str
The code that is ignored by the `noqa` directive.
crates/ruff_linter/src/noqa.rs:98
↓ 15 callersMethodas_u32
(self)
crates/ty_python_core/src/reachability_constraints.rs:107
↓ 15 callersFunctionassert_ok
(result: &Result<Vec<Diagnostic>, FailuresByLine>)
crates/mdtest/src/matcher.rs:623
↓ 15 callersMethodchild_scopes
Returns an iterator over the direct child scopes of `scope`.
crates/ty_python_core/src/lib.rs:562
↓ 15 callersMethodconcise_message
Introspects this diagnostic and returns what kind of "primary" message it contains for concise formatting. When we concisely format diagnostics, we l
crates/ruff_db/src/diagnostic/mod.rs:225
↓ 15 callersMethoddb
Returns the underlying test DB.
crates/ty_ide/src/completion.rs:10782
↓ 15 callersMethoddisplay_with
(self, db: &'db dyn Db, settings: DisplaySettings<'db>)
crates/ty_python_semantic/src/types/display.rs:613
↓ 15 callersMethodentry
( &mut self, node: &T, content: &dyn Format<PyFormatContext<'ast>>, )
crates/ruff_python_formatter/src/builders.rs:154
↓ 15 callersMethodexit
Current exit block, which may change during construction
crates/ruff_python_semantic/src/cfg/graph.rs:282
↓ 15 callersMethodfmt
(&self, item: &Stmt, f: &mut PyFormatter)
crates/ruff_python_formatter/src/statement/mod.rs:40
↓ 15 callersFunctionfunc
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF026.py:6
↓ 15 callersMethodgetFileHandleForModel
(model: editor.ITextModel)
playground/ty/src/Editor/Editor.tsx:521
↓ 15 callersMethodhomogeneous_element_type
(&self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/tuple.rs:2309
↓ 15 callersMethodinfer_maybe_standalone_expression
( &mut self, expression: &ast::Expr, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer/builder.rs:5754
↓ 15 callersMethodinitialization_result
Get the initialization result
crates/ty_server/tests/e2e/main.rs:780
↓ 15 callersMethodinterface
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:989
↓ 15 callersMethodintersect
Return a new tuple-spec builder that reflects the intersection of this tuple and another tuple, or `None` if the intersection is impossible (e.g., two
crates/ty_python_semantic/src/types/tuple.rs:2915
↓ 15 callersMethodis_same_typevar_as
Returns whether two bound typevars represent the same occurrence, regardless of e.g. differences in their bounds or constraints due to materialization
crates/ty_python_semantic/src/types/typevar.rs:1017
↓ 15 callersMethodis_typevartuple
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:228
↓ 15 callersMethoditer
(&self)
crates/mdtest/src/matcher.rs:32
↓ 15 callersMethoditer
(&self)
crates/ty_python_semantic/src/types/set_theoretic.rs:517
↓ 15 callersMethoditer_suffix_elements
(&self)
crates/ty_python_semantic/src/types/tuple.rs:1103
↓ 15 callersMethodkind
Return the display kind of the function-like node.
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:189
↓ 15 callersMethodlen
Length of this annotation as displayed in the stderr output
crates/ruff_annotate_snippets/src/renderer/display_list.rs:912
↓ 15 callersMethodlower
(cls, my_field: str)
crates/ruff_linter/resources/test/fixtures/pep8_naming/N805.py:30
↓ 15 callersMethodname
(&self)
crates/ty_python_semantic/src/lint.rs:94
↓ 15 callersMethodnext
(&mut self)
crates/ruff_python_formatter/src/string/normalize.rs:787
↓ 15 callersMethodnominal_class
If this type is a class instance, returns its class.
crates/ty_python_semantic/src/types.rs:1442
↓ 15 callersFunctionplace_from_declarations
Build a declared type from a [`DeclarationsIterator`]. If there is only one declaration, or all declarations declare the same type, returns `Ok(..)`.
crates/ty_python_semantic/src/place.rs:703
↓ 15 callersFunctionquit
(e)
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_6.py:9
↓ 15 callersMethodrecursively_defined
(mut self, val: RecursivelyDefined)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:623
↓ 15 callersMethodremaining_literal_union
Expand this complement to the union of enum literals that remain possible.
crates/ty_python_semantic/src/types/enums.rs:757
↓ 15 callersMethodsearch_path
(&self)
crates/ty_module_resolver/src/path.rs:86
↓ 15 callersMethodsource_type
(&self)
crates/ruff_python_formatter/src/options.rs:131
↓ 15 callersMethodtext_len
(&self)
crates/ruff_source_file/src/newlines.rs:333
↓ 15 callersMethodto_search_paths
( &self, system: &dyn System, vendored: &VendoredFileSystem, strategy: &Strate
crates/ty_module_resolver/src/settings.rs:55
↓ 15 callersMethodto_str
(&self, db: &'a dyn Db)
crates/ty_module_resolver/src/resolve.rs:1232
↓ 15 callersMethodto_text_size
( &self, db: &dyn Db, file: File, uri: &lsp_types::Uri, encoding: Posi
crates/ty_server/src/document/range.rs:133
↓ 15 callersMethodtokens
Returns the [`Tokens`] for the parsed type annotation if the checker is in a typing context or the parsed source code.
crates/ruff_linter/src/checkers/ast/mod.rs:480
↓ 15 callersFunctiontrace_source_order_visitation
(source: &str)
crates/ruff_python_ast_integration_tests/tests/source_order.rs:158
↓ 15 callersFunctiontrace_visitation
(source: &str)
crates/ruff_python_ast_integration_tests/tests/visitor.rs:167
↓ 15 callersMethodtruncate
(&mut self, a: usize)
crates/ruff_index/src/vec.rs:47
↓ 15 callersMethodtry_call
Calls `self`. Returns a [`CallError`] if `self` is (always or possibly) not callable, or if the arguments are not compatible with the formal parameter
crates/ty_python_semantic/src/types.rs:5537
↓ 15 callersMethodty
(self)
crates/ty_python_semantic/src/types/protocol_class.rs:765
↓ 15 callersMethodvalue
Return the numeric value for this [`LineLength`]
crates/ruff_linter/src/line_width.rs:27
↓ 15 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_python_ast/src/visitor.rs:33
↓ 15 callersMethodvisit_expr
(&self, expr: &mut Expr)
crates/ruff_python_ast/src/visitor/transformer.rs:20
↓ 15 callersMethodwrite
Write the transformed source file to the given writer. For Jupyter notebooks, this will write out the notebook as JSON.
crates/ruff_linter/src/source_kind.rs:161
↓ 14 callersMethodadd
Adds a member to the table or updates the flags of an existing member if it already exists. Members are identified by their expression, which is hash
crates/ty_python_core/src/member.rs:555
↓ 14 callersMethodancestors
(&self)
crates/ruff_db/src/system/path.rs:201
↓ 14 callersFunctionany_qualified_base_class
Return `true` if any base class matches a [`QualifiedName`] predicate.
crates/ruff_python_semantic/src/analyze/class.rs:16
↓ 14 callersMethodapply_type_mapping
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, )
crates/ty_python_semantic/src/types/generics.rs:1326
↓ 14 callersMethodas_function_literal
(self)
crates/ty_python_semantic/src/types.rs:1737
↓ 14 callersMethodas_slice
Returns a slice containing the remaining comments.
crates/ruff_python_formatter/src/verbatim.rs:568
↓ 14 callersMethodas_str
(&self)
crates/ruff_source_file/src/newlines.rs:258
↓ 14 callersMethodas_str
(self)
crates/ruff_linter/src/docstrings/mod.rs:99
↓ 14 callersMethodas_system_path
(&self)
crates/ty_module_resolver/src/path.rs:708
↓ 14 callersMethodas_typevar
(self)
crates/ty_python_semantic/src/types/typevar.rs:35
↓ 14 callersFunctionassert_include
(set: &ModuleGlobSet, name: &str)
crates/ty_module_resolver/src/module_glob.rs:360
↓ 14 callersFunctionclassify
Classify a function based on its scope, name, and decorators.
crates/ruff_python_semantic/src/analyze/function_type.rs:20
↓ 14 callersMethodcompletion_request
Sends a `textDocument/completion` request for the document at the given URI and position.
crates/ty_server/tests/e2e/main.rs:1008
↓ 14 callersFunctioncovering_node
Returns the node with a minimal range that fully contains `range`. If `range` is empty and falls within a parser *synthesized* node generated during
crates/ruff_python_ast/src/find_node.rs:14
↓ 14 callersFunctioncreate_constraint
( db: &'db dyn Db, builder: &'c ConstraintSetBuilder<'db>, bound_typevar: BoundTypeVar
crates/ty_python_semantic/src/types/constraints.rs:7297
↓ 14 callersMethodcurrent_scopes
Returns an iterator over all scopes, starting from the current [`Scope`].
crates/ruff_python_semantic/src/model.rs:1549
↓ 14 callersFunctiondefault_lint_registry
Returns the default registry with all known semantic lints.
crates/ty_python_semantic/src/lib.rs:72
↓ 14 callersMethodend_of_scope_symbol_declarations
( &'map self, symbol: ScopedSymbolId, )
crates/ty_python_core/src/use_def.rs:1096
↓ 14 callersMethodenum_class
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/enums.rs:714
← previousnext →801–900 of 27,645, ranked by callers