MCPcopy Create free account

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

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

Methodnew
Create a new parser for the given source code.
crates/ruff_python_parser/src/parser/mod.rs:120
Methodnew
()
crates/ruff_python_parser/src/parser/scratch_buffer.rs:13
Methodnew
(tokens: &'a Tokens, source_length: TextSize)
crates/ruff_python_parser/tests/fixtures.rs:447
Methodnew
( root: &str, position_encoding: PositionEncoding, options: JsValue, )
crates/ty_wasm/src/lib.rs:120
Methodnew
(comment: &'a str)
crates/mdtest/src/assertion.rs:395
Methodnew
( md_index: &LineIndex, dimensions: impl IntoIterator<Item = BacktickOffsets>, )
crates/mdtest/src/parser.rs:292
Methodnew
(message: impl std::fmt::Display)
crates/mdtest/src/matcher.rs:66
Methodnew
( diagnostics: impl IntoIterator<Item = &'a Diagnostic>, line_start: &dyn Fn(TextRange) -> One
crates/mdtest/src/diagnostic.rs:22
Methodnew
Create a new docstring from the raw string literal contents
crates/ty_ide/src/docstring.rs:25
Methodnew
(symbol: SymbolInfo<'db>, file: File)
crates/ty_ide/src/document_symbols.rs:636
Methodnew
(symbol_info: WorkspaceSymbolInfo)
crates/ty_ide/src/workspace_symbols.rs:209
Methodnew
Create a new `SemanticTokens` instance.
crates/ty_ide/src/semantic_tokens.rs:181
Methodnew
Creates a new `NavigationTarget` where the focus and full range are identical.
crates/ty_ide/src/lib.rs:145
Methodnew
(range: FileRange, index: usize)
crates/ty_ide/src/selection_range.rs:467
Methodnew
(file: File, folding_range: FoldingRange)
crates/ty_ide/src/folding_range.rs:2809
Methodnew
(text: impl Into<String>)
crates/ty_ide/src/inlay_hints.rs:315
Methodnew
Create a new empty collection of completions. The given typed text should correspond to what we believe the user has typed as part of the next symbol
crates/ty_ide/src/completion.rs:177
Methodnew
(db: &'db dyn ty_python_semantic::Db)
crates/ty_ide/src/stub_mapping.rs:19
Methodnew
(item: CallHierarchyItem)
crates/ty_ide/src/call_hierarchy.rs:222
Methodnew
(action: GotoAction, targets: RangedValue<NavigationTargets>)
crates/ty_ide/src/goto_definition.rs:2818
Methodnew
(db: &'db dyn Db, renames: &[FileRename])
crates/ty_ide/src/will_rename.rs:193
Methodnew
(mut resolved: Vec<ResolvedDefinition<'db>>)
crates/ty_ide/src/goto.rs:252
Methodnew
(output: &'output mut String)
crates/ty_ide/src/docstring/markdown/general.rs:286
Methodnew
Creates a structured replacement from the items parsed out of one source section.
crates/ty_ide/src/docstring/markdown/structured.rs:158
Methodnew
Starts buffering a wrapped link candidate found in `line`.
crates/ty_ide/src/docstring/markdown/general/inline.rs:218
Methodnew
Creates a lossless iterator over plain text and complete inline markup. Escaped or unmatched backticks remain part of an [`InlineMarkupToken::Text`]
crates/ty_ide/src/docstring/document/syntax.rs:97
Methodnew
(lines: Vec<ParsedLine<'a>>)
crates/ty_ide/src/docstring/document/numpy.rs:137
Methodnew
(lines: Vec<ParsedLine<'a>>)
crates/ty_ide/src/docstring/document/google.rs:227
Methodnew
Constructs a line cursor from raw docstring text.
crates/ty_ide/src/docstring/document/rst.rs:80
Methodnew
(db: &'db dyn Db, file: ProgramFile<'db>, index: &'db SemanticIndex<'db>)
crates/ty_python_semantic/src/dunder_all.rs:52
Methodnew
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_python_semantic/src/pull_types.rs:26
Methodnew
(env: &'env ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types.rs:545
Methodnew
Creates a projector for narrowing `place`.
crates/ty_python_semantic/src/reachability.rs:1196
Methodnew
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_python_semantic/src/semantic_model.rs:58
Methodnew
Starts resolution using the given mode.
crates/ty_python_semantic/src/place_load.rs:47
Methodnew
Create a new importer. The `file` given should correspond to the module that we want to insert an import statement into. Source style and top-level
crates/ty_python_semantic/src/importer.rs:60
Methodnew
()
crates/ty_python_semantic/src/db.rs:79
Methodnew
(ty: Type<'db>)
crates/ty_python_semantic/src/place.rs:160
Methodnew
(file: File, path: &SystemPath, original_diagnostics: &'a [Diagnostic])
crates/ty_python_semantic/src/fixes.rs:697
Methodnew
(db: &'a dyn Db, python_file: PythonFile<'a>, diagnostics: TypeCheckDiagnostics)
crates/ty_python_semantic/src/suppression.rs:270
Methodnew
Creates a new per-overload partial-application summary.
crates/ty_python_semantic/src/types/signatures.rs:160
Methodnew
( env: &'a ProgramEnvironment<'db>, relation: TypeRelation, constraints: &'c Constrain
crates/ty_python_semantic/src/types/relation.rs:1277
Methodnew
( interface: ProtocolInterface<'db>, materialization: Option<MaterializationKind>, )
crates/ty_python_semantic/src/types/protocol_class.rs:455
Methodnew
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, soundness_policy: ComparisonSoundnes
crates/ty_python_semantic/src/types/equality.rs:312
Methodnew
()
crates/ty_python_semantic/src/types/display.rs:340
Methodnew
(interface: ProtocolInterface<'db>)
crates/ty_python_semantic/src/types/instance.rs:2186
Methodnew
( db: &'db dyn Db, env: &'c ProgramEnvironment<'db>, constraints: &'c ConstraintSetBui
crates/ty_python_semantic/src/types/generics.rs:2781
Methodnew
( db: &'db dyn Db, env: &'ast ProgramEnvironment<'db>, target_scope: ScopeId<'db>,
crates/ty_python_semantic/src/types/unpacker.rs:51
Methodnew
(db: &'db dyn Db, source: RecursiveDefinition<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:566
Methodnew
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, module: &'ast ParsedModuleRef,
crates/ty_python_semantic/src/types/narrow.rs:1694
Methodnew
(promotable: bool, recursively_defined: RecursivelyDefined)
crates/ty_python_semantic/src/types/literal.rs:48
Methodnew
(db: &'db dyn Db, constraints: OwnedConstraintSet<'db>)
crates/ty_python_semantic/src/types/known_instance.rs:44
Methodnew
(defining_class: ClassType<'db>)
crates/ty_python_semantic/src/types/typed_dict.rs:230
Methodnew
( db: &'db dyn Db, class: ClassLiteral<'db>, specialization: Option<Specialization<'db
crates/ty_python_semantic/src/types/mro.rs:623
Methodnew
(index: usize, name: Option<&Name>)
crates/ty_python_semantic/src/types/relation_error.rs:50
Methodnew
( owner_type: Type<'db>, lookup_anchor: ClassType<'db>, receiver: DescriptorReceiverKi
crates/ty_python_semantic/src/types/bound_super.rs:270
Methodnew
Create a new MRO lookup from a database and an MRO iterator.
crates/ty_python_semantic/src/types/class.rs:2854
Methodnew
(result_ty: Type<'db>, error: SubscriptErrorKind<'db>)
crates/ty_python_semantic/src/types/subscript.rs:241
Methodnew
(call_site_scope: Option<ScopeId<'db>>)
crates/ty_python_semantic/src/types/typevar.rs:936
Methodnew
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, spec: &TupleSpec<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:174
Methodnew
Qualify an alias name using the scope in which it was defined.
crates/ty_python_semantic/src/types/type_alias.rs:991
Methodnew
(db: &'db dyn Db, function: FunctionType<'db>, receiver: Type<'db>)
crates/ty_python_semantic/src/types/method.rs:165
Methodnew
(db: &'db dyn Db, last_definition: OverloadLiteral<'db>)
crates/ty_python_semantic/src/types/function.rs:854
Methodnew
()
crates/ty_python_semantic/src/types/constraints.rs:1215
Methodnew
(db: &'db dyn Db, signatures: S, kind: CallableTypeKind)
crates/ty_python_semantic/src/types/callable.rs:783
Methodnew
( db: &'db dyn Db, expression: Expression<'db>, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer.rs:823
Methodnew
( db: &'db dyn Db, program_environment: &'ast ProgramEnvironment<'db>, scope: ScopeId<
crates/ty_python_semantic/src/types/context.rs:165
Methodnew
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:115
Methodnew
(db: &'db dyn Db)
crates/ty_python_semantic/src/types/constraints/sequents.rs:255
Methodnew
( provenance: ConstraintProvenance, typevar: BoundTypeVarInstance<'db>, bound: Type<'d
crates/ty_python_semantic/src/types/constraints/variables.rs:777
Methodnew
( db: &'db dyn Db, storage: &mut ConstraintSetStorage<'db>, source_orders: FxIndexSet<
crates/ty_python_semantic/src/types/constraints/solutions.rs:120
Methodnew
(remaining: usize)
crates/ty_python_semantic/src/types/constraints/projection.rs:67
Methodnew
( constraints: impl IntoIterator<Item = AtomicConstraintId>, independent_typevars: FxHashSet<T
crates/ty_python_semantic/src/types/constraints/paths.rs:274
Methodnew
(path: &'static str, source: &'static str)
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:1197
Methodnew
Constructs a new context representing a function that can receive fixtures through one or more parameters.
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:429
Methodnew
Prepare a comparison when both sides contain enums and at least one side also contains another value. Return `None` if either enum has unsupported co
crates/ty_python_semantic/src/types/equality/enums.rs:107
Methodnew
(element_type: Type<'db>, original_tuple_type: Type<'db>, length: usize)
crates/ty_python_semantic/src/types/tuple/promotion.rs:237
Methodnew
(ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:668
Methodnew
Read value types and comparison-chain outcomes from the same inference region.
crates/ty_python_semantic/src/types/infer/expression_truthiness.rs:51
Methodnew
(ty: Type<'db>, negative_retention: NegativeRetention)
crates/ty_python_semantic/src/types/infer/comparisons.rs:193
Methodnew
(declared_type: Option<Type<'db>>, kind: TypeContextKind)
crates/ty_python_semantic/src/types/infer/type_context.rs:43
Methodnew
Creates a new builder for inferring types in a region.
crates/ty_python_semantic/src/types/infer/builder.rs:542
Methodnew
(annotation_ty: TypeAndQualifiers<'db>)
crates/ty_python_semantic/src/types/infer/builder/annotation_expression.rs:31
Methodnew
(db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:1352
Methodnew
( arguments: &'a CallArguments<'a, 'db>, parameters: &'a Parameters<'db>, errors: &'a
crates/ty_python_semantic/src/types/call/bind.rs:5048
Methodnew
(argument: Argument<'a>, ty: Option<Type<'db>>)
crates/ty_python_semantic/src/types/call/arguments.rs:85
Methodnew
( entry: CallableBinding<'db>, constructor_context: ConstructorContext<'db>, )
crates/ty_python_semantic/src/types/call/bind/constructor.rs:62
Methodnew
( file: File, sink: &'sink std::cell::RefCell<TypeCheckDiagnostics>, diag: Diagnostic,
crates/ty_python_semantic/src/diagnostic/mod.rs:210
Methodnew
(source: &'src str, range: TextRange)
crates/ty_python_semantic/src/suppression/parser.rs:15
Methodnew
()
crates/ty_python_semantic/src/place/definitions.rs:43
Methodnew
()
crates/ty_python_semantic/tests/corpus.rs:155
Methodnew
(original: &'a str, modified: &'a str)
crates/ruff_linter/src/source_kind.rs:297
Methodnew
Creates a new `LineWidth` with the given tab size.
crates/ruff_linter/src/line_width.rs:187
Methodnew
(selector: impl Into<String>, source: ValueSource)
crates/ruff_linter/src/rule_selector.rs:57
Methodnew
(tokens: &'a Tokens)
crates/ruff_linter/src/doc_lines.rs:26
Methodnew
Determines the kind of shadowing or conflict for the proposed new name of a given [`Binding`]. This function is useful for checking whether or not th
crates/ruff_linter/src/renamer.rs:400
Methodnew
(suppression: &'a Suppression)
crates/ruff_linter/src/suppression.rs:250
Methodnew
( parsed: &'a Parsed<ModModule>, source: &'a str, stylist: &'a Stylist<'a>, )
crates/ruff_linter/src/importer/mod.rs:44
Methodnew
( parsed: &'a Parsed<ModModule>, parsed_annotations_arena: &'a typed_arena::Arena<Result<Parse
crates/ruff_linter/src/checkers/ast/mod.rs:257
Methodnew
(project_root: &Path)
crates/ruff_linter/src/settings/mod.rs:789
← previousnext →25,501–25,600 of 31,562, ranked by callers