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
↓ 7 callers
Function
get_completion_candidates_from_scope
( db: &'a SymbolTableDb, path: &'a PathBuf, scope: &'a Scope, )
crates/sith_server/src/server/api/requests/completion.rs:518
↓ 7 callers
Method
in_range
Returns a slice of [`Token`] that are within the given `range`. The start and end offset of the given range should be either: 1. Token boundary 2. Ga
crates/sith_python_parser/src/lib.rs:417
↓ 7 callers
Method
is_ascii
Returns `true` if the text only consists of ASCII characters
crates/ruff_source_file/src/line_index.rs:132
↓ 7 callers
Method
is_unparenthesized_starred_expr
(&self)
crates/sith_python_parser/src/parser/expression.rs:2305
↓ 7 callers
Method
iter
Returns an iterator over the implicit imports in the namespace package.
crates/ruff_python_resolver/src/implicit_imports.rs:167
↓ 7 callers
Function
lex
Create a new [`Lexer`] for the given source code and [`Mode`].
crates/sith_python_parser/src/lexer.rs:1671
↓ 7 callers
Method
lines
Returns the text of all lines that include `range`. ## Examples ``` # use ruff_text_size::{Ranged, TextRange, TextSize}; # use ruff_source_file::Loc
crates/ruff_source_file/src/locator.rs:355
↓ 7 callers
Method
parse_comma_separated_list_into_vec
Parses a comma separated list of elements into a vector where each element is parsed using the given `parse_element` function.
crates/sith_python_parser/src/parser/mod.rs:503
↓ 7 callers
Function
parse_module
Parse a full Python module usually consisting of multiple lines. This is a convenience function that can be used to parse a full Python program witho
crates/sith_python_parser/src/lib.rs:108
↓ 7 callers
Function
partial
Create a partial `py.typed` file at the given path.
crates/ruff_python_resolver/src/lib.rs:55
↓ 7 callers
Method
peek
Returns the next token kind without consuming it.
crates/sith_python_parser/src/parser/mod.rs:292
↓ 7 callers
Method
pop
(&mut self)
crates/sith_python_ast/src/name.rs:320
↓ 7 callers
Method
pop_scope
(&mut self)
crates/sith_semantic_model/src/symbol_table.rs:320
↓ 7 callers
Method
push_scope
(&mut self, kind: ScopeKind, range: TextRange)
crates/sith_semantic_model/src/symbol_table.rs:311
↓ 7 callers
Method
replace
(value: string)
editors/vscode/src/utils/logger.ts:92
↓ 7 callers
Method
rest
Returns the remaining text to lex. Use [`Cursor::text_len`] to get the length of the remaining text.
crates/sith_python_parser/src/lexer/cursor.rs:57
↓ 7 callers
Method
spawn
(self, f: F)
crates/sith_server/src/server/schedule/thread.rs:62
↓ 7 callers
Method
take_snapshot
(&self, url: &Url)
crates/sith_server/src/session.rs:87
↓ 7 callers
Function
u32_index_to_usize
(index: u32)
crates/sith_server/src/edit/convert.rs:28
↓ 7 callers
Method
visit_arguments
(&mut self, arguments: &'a Arguments)
crates/sith_python_ast/src/visitor.rs:57
↓ 7 callers
Method
visit_pattern
(&self, pattern: &mut Pattern)
crates/sith_python_ast/src/visitor/transformer.rs:70
↓ 6 callers
Method
add
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:508
↓ 6 callers
Method
after
Returns a slice of tokens after the given [`TextSize`] offset. If the given offset is between two tokens, the returned slice will start from the foll
crates/sith_python_parser/src/lib.rs:455
↓ 6 callers
Method
arguments_source_order
Return the positional and keyword arguments in the order of declaration. Positional arguments are generally before keyword arguments, but star argume
crates/sith_python_ast/src/nodes.rs:3558
↓ 6 callers
Method
at_soft_keyword
Returns `true` if the parser is at a soft keyword token.
crates/sith_python_parser/src/parser/expression.rs:121
↓ 6 callers
Method
bump_any
Bumps the current token regardless of its kind and advances to the next token. # Panics If the parser is at end of file.
crates/sith_python_parser/src/parser/mod.rs:358
↓ 6 callers
Method
closing_kind
Returns the token kind that closes the parentheses.
crates/sith_python_parser/src/parser/mod.rs:692
↓ 6 callers
Method
coerce
Coerces two number-like class instance to the "highest" number-like class instance. # Panics If this class instance is not number-like or is not a kn
crates/sith_semantic_model/src/type_inference.rs:258
↓ 6 callers
Method
document_version
(&self)
crates/sith_server/src/session.rs:179
↓ 6 callers
Function
expr_to_str
(expr: &Expr)
crates/sith_python_ast_utils/src/lib.rs:222
↓ 6 callers
Function
getOptionalGlobalValue
(config: WorkspaceConfiguration, key: string)
editors/vscode/src/utils/settings.ts:88
↓ 6 callers
Function
get_documentation_string_from_node
(node: &AnyNodeRef)
crates/sith_python_utils/src/nodes.rs:3
↓ 6 callers
Method
get_or_assign_id
(&mut self, path: Arc<PathBuf>)
crates/sith_semantic_model/src/indexer.rs:56
↓ 6 callers
Method
insert
(&mut self, node: AnyNodeRef<'a>, parent: Option<NodeId>)
crates/sith_python_ast_utils/src/nodes.rs:43
↓ 6 callers
Method
is_triple_quoted
(self)
crates/sith_python_parser/src/token.rs:708
↓ 6 callers
Method
iter
(&self)
crates/ruff_index/src/slice.rs:59
↓ 6 callers
Method
line_index
(&self, offset: TextSize)
crates/ruff_source_file/src/lib.rs:42
↓ 6 callers
Method
line_start
(&self, line: OneIndexed)
crates/ruff_source_file/src/lib.rs:63
↓ 6 callers
Method
next
(&mut self)
crates/sith_python_ast/src/nodes.rs:870
↓ 6 callers
Method
next_back
(&mut self)
crates/sith_python_ast/src/nodes.rs:884
↓ 6 callers
Function
parameter_with_default_to_str
(param: &ParameterWithDefault)
crates/sith_python_ast_utils/src/lib.rs:575
↓ 6 callers
Method
parse_binary_expression_or_higher
Parses a binary expression using the [Pratt parsing algorithm]. [Pratt parsing algorithm]: https://matklad.github.io/2020/04/13/simple-but-powerful-p
crates/sith_python_parser/src/parser/expression.rs:234
↓ 6 callers
Method
parse_match_pattern
Parses an `or_pattern` or an `as_pattern`. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-pattern>
crates/sith_python_parser/src/parser/pattern.rs:87
↓ 6 callers
Method
second
Peeks the second character from the input stream without consuming it. Returns [`EOF_CHAR`] if the position is past the end of the file.
crates/sith_python_parser/src/lexer/cursor.rs:48
↓ 6 callers
Method
set
(db: &SymbolTableDb)
crates/sith_semantic_model/src/type_inference.rs:130
↓ 6 callers
Method
set_flag
(&mut self, flag: SymbolFlags)
crates/sith_semantic_model/src/symbol.rs:92
↓ 6 callers
Method
skip_bytes
Skips the next `count` bytes. ## Panics - If `count` is larger than the remaining bytes in the input stream. - If `count` indexes into a multi-byte c
crates/sith_python_parser/src/lexer/cursor.rs:162
↓ 6 callers
Method
visit_annotation
(&mut self, expr: &'a Expr)
crates/sith_python_ast/src/visitor.rs:27
↓ 6 callers
Method
visit_comprehension
(&mut self, comprehension: &'b ast::Comprehension)
crates/sith_semantic_model/src/symbol_table.rs:936
↓ 6 callers
Method
visit_expr_context
(&mut self, expr_context: &'a ContextExpr)
crates/sith_python_ast/src/visitor.rs:36
↓ 6 callers
Method
visit_expr_context
(&self, expr_context: &mut ContextExpr)
crates/sith_python_ast/src/visitor/transformer.rs:22
↓ 6 callers
Function
walk_stmt
(visitor: &mut V, stmt: &'a Stmt)
crates/sith_python_ast/src/visitor.rs:129
↓ 5 callers
Method
at_sequence_end
Returns `true` if the current token ends a sequence.
crates/sith_python_parser/src/parser/expression.rs:131
↓ 5 callers
Method
contains
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:163
↓ 5 callers
Method
declarations
(&self)
crates/sith_semantic_model/src/symbol_table.rs:63
↓ 5 callers
Method
definition_scope
(&self)
crates/sith_semantic_model/src/symbol.rs:96
↓ 5 callers
Method
do_bump
Moves the parser to the next token.
crates/sith_python_parser/src/parser/mod.rs:273
↓ 5 callers
Method
eat_char2
(&mut self, c1: char, c2: char)
crates/sith_python_parser/src/lexer/cursor.rs:113
↓ 5 callers
Method
file_id
Returns the [`FileId`] for a given `file_path`. # Panics If there's no [`FileId`] for a `file_path`.
crates/sith_semantic_model/src/indexer.rs:616
↓ 5 callers
Method
index
(&self, index: I)
crates/ruff_index/src/slice.rs:129
↓ 5 callers
Method
into_class
(self)
crates/sith_semantic_model/src/type_inference.rs:33
↓ 5 callers
Method
into_workspace_edit
(self)
crates/sith_server/src/edit.rs:136
↓ 5 callers
Method
is_byte_string
Does the string have a `b` or `B` prefix?
crates/sith_python_ast/src/nodes.rs:4505
↓ 5 callers
Method
is_keyword
(self)
crates/sith_python_parser/src/token.rs:296
↓ 5 callers
Method
is_list_element
(self, p: &Parser)
crates/sith_python_parser/src/parser/mod.rs:1103
↓ 5 callers
Method
is_soft_keyword
(self)
crates/sith_python_parser/src/token.rs:307
↓ 5 callers
Method
is_subtype_of
(&self, other: &PythonType)
crates/sith_semantic_model/src/type_inference.rs:354
↓ 5 callers
Method
iter_mut
Returns an iterator over all the [`FStringPart`]s contained in this value that allows modification.
crates/sith_python_ast/src/nodes.rs:1230
↓ 5 callers
Method
line_start
Computes the start position of the line of `offset`. ## Examples ``` # use ruff_text_size::TextSize; # use ruff_source_file::Locator; let locator =
crates/ruff_source_file/src/locator.rs:74
↓ 5 callers
Method
location
(&self)
crates/sith_python_parser/src/error.rs:328
↓ 5 callers
Method
logForCI
* Logs messages to the console if the extension is running in a CI environment.
editors/vscode/src/utils/logger.ts:18
↓ 5 callers
Method
missing_node_range
(&self)
crates/sith_python_parser/src/parser/mod.rs:258
↓ 5 callers
Method
name
(&self)
crates/sith_benchmark/src/lib.rs:58
↓ 5 callers
Method
next_token
Lex the next token.
crates/sith_python_parser/src/lexer.rs:146
↓ 5 callers
Function
node_identifier_at_offset
(node: &'a AnyNodeRef<'a>, offset: u32)
crates/sith_python_ast_utils/src/lib.rs:38
↓ 5 callers
Method
node_stack
(&self, db: &'db SymbolTableDb)
crates/sith_semantic_model/src/type_inference.rs:276
↓ 5 callers
Function
parse
Parse the given Python source code using the specified [`Mode`]. This function is the most general function to parse Python code. Based on the [`Mode
crates/sith_python_parser/src/lib.rs:212
↓ 5 callers
Method
parse
Consumes the [`Parser`] and returns the parsed [`Parsed`].
crates/sith_python_parser/src/parser/mod.rs:75
↓ 5 callers
Function
parse_unchecked
Parse the given Python source code using the specified [`Mode`]. This is same as the [`parse`] function except that it doesn't check for any [`ParseE
crates/sith_python_parser/src/lib.rs:220
↓ 5 callers
Method
path
(&self)
crates/sith_semantic_model/src/indexer.rs:161
↓ 5 callers
Method
path
(&self)
crates/sith_server/src/server/api/requests/completion.rs:154
↓ 5 callers
Method
pop_scope
(&mut self)
crates/sith_server/src/server/api/requests/references.rs:381
↓ 5 callers
Function
range
(x: ops::Range<u32>)
crates/ruff_text_size/tests/serde.rs:11
↓ 5 callers
Method
range
(&self)
crates/sith_python_ast/src/node.rs:5092
↓ 5 callers
Method
root_path
(&self)
crates/sith_semantic_model/src/indexer.rs:592
↓ 5 callers
Method
set_fixes_for_document
Sets a series of [`Fixes`] for a text document.
crates/sith_server/src/edit.rs:78
↓ 5 callers
Method
src_text
(&self, ranged: T)
crates/sith_python_parser/src/parser/mod.rs:435
↓ 5 callers
Method
start
(&self)
crates/ruff_source_file/src/newlines.rs:208
↓ 5 callers
Method
visit_next_scope
(&mut self)
crates/sith_server/src/server/api/requests/references.rs:374
↓ 5 callers
Method
visit_operator
(&mut self, operator: &'a Operator)
crates/sith_python_ast/src/visitor.rs:42
↓ 5 callers
Method
visit_parameter
(&self, parameter: &mut Parameter)
crates/sith_python_ast/src/visitor/transformer.rs:49
↓ 5 callers
Method
workspace_for_url_mut
(&mut self, url: &Url)
crates/sith_server/src/session/workspace.rs:279
↓ 4 callers
Method
as_parameter
(self)
crates/sith_python_ast/src/nodes.rs:3114
↓ 4 callers
Method
as_ref
(&self)
crates/sith_python_ast/src/nodes.rs:3808
↓ 4 callers
Method
as_str
Return a `str` representation of the prefix
crates/sith_python_ast/src/str_prefix.rs:28
↓ 4 callers
Method
at_simple_stmt
Returns `true` if the current token is the start of a simple statement, including expressions.
crates/sith_python_parser/src/parser/statement.rs:88
↓ 4 callers
Function
comprehension_to_str
(comp: &Comprehension)
crates/sith_python_ast_utils/src/lib.rs:585
↓ 4 callers
Method
compute_position
(&self, cursor: usize)
crates/sith_python_parser/src/string.rs:81
↓ 4 callers
Method
current
(&self)
crates/sith_python_parser/src/lexer/fstring.rs:131
↓ 4 callers
Method
current_mut
(&mut self)
crates/sith_python_parser/src/lexer/fstring.rs:135
← previous
next →
201–300 of 2,449, ranked by callers