MCPcopy Create free account

hub / github.com/LaBatata101/sith-language-server / functions

Functions2,449 in github.com/LaBatata101/sith-language-server

↓ 3 callersMethodparse_list
Parses a list of elements where each element is parsed using the given `parse_element` function. The difference between this function and `parse_list
crates/sith_python_parser/src/parser/mod.rs:461
↓ 3 callersMethodparse_match_body
Parses the body of a `match` statement. This method expects that the parser is positioned at a `Newline` token. If not, it adds a syntax error and co
crates/sith_python_parser/src/parser/statement.rs:2312
↓ 3 callersMethodparse_parameter
Parses a single parameter for the given function kind. Matches either the `param_no_default_star_annotation` or `param_no_default` rule in the [Pytho
crates/sith_python_parser/src/parser/statement.rs:2643
↓ 3 callersMethodparse_tuple_expression
Parses multiple items separated by a comma into a tuple expression. Uses the `parse_func` to parse each item in the tuple.
crates/sith_python_parser/src/parser/expression.rs:1735
↓ 3 callersMethodparse_unicode_literal
(&mut self, literal_number: usize)
crates/sith_python_parser/src/string.rs:110
↓ 3 callersMethodparse_with_item
Parses a single `with` item. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-with_item>
crates/sith_python_parser/src/parser/statement.rs:2091
↓ 3 callersMethodpeek_byte
(&self)
crates/sith_python_parser/src/string.rs:106
↓ 3 callersFunctionpick_best_import
Given a current "best" import and a newly discovered result, returns the preferred result.
crates/ruff_python_resolver/src/resolver.rs:482
↓ 3 callersFunctionproject_root
()
crates/sith_python_parser/tests/generate_inline_tests.rs:16
↓ 3 callersMethodquote_char
Returns the quote character for the current f-string.
crates/sith_python_parser/src/lexer/fstring.rs:39
↓ 3 callersMethodresolve_declaration_type
( &mut self, declaration: &'db Declaration, nodes: &Nodes, )
crates/sith_semantic_model/src/type_inference.rs:1043
↓ 3 callersFunctionresolve_import
Resolves an import, given the current file and the import descriptor. The algorithm is as follows: 1. If the import is relative, convert it to an ab
crates/ruff_python_resolver/src/resolver.rs:736
↓ 3 callersMethodresolves_namespace_package
Returns `true` if the [`ImplicitImports`] resolves all the symbols requested by a module descriptor.
crates/ruff_python_resolver/src/implicit_imports.rs:131
↓ 3 callersMethodruff_path
(&self)
crates/sith_server/src/session/settings.rs:270
↓ 3 callersMethodset_edits_for_document
Sets the edits made to a specific document. This should only be called once for each document `uri`, and will fail if this is called for the same `uri
crates/sith_server/src/edit.rs:92
↓ 3 callersMethodshow
(column?: any, preserveFocus?: any)
editors/vscode/src/utils/logger.ts:102
↓ 3 callersMethodsource_location
(&self, offset: TextSize)
crates/ruff_source_file/src/lib.rs:37
↓ 3 callersMethodstart_token
Mark the current position of the cursor as the start of the token which is going to be lexed. Use [`Cursor::token_len`] to get the length of the lexe
crates/sith_python_parser/src/lexer/cursor.rs:82
↓ 3 callersFunctionstring_parser_escaped_eol
(eol: &str)
crates/sith_python_parser/src/string.rs:489
↓ 3 callersMethodsymbol_name
(&self, file: &PathBuf, symbol_id: SymbolId)
crates/sith_semantic_model/src/db.rs:80
↓ 3 callersMethodsymbols
(&self)
crates/sith_semantic_model/src/scope.rs:95
↓ 3 callersMethodtry_compare
(self, other: Indentation)
crates/sith_python_parser/src/lexer/indentation.rs:70
↓ 3 callersMethodtry_end_format_spec
Decrements the format spec depth if the current f-string is in a format spec.
crates/sith_python_parser/src/lexer/fstring.rs:108
↓ 3 callersMethodtry_parse_type_params
Try to parse a type parameter list. If the parser is not at the start of a type parameter list, return `None`. See: <https://docs.python.org/3/refere
crates/sith_python_parser/src/parser/statement.rs:3027
↓ 3 callersFunctionunwrap
A const `Option::unwrap` without nightly features: [Tracking issue](https://github.com/rust-lang/rust/issues/67441)
crates/ruff_source_file/src/line_index.rs:340
↓ 3 callersMethodversion
(&self)
crates/sith_server/src/edit/document.rs:43
↓ 3 callersMethodvisit_annotation
(&self, expr: &mut Expr)
crates/sith_python_ast/src/visitor/transformer.rs:13
↓ 3 callersMethodvisit_bool_op
(&mut self, bool_op: &'a BoolOp)
crates/sith_python_ast/src/visitor.rs:39
↓ 3 callersMethodvisit_type_params
(&self, type_params: &mut TypeParams)
crates/sith_python_ast/src/visitor/transformer.rs:61
↓ 3 callersFunctionwalk_f_string_element
( visitor: &mut V, f_string_element: &'a FStringElement, )
crates/sith_python_ast/src/visitor.rs:747
↓ 3 callersMethodwith_invalid
(mut self)
crates/sith_python_ast/src/nodes.rs:1919
↓ 3 callersMethodworkspace_for_url
(&self, url: &Url)
crates/sith_server/src/session/workspace.rs:275
↓ 2 callersMethod_attr_getter
Return the attribute value of an individual DOM node. Parameters ---------- obj : node-like A DOM node.
crates/sith_server/resources/test/fixtures/pandas_html.py:253
↓ 2 callersMethod_handle_hidden_tables
Return list of tables, potentially removing hidden elements Parameters ---------- tbl_list : list of node-like
crates/sith_server/resources/test/fixtures/pandas_html.py:553
↓ 2 callersMethod_parse_td
Return the td elements from a row element. Parameters ---------- obj : node-like A DOM <tr> node.
crates/sith_server/resources/test/fixtures/pandas_html.py:305
↓ 2 callersFunction_print_as_set
(s)
crates/sith_server/resources/test/fixtures/pandas_html.py:919
↓ 2 callersMethodadd_typeshed_path
(&mut self, typeshed_root: PathBuf)
crates/ruff_python_resolver/src/cache.rs:87
↓ 2 callersMethodapply_changes
( &mut self, changes: Vec<lsp_types::TextDocumentContentChangeEvent>, new_version: Doc
crates/sith_server/src/edit/document.rs:47
↓ 2 callersMethodapply_to_current_thread
(self)
crates/sith_server/src/server/schedule/thread/priority.rs:25
↓ 2 callersMethodas_any_string_flags
Converts this type to [`AnyStringFlags`], setting the equivalent flags.
crates/sith_python_parser/src/token.rs:758
↓ 2 callersMethodas_ptr
(&self)
crates/sith_python_ast/src/node.rs:5283
↓ 2 callersMethodas_u8
Return the [`Int`] as an u8, if it can be represented as that data type.
crates/sith_python_ast/src/int.rs:68
↓ 2 callersMethodat_offset
(&self, table: &'a SymbolTable, offset: u32)
crates/sith_semantic_model/src/declaration.rs:293
↓ 2 callersMethodat_pattern_start
Returns `true` if the current token is a valid start of a pattern.
crates/sith_python_parser/src/parser/pattern.rs:54
↓ 2 callersMethodat_stmt
Returns `true` if the current token is the start of a simple, compound or expression statement.
crates/sith_python_parser/src/parser/statement.rs:94
↓ 2 callersMethodbinary_search
(&self, value: &T)
crates/ruff_index/src/slice.rs:104
↓ 2 callersMethodbuild
(self)
crates/sith_python_ast/src/name.rs:334
↓ 2 callersMethodbuild_symbol_table
( &self, path: &Path, file_id: FileId, content: &str, )
crates/sith_semantic_model/src/indexer.rs:553
↓ 2 callersMethodbump_cmp_op
Bump the appropriate token(s) for the given comparison operator.
crates/sith_python_parser/src/parser/expression.rs:998
↓ 2 callersMethodchecked_sub
(self, rhs: TextSize)
crates/ruff_text_size/src/size.rs:102
↓ 2 callersMethodcheckpoint
Creates a checkpoint to which the token source can later return to using [`Self::rewind`].
crates/sith_python_parser/src/token_source.rs:151
↓ 2 callersMethodcheckpoint
Creates a checkpoint to which the parser can later return to using [`Self::rewind`].
crates/sith_python_parser/src/parser/mod.rs:648
↓ 2 callersMethodcollection_stub_path
(&self)
crates/sith_semantic_model/src/db.rs:49
↓ 2 callersFunctioncompute_mro
TODO: return a proper error type instead of a string
crates/sith_semantic_model/src/mro.rs:11
↓ 2 callersFunctionconvert_to_optional
Turn the fields from schemas into Optional fields
crates/sith_semantic_model/resources/tests/fixtures/small_project/tim/schemas/utils.py:4
↓ 2 callersMethodcreate_error
(self, p: &Parser)
crates/sith_python_parser/src/parser/mod.rs:1150
↓ 2 callersFunctioncreate_import_module_descriptor
(import_stmt: T)
crates/sith_python_ast_utils/src/lib.rs:123
↓ 2 callersMethodcurrent_flags
Returns the flags for the current token.
crates/sith_python_parser/src/token_source.rs:51
↓ 2 callersMethodcurrent_range
Returns the range of the current token.
crates/sith_python_parser/src/lexer.rs:119
↓ 2 callersMethodcurrent_token_id
(&self)
crates/sith_python_parser/src/parser/mod.rs:315
↓ 2 callersMethoddedent
(&mut self)
crates/sith_python_parser/src/lexer/indentation.rs:119
↓ 2 callersMethoddedent_one
Dedent one level to eventually reach `new_indentation`. Returns `Err` if the `new_indentation` is greater than the new current indentation level.
crates/sith_python_parser/src/lexer/indentation.rs:102
↓ 2 callersMethoddo_bump
Bumps the token source to the next non-trivia token without adding the current token to the token vector. It does add the trivia tokens to the token v
crates/sith_python_parser/src/token_source.rs:127
↓ 2 callersFunctionensure_home_assistant_repo
Ensures Home Assistant repository is cloned and up to date
crates/sith_benchmark/src/lib.rs:221
↓ 2 callersMethoderror
(...messages: unknown[])
editors/vscode/src/utils/logger.ts:24
↓ 2 callersFunctionexecuteFile
* Function to execute a command and return the stdout.
editors/vscode/src/utils/fs.ts:187
↓ 2 callersFunctionexecute_ruff_command
( ruff_path: impl AsRef<OsStr>, args: I, stdin_input: impl AsRef<[u8]>, )
crates/sith_server/src/util/ruff.rs:58
↓ 2 callersMethodextend
(&mut self, iter: Iter)
crates/ruff_index/src/vec.rs:111
↓ 2 callersFunctionfind_active_parameter
FIX: In the following case: def foo(p1, p2, /, p_or_k1, *args, kw1, kw2, **kwargs): pass foo(1, 2, 3, 4, 5, 6, kw1=1, <cursor>) `**kwargs` is highlig
crates/sith_server/src/server/api/requests/signature_help.rs:201
↓ 2 callersFunctionfind_newline
(text: &str)
crates/ruff_source_file/src/newlines.rs:58
↓ 2 callersMethodfind_positional
Return the positional argument at the given index, or `None` if no such argument exists.
crates/sith_python_ast/src/nodes.rs:3508
↓ 2 callersFunctionfind_typeshed_path
Finds the `typeshed` path for the given module descriptor. Supports both standard library and third-party `typeshed` lookups.
crates/ruff_python_resolver/src/resolver.rs:429
↓ 2 callersMethodfirst
(&self)
crates/ruff_index/src/slice.rs:44
↓ 2 callersFunctionfix_all_edit
(snapshot: &DocumentSnapshot)
crates/sith_server/src/server/api/requests/code_action_resolve.rs:84
↓ 2 callersFunctionfix_diagnostics
( snapshot: &'a DocumentSnapshot, extra_args: I, )
crates/sith_server/src/edit/fix.rs:13
↓ 2 callersFunctionfoo
()
crates/sith_python_parser/resources/inline/err/type_params_empty.py:1
↓ 2 callersFunctionformat_full_document
(snapshot: &DocumentSnapshot)
crates/sith_server/src/server/api/requests/format.rs:28
↓ 2 callersMethodfull_line_end
Computes the offset that is right after the newline character that ends `offset`'s line. ## Examples ``` # use ruff_text_size::{Ranged, TextRange, T
crates/ruff_source_file/src/locator.rs:119
↓ 2 callersFunctiongenerate_ruff_lint_diagnostics
( snapshot: &DocumentSnapshot, )
crates/sith_server/src/server/api/diagnostics.rs:147
↓ 2 callersFunctiongenerate_sith_diagnostics
(snapshot: &DocumentSnapshot)
crates/sith_server/src/server/api/diagnostics.rs:86
↓ 2 callersMethodget
(&self, index: DeclId)
crates/sith_semantic_model/src/declaration.rs:39
↓ 2 callersFunctiongetWorkspaceFolders
()
editors/vscode/src/utils/fs.ts:13
↓ 2 callersFunctiongetWorkspaceSettings
(namespace: string, workspace: WorkspaceFolder)
editors/vscode/src/utils/settings.ts:58
↓ 2 callersFunctionget_completion_item_kind
( db: &SymbolTableDb, path: &PathBuf, symbol: &Symbol, )
crates/sith_server/src/server/api/requests/completion.rs:483
↓ 2 callersFunctionget_doc_str
( db: &SymbolTableDb, snapshot: &DocumentSnapshot, file_id: FileId, node_id: NodeId, ident
crates/sith_server/src/server/api/requests/hover.rs:127
↓ 2 callersMethodget_file_uri
(&self, file: impl AsRef<Path>)
crates/sith_server/src/server/api/tests/lsp_client.rs:100
↓ 2 callersFunctionget_module_documentation
(db: &SymbolTableDb, path: &PathBuf)
crates/sith_server/src/server/api/requests/completion/resolve.rs:126
↓ 2 callersFunctionget_py_typed_info
Returns the `py.typed` information for the given directory, if any.
crates/ruff_python_resolver/src/py_typed.rs:17
↓ 2 callersFunctionget_python_module_names_in_path
(path: impl AsRef<Path>)
crates/sith_python_utils/src/lib.rs:138
↓ 2 callersFunctionget_thirdparty_and_builtin_modules_candidates
( db: &SymbolTableDb, )
crates/sith_server/src/server/api/requests/completion.rs:564
↓ 2 callersMethodglobal_scope
Returns the global [`Scope`] of a `file`.
crates/sith_semantic_model/src/db.rs:109
↓ 2 callersMethodhandle_context
(&mut self, ctx: &ContextExpr, name: &str, range: &TextRange)
crates/sith_semantic_model/src/symbol_table.rs:347
↓ 2 callersMethodhandle_typing_stub_assignment_or_annotation
(&mut self, node: AnyNodeRef)
crates/sith_semantic_model/src/type_inference.rs:787
↓ 2 callersFunctionidentifier_at_offset
Determines which identifier in a dot-separated string an offset falls into.
crates/sith_python_ast_utils/src/lib.rs:105
↓ 2 callersMethodindex_files
( &mut self, files_to_index: impl Iterator<Item = Arc<PathBuf>>, tables: Arc<Mutex<Sym
crates/sith_semantic_model/src/indexer.rs:419
↓ 2 callersMethodinfer_imported_symbol
( &mut self, node: &AnyNodeRef, name: &str, import_source: &'db ImportSource,
crates/sith_semantic_model/src/type_inference.rs:1179
↓ 2 callersFunctioninstall_tests
(tests: &HashMap<String, Test>, target_dir: &str)
crates/sith_python_parser/tests/generate_inline_tests.rs:101
↓ 2 callersMethodinto_errors
Consumes the [`Parsed`] output and returns a list of syntax errors found during parsing.
crates/sith_python_parser/src/lib.rs:263
↓ 2 callersMethodinto_suite
Consumes the [`Parsed`] output and returns the module body as a [`Suite`].
crates/sith_python_parser/src/lib.rs:338
↓ 2 callersMethodis_builtin
(&self)
crates/sith_semantic_model/src/symbol.rs:64
← previousnext →401–500 of 2,449, ranked by callers