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
↓ 4 callers
Method
declaration
(&self, decl_id: DeclId)
crates/sith_semantic_model/src/symbol_table.rs:59
↓ 4 callers
Method
errors
Returns a list of syntax errors found during parsing.
crates/sith_python_parser/src/lib.rs:253
↓ 4 callers
Function
foo
(*args)
crates/sith_python_parser/resources/valid/statement/function.py:125
↓ 4 callers
Function
getGlobalValue
(config: WorkspaceConfiguration, key: string, defaultValue: T)
editors/vscode/src/utils/settings.ts:83
↓ 4 callers
Function
get_python_path_in_venv
Given a path to a `.venv` directory returns the path to the python executable. In Linux the path to the python executable is a symlink, therefore, we
crates/sith_python_utils/src/interpreter.rs:308
↓ 4 callers
Method
import_resolver_config
(&self)
crates/sith_semantic_model/src/indexer.rs:314
↓ 4 callers
Method
interpreter
(&self)
crates/sith_server/src/session/settings.rs:282
↓ 4 callers
Method
into_error
(self)
crates/sith_python_parser/src/error.rs:324
↓ 4 callers
Method
is_eof
(self)
crates/sith_python_parser/src/token.rs:279
↓ 4 callers
Method
is_import
(&self)
crates/sith_semantic_model/src/declaration.rs:180
↓ 4 callers
Method
is_new_logical_line
(self)
crates/sith_python_parser/src/lexer.rs:1549
↓ 4 callers
Function
is_python_module
Checks if the symbol name correspond to the file path in the form `bar/__init__.py` or `foo/bar.py`.
crates/sith_python_utils/src/lib.rs:189
↓ 4 callers
Method
is_raw_string
Returns `true` if the token is a raw string.
crates/sith_python_parser/src/token.rs:753
↓ 4 callers
Method
is_unresolved
(&self)
crates/sith_semantic_model/src/declaration.rs:150
↓ 4 callers
Function
is_url_unnamed
Check if the [`Url`] is from a file that only exists in memory. When performing LSP operations on in-memory buffers: - Neovim sends the URI "file://
crates/sith_server/src/util.rs:20
↓ 4 callers
Method
len
(&self)
crates/ruff_source_file/src/newlines.rs:323
↓ 4 callers
Method
lsp_position
(&self)
crates/sith_server/src/server/api/diagnostics.rs:33
↓ 4 callers
Method
make_mut
(&mut self)
crates/sith_server/src/session/workspace.rs:69
↓ 4 callers
Method
non_stub_path
(&self)
crates/sith_semantic_model/src/declaration.rs:146
↓ 4 callers
Method
parse_function_definition
Parses a function definition. The given `start` offset is the start of either of the following: - `def` token - `async` token if it's an asynchronous
crates/sith_python_parser/src/parser/statement.rs:1713
↓ 4 callers
Method
parse_generators
Parses a list of comprehension generators. These are the `for` and `async for` clauses in a comprehension, optionally followed by `if` clauses. See:
crates/sith_python_parser/src/parser/expression.rs:1868
↓ 4 callers
Method
parse_match_pattern_lhs
Parses a pattern. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-closed_pattern>
crates/sith_python_parser/src/parser/pattern.rs:137
↓ 4 callers
Method
parse_name
Parses a name. For an invalid name, the `id` field will be an empty string and the `ctx` field will be [`ContextExpr::Invalid`]. See: <https://docs.
crates/sith_python_parser/src/parser/expression.rs:451
↓ 4 callers
Method
parse_simple_expression
Parses every Python expression except unparenthesized tuples, named expressions, and `if` expression. This is a combination of the `disjunction`, `st
crates/sith_python_parser/src/parser/expression.rs:227
↓ 4 callers
Function
pattern_to_expr
Convert the given [`Pattern`] to an [`Expr`]. This is used to convert an invalid use of pattern to their equivalent expression to preserve the struct
crates/sith_python_parser/src/parser/recovery.rs:28
↓ 4 callers
Method
radix_run
Consume a sequence of numbers with the given radix, the digits can be decorated with underscores like this: '`1_2_3_4`' == '1234'
crates/sith_python_parser/src/lexer.rs:1162
↓ 4 callers
Function
registerCommand
( command: string, callback: (...args: any[]) => any, thisArg?: any, )
editors/vscode/src/utils/vscodeapi.ts:4
↓ 4 callers
Function
resolve_python_interpreter
Attempts to find a Python interpreter by searching through various common locations and configuration files, in a prioritized order. This function pe
crates/sith_python_utils/src/interpreter.rs:26
↓ 4 callers
Method
segments
(&self)
crates/sith_python_ast/src/name.rs:216
↓ 4 callers
Function
size
(x: u32)
crates/ruff_text_size/tests/serde.rs:7
↓ 4 callers
Method
skip_bytes
(&mut self, bytes: usize)
crates/sith_python_parser/src/string.rs:67
↓ 4 callers
Method
source_text
(&self)
crates/ruff_source_file/src/lib.rs:191
↓ 4 callers
Method
sum
(iter: I)
crates/ruff_text_size/src/size.rs:193
↓ 4 callers
Method
symbol_id
(&self, name: &str)
crates/sith_semantic_model/src/scope.rs:80
↓ 4 callers
Method
truncate
(&mut self, a: usize)
crates/ruff_index/src/vec.rs:47
↓ 4 callers
Method
validate_assignment_target
Validate that the given expression is a valid assignment target. If the expression is a list or tuple, then validate each element in the list. If it'
crates/sith_python_parser/src/parser/statement.rs:3233
↓ 4 callers
Method
visit_alias
(&mut self, alias: &'a Alias)
crates/sith_python_ast/src/visitor.rs:69
↓ 4 callers
Method
visit_comprehension
(&self, comprehension: &mut Comprehension)
crates/sith_python_ast/src/visitor/transformer.rs:37
↓ 4 callers
Method
visit_f_string_element
(&mut self, f_string_element: &'a FStringElement)
crates/sith_python_ast/src/visitor.rs:102
↓ 4 callers
Method
visit_parameters
(&mut self, parameters: &'b ast::Parameters)
crates/sith_semantic_model/src/symbol_table.rs:863
↓ 4 callers
Method
visit_parameters
(&mut self, parameters: &'a Parameters)
crates/sith_python_ast/src/visitor.rs:60
↓ 4 callers
Method
visit_string_literal
(&mut self, string_literal: &'a StringLiteral)
crates/sith_python_ast/src/visitor.rs:105
↓ 4 callers
Function
walk_expr
(visitor: &mut V, expr: &'a Expr)
crates/sith_python_ast/src/visitor.rs:334
↓ 4 callers
Function
walk_pattern
(visitor: &mut V, pattern: &'a Pattern)
crates/sith_python_ast/src/visitor.rs:685
↓ 4 callers
Method
with_prefix
(mut self, prefix: ByteStringPrefix)
crates/sith_python_ast/src/nodes.rs:1902
↓ 4 callers
Method
with_triple_quotes
(mut self)
crates/sith_python_ast/src/nodes.rs:1896
↓ 4 callers
Method
yes
(&self)
crates/sith_server/src/server/api/requests/references.rs:123
↓ 3 callers
Method
_expand_colspan_rowspan
Given a list of <tr>s, return a list of text rows. Parameters ---------- rows : list of node-like List o
crates/sith_server/resources/test/fixtures/pandas_html.py:471
↓ 3 callers
Method
add_import_result
( &mut self, source_file: &Path, import_name: &str, execution_environment: &Ex
crates/ruff_python_resolver/src/cache.rs:36
↓ 3 callers
Method
add_or_update_file
(&mut self, filepath: PathBuf, source: Source)
crates/sith_semantic_model/src/indexer.rs:510
↓ 3 callers
Method
any_file_id
(&self, path: &PathBuf)
crates/sith_semantic_model/src/indexer.rs:130
↓ 3 callers
Method
any_path
(&self, file_id: &FileId)
crates/sith_semantic_model/src/indexer.rs:126
↓ 3 callers
Method
as_mut_slice
Returns a mutable slice of all the [`FStringPart`]s contained in this value.
crates/sith_python_ast/src/nodes.rs:1216
↓ 3 callers
Method
at_compound_stmt
Returns `true` if the current token is the start of a compound statement.
crates/sith_python_parser/src/parser/statement.rs:82
↓ 3 callers
Method
bytes
Returns an iterator over the bytes of the concatenated bytes.
crates/sith_python_ast/src/nodes.rs:1791
↓ 3 callers
Method
capacity
(&self)
crates/sith_python_ast/src/name.rs:718
↓ 3 callers
Method
class_bases
(&self, db: &SymbolTableDb)
crates/sith_semantic_model/src/type_inference.rs:281
↓ 3 callers
Method
close
(&mut self, url: &Url)
crates/sith_server/src/session/workspace.rs:250
↓ 3 callers
Method
contains_file
(&self, path: &PathBuf)
crates/sith_semantic_model/src/indexer.rs:52
↓ 3 callers
Function
convert_url_to_path
Converts the [`Url`] to a [`PathBuf`] while fixing the path if it's from an in-memory buffer. - For VSCode in-memory files this function appends a ".p
crates/sith_server/src/util.rs:31
↓ 3 callers
Method
current_flags
Returns the flags for the current token.
crates/sith_python_parser/src/lexer.rs:124
↓ 3 callers
Method
current_range
Returns the range of the current token.
crates/sith_python_parser/src/token_source.rs:46
↓ 3 callers
Function
deserialize_fixture
(content: &str)
crates/sith_server/src/session/settings.rs:322
↓ 3 callers
Method
dict
(db: &SymbolTableDb)
crates/sith_semantic_model/src/type_inference.rs:126
↓ 3 callers
Method
end
(&self)
crates/ruff_source_file/src/newlines.rs:220
↓ 3 callers
Method
error
(self)
crates/sith_python_parser/src/error.rs:45
↓ 3 callers
Function
executeCommand
(lsClient: LanguageClient, command: string)
editors/vscode/src/utils/commands.ts:18
↓ 3 callers
Method
find
Find the "implicit" imports within the namespace package at the given path.
crates/ruff_python_resolver/src/implicit_imports.rs:19
↓ 3 callers
Method
find_references
(mut self, suite: &'a Suite)
crates/sith_server/src/server/api/requests/references.rs:369
↓ 3 callers
Method
finish
Consumes `self` and returns the [`SourceFile`].
crates/ruff_source_file/src/lib.rs:130
↓ 3 callers
Method
flags
(&self)
crates/sith_python_parser/src/lexer/fstring.rs:30
↓ 3 callers
Method
get
(&self, name: &str)
crates/ruff_python_resolver/src/implicit_imports.rs:171
↓ 3 callers
Function
getConfiguration
( config: string, scope?: ConfigurationScope, )
editors/vscode/src/utils/settings.ts:46
↓ 3 callers
Function
get_completion_candidates_from_scope_and_parents
( db: &'a SymbolTableDb, path: &'a PathBuf, scope: &'a Scope, )
crates/sith_server/src/server/api/requests/completion.rs:551
↓ 3 callers
Function
get_python_doc
( interpreter_path: impl AsRef<Path>, search_term: &str, )
crates/sith_python_utils/src/lib.rs:42
↓ 3 callers
Method
indexer_mut
(&mut self)
crates/sith_semantic_model/src/db.rs:37
↓ 3 callers
Method
infer_in_file
(&mut self, new_path: Arc<PathBuf>, f: F)
crates/sith_semantic_model/src/type_inference.rs:691
↓ 3 callers
Method
infer_node
(&mut self, node: &NodeWithParent, nodes: &Nodes)
crates/sith_semantic_model/src/type_inference.rs:735
↓ 3 callers
Method
into_iter
(self)
crates/ruff_index/src/vec.rs:128
↓ 3 callers
Method
into_result
Consumes the [`Parsed`] output and returns a [`Result`] which is [`Ok`] if it has no syntax errors, or [`Err`] containing the first [`ParseError`] enc
crates/sith_python_parser/src/lib.rs:284
↓ 3 callers
Method
is_empty
(&self)
crates/ruff_index/src/slice.rs:54
↓ 3 callers
Method
is_indexed
(&self, path: &PathBuf)
crates/sith_semantic_model/src/indexer.rs:654
↓ 3 callers
Method
is_zero
(&self)
crates/sith_python_ast/src/float.rs:57
↓ 3 callers
Method
iter_non_variadic_params
Returns an iterator over all non-variadic parameters included in this [`Parameters`] node. The variadic parameters (`.vararg` and `.kwarg`) can never
crates/sith_python_ast/src/nodes.rs:3184
↓ 3 callers
Method
kind
(&self)
crates/ruff_source_file/src/line_index.rs:63
↓ 3 callers
Method
kind
(declaration: &Declaration, symbol: &Symbol)
crates/sith_server/src/server/api/requests/document_symbol.rs:169
↓ 3 callers
Method
lex_decimal_number
Lex a normal number, that is, no octal, hex or binary number.
crates/sith_python_parser/src/lexer.rs:1047
↓ 3 callers
Method
lex_number_radix
Lex a hex/octal/decimal/binary number without a decimal point.
crates/sith_python_parser/src/lexer.rs:1019
↓ 3 callers
Function
lex_valid
(source: &str, mode: Mode, start_offset: TextSize)
crates/sith_python_parser/src/lexer.rs:1750
↓ 3 callers
Method
line_range
(&self, line: OneIndexed)
crates/ruff_source_file/src/lib.rs:71
↓ 3 callers
Method
make_ref
(&self)
crates/sith_server/src/session/workspace.rs:63
↓ 3 callers
Method
make_sender
Make a new `ClientSender` for sending messages to the client.
crates/sith_server/src/server/connection.rs:74
↓ 3 callers
Function
mask
(kind: TokenKind)
crates/sith_python_parser/src/token_set.rs:33
↓ 3 callers
Method
modify_with_manual_index
A private function for overriding how we update the line index by default.
crates/sith_server/src/edit/document.rs:116
↓ 3 callers
Method
next_char
(&mut self)
crates/sith_python_parser/src/string.rs:99
↓ 3 callers
Method
next_non_trivia_token
Returns the next non-trivia token without adding it to the token vector.
crates/sith_python_parser/src/token_source.rs:140
↓ 3 callers
Method
no
(&self)
crates/sith_server/src/server/api/requests/references.rs:127
↓ 3 callers
Method
or
(&self)
crates/sith_python_ast/src/nodes.rs:2207
↓ 3 callers
Method
parse_escaped_char
Parse an escaped character, returning the new character.
crates/sith_python_parser/src/string.rs:194
↓ 3 callers
Method
parse_expression_with_bitwise_or_precedence
Parses an expression with a minimum precedence of bitwise `or`. This methods actually parses the expression using the `expression` rule of the [Pytho
crates/sith_python_parser/src/parser/expression.rs:417
← previous
next →
301–400 of 2,449, ranked by callers