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
Method
payload
(self)
crates/sith_server/src/server/api/requests/completion.rs:98
↓ 1 callers
Method
pop_response_task
(&mut self, response: lsp_server::Response)
crates/sith_server/src/server/client.rs:158
↓ 1 callers
Function
position_context
( db: &SymbolTableDb, path: &Arc<PathBuf>, scope_id: ScopeId, tokens: &Tokens, nodes: &'no
crates/sith_server/src/server/api/requests/completion.rs:236
↓ 1 callers
Method
precedence
Returns the [`OperatorPrecedence`] for the given operator token or [None] if the token isn't an operator token.
crates/sith_python_parser/src/parser/expression.rs:2408
↓ 1 callers
Method
prefix
(self)
crates/sith_python_parser/src/token.rs:712
↓ 1 callers
Function
prepare_rename
( snapshot: &DocumentSnapshot, params: types::TextDocumentPositionParams, )
crates/sith_server/src/server/api/requests/prepare_rename.rs:30
↓ 1 callers
Function
print_help
()
crates/sith_lsp/src/main.rs:37
↓ 1 callers
Method
push_declaration_id
(&mut self, decl_id: DeclId)
crates/sith_semantic_model/src/symbol.rs:104
↓ 1 callers
Method
push_source
Add the [`ImportSource`] to the indexer, creating the corresponding [`FileId`] for the stub or non-stub path. If [`ImportSource`] has both stub and no
crates/sith_semantic_model/src/indexer.rs:83
↓ 1 callers
Method
python_platform
(&self)
crates/ruff_python_resolver/src/host.rs:41
↓ 1 callers
Method
python_search_paths
(&self)
crates/sith_semantic_model/src/indexer.rs:596
↓ 1 callers
Method
python_search_paths
(&self)
crates/ruff_python_resolver/src/host.rs:33
↓ 1 callers
Function
quick_fix
( snapshot: &DocumentSnapshot, fixes: Vec<DiagnosticFix>, )
crates/sith_server/src/server/api/requests/code_action.rs:55
↓ 1 callers
Function
references
( snapshot: &DocumentSnapshot, params: types::ReferenceParams, )
crates/sith_server/src/server/api/requests/references.rs:53
↓ 1 callers
Method
remove_flag
(&mut self, flag: TypeInferFlags)
crates/sith_semantic_model/src/type_inference.rs:673
↓ 1 callers
Function
rename
( snapshot: &DocumentSnapshot, params: &types::RenameParams, )
crates/sith_server/src/server/api/requests/rename.rs:37
↓ 1 callers
Function
request
(req: server::Request)
crates/sith_server/src/server/api.rs:30
↓ 1 callers
Function
resolve_import_strict
Resolve an absolute or relative import.
crates/ruff_python_resolver/src/resolver.rs:637
↓ 1 callers
Method
resolve_inner_collection_type
(&mut self, expr: &Expr, nodes: &Nodes)
crates/sith_semantic_model/src/type_inference.rs:1008
↓ 1 callers
Function
resolve_relative_import
Resolve a relative import.
crates/ruff_python_resolver/src/resolver.rs:597
↓ 1 callers
Function
resolve_relative_path
(path: impl AsRef<Path>)
crates/sith_semantic_model/src/type_inference.rs:1493
↓ 1 callers
Method
response
Creates a task to handle a response from the client.
crates/sith_server/src/server/schedule.rs:72
↓ 1 callers
Method
reversed_scopes
(&self)
crates/sith_semantic_model/src/scope.rs:148
↓ 1 callers
Method
run
(self)
crates/sith_server/src/server.rs:137
↓ 1 callers
Function
run_ruff_fix
( ruff_path: impl AsRef<OsStr>, filename: &'a str, content: &str, extra_args: I, )
crates/sith_server/src/util/ruff.rs:141
↓ 1 callers
Function
run_ruff_format
( ruff_path: impl AsRef<OsStr>, filename: &'a str, content: &str, extra_args: I, )
crates/sith_server/src/util/ruff.rs:121
↓ 1 callers
Function
run_server
()
crates/sith_lsp/src/main.rs:24
↓ 1 callers
Function
sanitize_doc_string
(string: &str)
crates/sith_python_utils/src/nodes.rs:15
↓ 1 callers
Method
scope
(&self, scope_id: ScopeId)
crates/sith_semantic_model/src/symbol_table.rs:51
↓ 1 callers
Method
scopes
(&self, file: &PathBuf)
crates/sith_semantic_model/src/db.rs:117
↓ 1 callers
Method
serialize
(&self, serializer: S)
crates/lsp-types/src/lib.rs:2537
↓ 1 callers
Function
set_current_thread_qos_class
(class: QoSClass)
crates/sith_server/src/server/schedule/thread/priority.rs:42
↓ 1 callers
Method
set_flag
(&mut self, flag: TypeInferFlags)
crates/sith_semantic_model/src/type_inference.rs:664
↓ 1 callers
Method
set_interpreter
(&mut self, interpreter: String)
crates/sith_server/src/session/settings.rs:178
↓ 1 callers
Function
setup_db
(src: &str, root: &Path, path: &Path)
crates/sith_semantic_model/src/type_inference.rs:1512
↓ 1 callers
Function
should_show_docs
(hover_pos: &HoverPosition)
crates/sith_server/src/server/api/requests/hover.rs:116
↓ 1 callers
Function
signature_help
( snapshot: &DocumentSnapshot, params: types::SignatureHelpParams, )
crates/sith_server/src/server/api/requests/signature_help.rs:41
↓ 1 callers
Method
signature_str
TODO: show param types
crates/sith_server/src/server/api/requests/signature_help.rs:384
↓ 1 callers
Method
skip_char
(&mut self)
crates/sith_python_parser/src/lexer.rs:1660
↓ 1 callers
Method
skip_whitespace
(&mut self)
crates/sith_python_parser/src/lexer.rs:323
↓ 1 callers
Method
slice
Take the source code between the given [`TextRange`].
crates/ruff_source_file/src/lib.rs:59
↓ 1 callers
Method
snapshot
(&self, url: &Url)
crates/sith_server/src/session/workspace.rs:313
↓ 1 callers
Method
sort_text
(&self)
crates/sith_server/src/server/api/requests/completion.rs:231
↓ 1 callers
Method
source
(&self)
crates/sith_python_parser/src/error.rs:24
↓ 1 callers
Method
spawn
(&self, priority: ThreadPriority, f: F)
crates/sith_server/src/server/schedule/thread/pool.rs:91
↓ 1 callers
Method
starred_expression_precedence
Returns the [`StarredExpressionPrecedence`] for the context, regardless of whether starred expressions are allowed or not.
crates/sith_python_parser/src/parser/expression.rs:2558
↓ 1 callers
Function
startServer
( outputChannel: vscode.OutputChannel, traceOutputChannel: vscode.OutputChannel, )
editors/vscode/src/extension.ts:101
↓ 1 callers
Function
stdlib_typeshed_path
Determine the current `typeshed` subdirectory for the standard library.
crates/ruff_python_resolver/src/search.rs:336
↓ 1 callers
Function
strip_temp_dir
(path: &Path)
crates/sith_server/src/server/api/tests/mod.rs:12
↓ 1 callers
Method
stub_file_id
(&self, path: &PathBuf)
crates/sith_semantic_model/src/indexer.rs:140
↓ 1 callers
Method
stub_path
(&self, file_id: &FileId)
crates/sith_semantic_model/src/indexer.rs:136
↓ 1 callers
Method
sub
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:517
↓ 1 callers
Method
sub_end
(&self, amount: TextSize)
crates/ruff_text_size/src/range.rs:401
↓ 1 callers
Method
sub_start
(&self, amount: TextSize)
crates/ruff_text_size/src/range.rs:362
↓ 1 callers
Function
supported_code_actions
If `action_filter` is `None`, this returns [`SupportedCodeActionKind::all()`]. Otherwise, the list is filtered.
crates/sith_server/src/server/api/requests/code_action.rs:143
↓ 1 callers
Method
symbol_table
(&self)
crates/sith_semantic_model/src/indexer.rs:169
↓ 1 callers
Method
tables_iter
(&self)
crates/sith_semantic_model/src/indexer.rs:584
↓ 1 callers
Method
text_len
(self)
crates/ruff_text_size/src/traits.rs:19
↓ 1 callers
Method
text_len
(self)
crates/ruff_text_size/tests/constructors.rs:7
↓ 1 callers
Function
third_party_typeshed_package_paths
Determine the current `typeshed` subdirectory for a third-party package.
crates/ruff_python_resolver/src/search.rs:323
↓ 1 callers
Method
to_byte
(&self)
crates/sith_python_ast/src/nodes.rs:1137
↓ 1 callers
Method
to_char
(&self)
crates/sith_python_ast/src/nodes.rs:1143
↓ 1 callers
Method
to_kind
Safe conversion to the corresponding [`RecoveryContextKind`] (inverse of [`Self::from_kind`]). Returns `None` if the `RecoveryContext` is empty or ha
crates/sith_python_parser/src/parser/mod.rs:1345
↓ 1 callers
Method
to_kind
Returns the LSP code action kind that map to this code action.
crates/sith_server/src/server.rs:396
↓ 1 callers
Method
to_source_code
(&self)
crates/ruff_source_file/src/locator.rs:48
↓ 1 callers
Method
token_len
Returns the length of the current token length. This is to be used after setting the start position of the token using [`Cursor::start_token`].
crates/sith_python_parser/src/lexer/cursor.rs:74
↓ 1 callers
Method
token_start
(&self)
crates/sith_python_parser/src/lexer.rs:1456
↓ 1 callers
Method
token_text
(&self)
crates/sith_python_parser/src/lexer.rs:1443
↓ 1 callers
Method
tokens
Returns all the tokens for the parsed output.
crates/sith_python_parser/src/lib.rs:248
↓ 1 callers
Method
trace
(...messages: unknown[])
editors/vscode/src/utils/logger.ts:44
↓ 1 callers
Function
trace_value
()
crates/sith_server/src/trace.rs:212
↓ 1 callers
Method
triple_quotes
Returns the triple quotes for the current f-string if it is a triple-quoted f-string, `None` otherwise.
crates/sith_python_parser/src/lexer/fstring.rs:49
↓ 1 callers
Method
try_double_char_prefix
Try lexing the double character string prefix, updating the token flags accordingly. Returns `true` if it matches.
crates/sith_python_parser/src/lexer.rs:711
↓ 1 callers
Method
try_parse_match_statement
Try parsing a `match` statement. This uses speculative parsing to remove the ambiguity of whether the `match` token is used as a keyword or an identi
crates/sith_python_parser/src/parser/statement.rs:2182
↓ 1 callers
Method
try_parse_parenthesized_with_items
Try parsing with-items coming after an ambiguous `(` token. To understand the ambiguity, consider the following example: ```python with (item1, item
crates/sith_python_parser/src/parser/statement.rs:1983
↓ 1 callers
Method
try_single_char_prefix
Try lexing the single character string prefix, updating the token flags accordingly. Returns `true` if it matches.
crates/sith_python_parser/src/lexer.rs:697
↓ 1 callers
Method
try_start_format_spec
Returns `true` if the context is in a valid position to start format spec i.e., at the same level of nesting as the opening parentheses token. Increme
crates/sith_python_parser/src/lexer/fstring.rs:93
↓ 1 callers
Function
try_to_find_pyenv_dir
()
crates/sith_python_utils/src/interpreter.rs:96
↓ 1 callers
Function
try_to_resolve_pipfile_python_venv
(project_root: &Path)
crates/sith_python_utils/src/interpreter.rs:254
↓ 1 callers
Function
try_to_resolve_poetry_python_venv
(project_root: &Path)
crates/sith_python_utils/src/interpreter.rs:184
↓ 1 callers
Function
try_to_resolve_python_path
Do a system-wide search for the Python executable. First, it checks in some common installation paths of Python. If the search in those paths fails,
crates/sith_python_utils/src/interpreter.rs:125
↓ 1 callers
Method
underline_whole_symbol
(mut self)
crates/sith_server/src/server/api/tests/mod.rs:37
↓ 1 callers
Method
union
(self, other: ResolvedType)
crates/sith_semantic_model/src/type_inference.rs:516
↓ 1 callers
Function
unzip_typeshed
(path: &Path)
crates/sith_vendored/src/lib.rs:15
↓ 1 callers
Method
update_ast
(&mut self, document_url: &Url, content: Source)
crates/sith_server/src/session/workspace.rs:209
↓ 1 callers
Method
update_document
(&mut self, url: &Url, content: Source)
crates/sith_server/src/session.rs:118
↓ 1 callers
Method
update_version
(&mut self, new_version: DocumentVersion)
crates/sith_server/src/edit/document.rs:101
↓ 1 callers
Method
validate_annotated_assignment_target
Validate that the given expression is a valid annotated assignment target. Unlike [`Parser::validate_assignment_target`], starred, list and tuple exp
crates/sith_python_parser/src/parser/statement.rs:3250
↓ 1 callers
Method
validate_arguments
Validate that the given arguments doesn't have any duplicate keyword argument. Report errors for all the duplicate names found.
crates/sith_python_parser/src/parser/expression.rs:2277
↓ 1 callers
Method
validate_delete_target
Validate that the given expression is a valid delete target. If the expression is a list or tuple, then validate each element in the list. See: <htt
crates/sith_python_parser/src/parser/statement.rs:3274
↓ 1 callers
Method
validate_parameters
Validate that the given parameters doesn't have any duplicate names. Report errors for all the duplicate names found.
crates/sith_python_parser/src/parser/statement.rs:3289
↓ 1 callers
Method
value
(&self)
crates/sith_python_ast/src/nodes.rs:793
↓ 1 callers
Function
verify_password
(plain_password: str, hashed_password: str)
crates/sith_semantic_model/resources/tests/fixtures/small_project/tim/api/security.py:19
↓ 1 callers
Method
visit_alias
(&mut self, alias: &'b ast::Alias)
crates/sith_python_ast_utils/src/nodes.rs:183
↓ 1 callers
Method
visit_bool_op
(&self, bool_op: &mut BoolOp)
crates/sith_python_ast/src/visitor/transformer.rs:25
↓ 1 callers
Method
visit_bytes_literal
(&self, bytes_literal: &mut BytesLiteral)
crates/sith_python_ast/src/visitor/transformer.rs:94
↓ 1 callers
Method
visit_cmp_op
(&self, cmp_op: &mut CmpOp)
crates/sith_python_ast/src/visitor/transformer.rs:34
↓ 1 callers
Method
visit_elif_else_clause
(&mut self, elif_else_clause: &'a ElifElseClause)
crates/sith_python_ast/src/visitor.rs:96
↓ 1 callers
Method
visit_elif_else_clause
(&mut self, elif_else_clause: &'a ElifElseClause)
crates/sith_python_ast/src/statement_visitor.rs:16
↓ 1 callers
Method
visit_except_handler
(&mut self, except_handler: &'a ExceptHandler)
crates/sith_python_ast/src/statement_visitor.rs:13
← previous
next →
1,001–1,100 of 2,449, ranked by callers