Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LaBatata101/sith-language-server
/ functions
Functions
2,449 in github.com/LaBatata101/sith-language-server
⨍
Functions
2,449
◇
Types & classes
1,017
↳
Endpoints
14
↓ 1 callers
Function
build_typeshed_third_party_package_map
Generate a map from PyPI-registered package name to a list of paths containing the package's stubs.
crates/ruff_python_resolver/src/search.rs:269
↓ 1 callers
Function
builtin_completion_candidates
( db: &SymbolTableDb, )
crates/sith_server/src/server/api/requests/completion.rs:587
↓ 1 callers
Method
builtin_symbol_table
(&self)
crates/sith_semantic_model/src/indexer.rs:576
↓ 1 callers
Method
bump_soft_keyword_as_name
Bumps the soft keyword token as a `Name` token. # Panics If the current token is not a soft keyword.
crates/sith_python_parser/src/parser/mod.rs:370
↓ 1 callers
Method
bump_ts
Bumps the current token assuming it is found in the given token set. # Panics If the current token is not found in the given token set.
crates/sith_python_parser/src/parser/mod.rs:346
↓ 1 callers
Function
c3_merge
(mut sequences: Vec<VecDeque<ClassBase>>)
crates/sith_semantic_model/src/mro.rs:126
↓ 1 callers
Function
cargo_target_directory
()
crates/sith_benchmark/src/lib.rs:91
↓ 1 callers
Function
checkIfConfigurationChanged
( e: ConfigurationChangeEvent, namespace: string, )
editors/vscode/src/utils/settings.ts:117
↓ 1 callers
Method
checked_add
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:279
↓ 1 callers
Method
checked_sub
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:295
↓ 1 callers
Method
classify_match_token
Classify the `match` soft keyword token. # Panics If the parser isn't positioned at a `match` token.
crates/sith_python_parser/src/parser/statement.rs:3310
↓ 1 callers
Function
clear_diagnostics_for_document
( snapshot: &DocumentSnapshot, notifier: &Notifier, )
crates/sith_server/src/server/api/diagnostics.rs:249
↓ 1 callers
Method
client_settings
(&self)
crates/sith_server/src/session.rs:183
↓ 1 callers
Function
clone_repository
(repo_path: &Path)
crates/sith_benchmark/src/lib.rs:230
↓ 1 callers
Method
close_document
(&mut self, url: &Url)
crates/sith_server/src/session.rs:104
↓ 1 callers
Method
close_workspace_folder
(&mut self, folder_url: &Url)
crates/sith_server/src/session/workspace.rs:165
↓ 1 callers
Function
code_action
( snapshot: DocumentSnapshot, params: types::CodeActionParams, )
crates/sith_server/src/server/api/requests/code_action.rs:34
↓ 1 callers
Function
code_action_resolve
( snapshot: DocumentSnapshot, mut action: types::CodeAction, )
crates/sith_server/src/server/api/requests/code_action_resolve.rs:36
↓ 1 callers
Function
collect_bitor_exprs
(expr: &Expr)
crates/sith_semantic_model/src/type_inference.rs:1440
↓ 1 callers
Function
collect_tests
Collect the tests from the given source text.
crates/sith_python_parser/tests/generate_inline_tests.rs:205
↓ 1 callers
Method
collection_stub_symbol_table
(&self)
crates/sith_semantic_model/src/db.rs:45
↓ 1 callers
Function
completion
( snapshot: DocumentSnapshot, params: types::CompletionParams, )
crates/sith_server/src/server/api/requests/completion.rs:874
↓ 1 callers
Function
compute_throughput
()
crates/sith_benchmark/benches/indexer.rs:9
↓ 1 callers
Method
consume_ascii_character
Dispatch based on the given character.
crates/sith_python_parser/src/lexer.rs:357
↓ 1 callers
Method
consume_end
(&mut self)
crates/sith_python_parser/src/lexer.rs:1308
↓ 1 callers
Method
contains_flag
(&mut self, flag: TypeInferFlags)
crates/sith_semantic_model/src/type_inference.rs:681
↓ 1 callers
Method
contains_range
(self, other: TextRange)
crates/ruff_text_size/src/range.rs:202
↓ 1 callers
Method
contents_start
Computes the start position of the file contents: either the first byte, or the byte after the BOM.
crates/ruff_source_file/src/locator.rs:86
↓ 1 callers
Method
controller
(&mut self, document_url: &Url)
crates/sith_server/src/session/workspace.rs:203
↓ 1 callers
Method
cover
(self, other: TextRange)
crates/ruff_text_size/src/range.rs:247
↓ 1 callers
Method
create
(root: PathBuf, source_file: Option<&Path>, import_name: &str)
crates/ruff_python_resolver/src/cache.rs:14
↓ 1 callers
Function
create_location_response
( is_python_module: IsPythonModule, is_same_document: bool, path: &PathBuf, declaration: &Decl
crates/sith_server/src/server/api/requests/goto_definition.rs:168
↓ 1 callers
Function
create_test_cases
()
crates/sith_benchmark/benches/parser.rs:9
↓ 1 callers
Function
create_test_cases
()
crates/sith_benchmark/benches/lexer.rs:7
↓ 1 callers
Function
create_test_cases
()
crates/sith_benchmark/benches/semantic_table_builder.rs:19
↓ 1 callers
Method
current
(&self)
crates/sith_python_parser/src/lexer/indentation.rs:123
↓ 1 callers
Method
current_kind
Returns the kind of the current token.
crates/sith_python_parser/src/lexer.rs:114
↓ 1 callers
Method
db_snapshot
(&self, document_url: &Url)
crates/sith_server/src/session/workspace.rs:195
↓ 1 callers
Method
declaration_id
(&self)
crates/sith_server/src/server/api/requests/completion.rs:143
↓ 1 callers
Method
dir
The directory name (e.g., in a virtual environment) for this Python version.
crates/ruff_python_resolver/src/python_version.rs:16
↓ 1 callers
Method
dispatch
Dispatches a `task` by either running it as a blocking function or executing it on a background thread pool.
crates/sith_server/src/server/schedule.rs:78
↓ 1 callers
Method
document_controller
( &mut self, url: &Url, )
crates/sith_server/src/session.rs:109
↓ 1 callers
Function
document_highlight
( snapshot: DocumentSnapshot, params: types::DocumentHighlightParams, )
crates/sith_server/src/server/api/requests/document_highlight.rs:34
↓ 1 callers
Method
document_snapshot
(&self, document_url: &Url)
crates/sith_server/src/session/workspace.rs:189
↓ 1 callers
Method
document_snapshot
(&self, file: impl AsRef<Path>)
crates/sith_server/src/server/api/tests/lsp_client.rs:93
↓ 1 callers
Function
document_symbol
( snapshot: &DocumentSnapshot, params: &types::DocumentSymbolParams, )
crates/sith_server/src/server/api/requests/document_symbol.rs:33
↓ 1 callers
Method
drain
(&mut self, range: R)
crates/ruff_index/src/vec.rs:42
↓ 1 callers
Method
eat_char3
(&mut self, c1: char, c2: char, c3: char)
crates/sith_python_parser/src/lexer/cursor.rs:124
↓ 1 callers
Method
eat_indentation
(&mut self)
crates/sith_python_parser/src/lexer.rs:224
↓ 1 callers
Method
eat_while
(&mut self, mut predicate: impl FnMut(char) -> bool)
crates/sith_python_parser/src/lexer/cursor.rs:149
↓ 1 callers
Method
entry_for_url
(&self, url: &Url)
crates/sith_server/src/session/workspace.rs:283
↓ 1 callers
Method
entry_for_url_mut
(&mut self, url: &Url)
crates/sith_server/src/session/workspace.rs:295
↓ 1 callers
Method
eq
(&self, other: &u8)
crates/sith_python_ast/src/int.rs:137
↓ 1 callers
Function
event_loop_thread
The event loop thread is actually a secondary thread that we spawn from the _actual_ main thread. This secondary thread has a larger stack size than s
crates/sith_server/src/server/schedule.rs:21
↓ 1 callers
Function
execFileShellModeRequired
(file: string)
editors/vscode/src/utils/fs.ts:179
↓ 1 callers
Function
executeAutofix
(lsClient: LanguageClient, serverId: string)
editors/vscode/src/utils/commands.ts:6
↓ 1 callers
Function
executeFormat
(lsClient: LanguageClient, serverId: string)
editors/vscode/src/utils/commands.ts:10
↓ 1 callers
Function
executeOrganizeImports
(lsClient: LanguageClient, serverId: string)
editors/vscode/src/utils/commands.ts:14
↓ 1 callers
Function
existing_tests
Returns the existing tests in the given directory.
crates/sith_python_parser/tests/generate_inline_tests.rs:283
↓ 1 callers
Method
expr
Returns the expression contained in this parsed output.
crates/sith_python_parser/src/lib.rs:345
↓ 1 callers
Method
expression
(self)
crates/sith_python_ast/src/node.rs:219
↓ 1 callers
Function
extract_comment_blocks
Extract the comment blocks from the given source text. A comment block is a sequence of lines that start with `// ` and are separated by an empty lin
crates/sith_python_parser/tests/generate_inline_tests.rs:257
↓ 1 callers
Method
f_strings
Returns an iterator over the [`FString`] parts contained in this value. Note that this doesn't nest into the f-string parts. For example, ```python
crates/sith_python_ast/src/nodes.rs:1256
↓ 1 callers
Function
findSithBinaryPath
(settings: ISettings)
editors/vscode/src/utils/fs.ts:125
↓ 1 callers
Function
find_all_python_files
Find all Python files in the home assistant repository
crates/sith_benchmark/src/lib.rs:283
↓ 1 callers
Function
find_arg_position
(call: &CallExpr, offset: TextSize)
crates/sith_server/src/server/api/requests/signature_help.rs:166
↓ 1 callers
Function
find_attribute_name_at_offset
(expr: &Expr, offset: TextSize)
crates/sith_python_ast_utils/src/lib.rs:89
↓ 1 callers
Function
find_binary_path
Return the ruff binary path if it exists, `None` otherwise.
editors/vscode/bundled/tool/find_binary_path.py:8
↓ 1 callers
Function
find_cursor_offset
(content: &str)
crates/sith_server/src/server/api/tests/lsp_client.rs:117
↓ 1 callers
Function
find_declaration
( db: &'a SymbolTableDb, path: &'a Arc<PathBuf>, scope: ScopeId, offset: u32, nodes: &Node
crates/sith_server/src/server/api/requests/goto_definition.rs:75
↓ 1 callers
Method
find_keyword
Return the [`Keyword`] with the given name, or `None` if no such [`Keyword`] exists.
crates/sith_python_ast/src/nodes.rs:3500
↓ 1 callers
Function
find_native_module
Find the native module within the namespace package at the given path.
crates/ruff_python_resolver/src/native_module.rs:41
↓ 1 callers
Function
find_paths_from_pth_files
(parent_dir: &Path)
crates/ruff_python_resolver/src/search.rs:97
↓ 1 callers
Function
find_python_project_root
Finds the root directory of a Python project by looking for specific marker files. Starting from the given path, this function searches for files tha
crates/sith_python_utils/src/lib.rs:211
↓ 1 callers
Function
find_python_search_paths
Find the Python search paths for the given virtual environment.
crates/ruff_python_resolver/src/search.rs:137
↓ 1 callers
Method
find_references_in_origin
( &self, symbol_name: &str, scope_id: ScopeId, symbol_type: &ResolvedType,
crates/sith_server/src/server/api/requests/references.rs:281
↓ 1 callers
Function
find_site_packages_path
Find the `site-packages` directory for the specified Python version.
crates/ruff_python_resolver/src/search.rs:20
↓ 1 callers
Method
finish
(self, syntax: Mod)
crates/sith_python_parser/src/parser/mod.rs:141
↓ 1 callers
Function
fix_all
(snapshot: &DocumentSnapshot)
crates/sith_server/src/server/api/requests/code_action.rs:92
↓ 1 callers
Function
fixes_for_diagnostics
( diagnostics: Vec<lsp_types::Diagnostic>, )
crates/sith_server/src/server/api/diagnostics.rs:266
↓ 1 callers
Function
flatten_document_symbol
( symbol: &types::DocumentSymbol, container_name: Option<String>, url: &Url, res: &mut Vec<Sym
crates/sith_server/src/server/api/requests/document_symbol.rs:195
↓ 1 callers
Function
foo
(x=lambda y: y)
crates/sith_python_parser/resources/inline/ok/param_with_default.py:1
↓ 1 callers
Function
foo
()
crates/sith_python_parser/resources/invalid/expressions/if/missing_test_expr_0.py:4
↓ 1 callers
Function
foo
()
crates/sith_python_parser/resources/invalid/expressions/dict/missing_closing_brace_0.py:3
↓ 1 callers
Method
format_args
(&self)
crates/sith_server/src/session/settings.rs:278
↓ 1 callers
Function
fstring_elements_to_str
Helper function to handle nested FStringElements in format specs
crates/sith_python_ast_utils/src/lib.rs:634
↓ 1 callers
Function
fstring_expr_to_str
(fstring_expr: &FStringExpr)
crates/sith_python_ast_utils/src/lib.rs:602
↓ 1 callers
Method
full_line_range
Computes the range of this `offset`s line. The range starts at the beginning of the line and goes up to, and including, the new line character at the
crates/ruff_source_file/src/locator.rs:175
↓ 1 callers
Method
full_lines_range
Computes the range of all lines that this `range` covers. The range starts at the beginning of the line at `range.start()` and goes up to, and includ
crates/ruff_source_file/src/locator.rs:274
↓ 1 callers
Method
full_text_len
(&self)
crates/ruff_source_file/src/newlines.rs:269
↓ 1 callers
Function
generate_newtype_index
(item: ItemStruct)
crates/ruff_macros/src/newtype_index.rs:5
↓ 1 callers
Function
getExtensionSettings
(namespace: string)
editors/vscode/src/utils/settings.ts:40
↓ 1 callers
Function
getGlobalSettings
(namespace: string)
editors/vscode/src/utils/settings.ts:93
↓ 1 callers
Function
getInterpreterFromSetting
(namespace: string, scope?: ConfigurationScope)
editors/vscode/src/utils/settings.ts:53
↓ 1 callers
Function
getProjectRoot
()
editors/vscode/src/utils/fs.ts:17
↓ 1 callers
Function
get_call_expr_at_offset_in_arguments
( offset: u32, node: &'a NodeWithParent, nodes: &'a Nodes, )
crates/sith_server/src/server/api/requests/signature_help.rs:144
↓ 1 callers
Function
get_call_expr_position_ctx
( func: &Expr, db: &SymbolTableDb, path: &Arc<PathBuf>, scope_id: ScopeId, nodes: &'nodes
crates/sith_server/src/server/api/requests/completion.rs:452
↓ 1 callers
Function
get_completion_candidates
( db: &SymbolTableDb, pos_ctx: PositionCtx, path: &Arc<PathBuf>, scope: ScopeId, )
crates/sith_server/src/server/api/requests/completion.rs:619
↓ 1 callers
Function
get_completion_item_documentation
( snapshot: &DocumentSnapshot, original_completion: &mut CompletionItem, )
crates/sith_server/src/server/api/requests/completion/resolve.rs:60
↓ 1 callers
Function
get_current_user
(db: Session = Depends(get_db), token: str = Depends(oauth2_scheme))
crates/sith_semantic_model/resources/tests/fixtures/small_project/tim/api/dependencies.py:25
← previous
next →
701–800 of 2,449, ranked by callers