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
↓ 199 callers
Method
join
(mut self)
crates/sith_server/src/server/schedule/thread.rs:88
↓ 178 callers
Method
visit_source_order
(&'a self, visitor: &mut V)
crates/sith_python_ast/src/node.rs:752
↓ 149 callers
Method
visit_expr
(&mut self, expr: &'a Expr)
crates/sith_python_ast/src/visitor.rs:33
↓ 145 callers
Method
expect
Eat the current token if its of the expected kind, otherwise adds an appropriate error.
crates/sith_python_parser/src/parser/mod.rs:388
↓ 141 callers
Method
as_ref
(&self)
crates/sith_python_ast/src/node.rs:623
↓ 128 callers
Method
add_error
(&mut self, error: ParseErrorType, ranged: T)
crates/sith_python_parser/src/parser/mod.rs:404
↓ 128 callers
Function
parse_suite
(source: &str)
crates/sith_python_parser/src/string.rs:480
↓ 114 callers
Method
node_range
(&self, start: TextSize)
crates/sith_python_parser/src/parser/mod.rs:199
↓ 95 callers
Method
start
(self)
crates/ruff_text_size/src/range.rs:119
↓ 90 callers
Method
cast
(kind: AnyNode)
crates/sith_python_ast/src/node.rs:725
↓ 90 callers
Function
parse_expr
(source: &str)
crates/sith_python_ast_utils/src/lib.rs:663
↓ 84 callers
Function
empty
Create an empty file at the given path.
crates/ruff_python_resolver/src/lib.rs:50
↓ 76 callers
Method
bump
Bumps the current token assuming it is of the given kind. # Panics If the current token is not of the given kind.
crates/sith_python_parser/src/parser/mod.rs:324
↓ 75 callers
Method
range
(&self)
crates/sith_semantic_model/src/scope.rs:111
↓ 74 callers
Method
visit_expr
(&self, expr: &mut Expr)
crates/sith_python_ast/src/visitor/transformer.rs:19
↓ 72 callers
Method
indexer
(&self)
crates/sith_semantic_model/src/db.rs:33
↓ 72 callers
Method
node_start
Returns the start position for a node that starts at the current token.
crates/sith_python_parser/src/parser/mod.rs:195
↓ 71 callers
Method
push
(&mut self, context: FStringContext)
crates/sith_python_parser/src/lexer/fstring.rs:123
↓ 69 callers
Method
contains
(&self, url: &Url)
crates/sith_server/src/session/workspace.rs:309
↓ 68 callers
Method
as_str
(&self)
crates/sith_python_ast/src/name.rs:27
↓ 67 callers
Method
at
Returns `true` if the current token is of the given kind.
crates/sith_python_parser/src/parser/mod.rs:426
↓ 67 callers
Method
current_token_range
(&self)
crates/sith_python_parser/src/parser/mod.rs:309
↓ 65 callers
Method
path
(&self)
crates/sith_benchmark/src/lib.rs:66
↓ 64 callers
Method
iter
(&self)
crates/sith_semantic_model/src/scope.rs:144
↓ 63 callers
Method
collect
(&mut self, body: &'a [Stmt])
crates/sith_python_ast_utils/src/lib.rs:167
↓ 61 callers
Method
eat
Consume the current token if it is of the given kind. Returns `true` if it matches, `false` otherwise.
crates/sith_python_parser/src/parser/mod.rs:378
↓ 59 callers
Method
len
Returns the total length of the string literal value, in bytes, not [`char`]s or graphemes.
crates/sith_python_ast/src/nodes.rs:1499
↓ 55 callers
Method
end
(self)
crates/ruff_text_size/src/range.rs:125
↓ 53 callers
Method
get
(&self, id: ScopeId)
crates/sith_semantic_model/src/scope.rs:136
↓ 52 callers
Method
iter
Returns an iterator over all the [`FStringPart`]s contained in this value.
crates/sith_python_ast/src/nodes.rs:1224
↓ 52 callers
Method
push
(&mut self, segment: &'a str)
crates/sith_python_ast/src/name.rs:315
↓ 48 callers
Method
push
(&mut self, id: DeclId)
crates/sith_semantic_model/src/declaration.rs:304
↓ 46 callers
Method
visit_body
(&mut self, body: &'a [Stmt])
crates/sith_python_ast/src/visitor.rs:93
↓ 45 callers
Method
filter
Filter [`ImplicitImports`] to only those symbols that were imported.
crates/ruff_python_resolver/src/implicit_imports.rs:111
↓ 44 callers
Method
into_iter
(self)
crates/sith_python_ast/src/nodes.rs:1280
↓ 39 callers
Method
eat_char
(&mut self, c: char)
crates/sith_python_parser/src/lexer/cursor.rs:104
↓ 38 callers
Method
is_empty
(&self)
crates/sith_server/src/edit.rs:129
↓ 38 callers
Function
keyword_range
(start_offset: TextSize, keyword: &str)
crates/sith_server/src/server/api/requests/hover.rs:509
↓ 37 callers
Method
contains
(&self, kind: TokenKind)
crates/sith_python_parser/src/token_set.rs:28
↓ 37 callers
Method
insert
(&mut self, scope: Scope)
crates/sith_semantic_model/src/scope.rs:124
↓ 36 callers
Method
current_token_kind
(&self)
crates/sith_python_parser/src/parser/mod.rs:303
↓ 36 callers
Method
extend
(&mut self, segments: impl IntoIterator<Item = &'a str>)
crates/sith_python_ast/src/name.rs:325
↓ 33 callers
Method
bump
Bumps the token source to the next non-trivia token. It pushes the given kind to the token vector with the current token range.
crates/sith_python_parser/src/token_source.rs:119
↓ 31 callers
Method
with_failure_code
(self, code: server::ErrorCode)
crates/sith_server/src/server/api.rs:261
↓ 30 callers
Method
len
(&self)
crates/sith_server/src/server/schedule/thread/pool.rs:110
↓ 30 callers
Function
resolve_options
( source_file: impl AsRef<Path>, name: &str, root: impl Into<PathBuf>, options
crates/ruff_python_resolver/src/lib.rs:74
↓ 30 callers
Function
test_serialization
(ms: &SER, expected: &str)
crates/lsp-types/src/lib.rs:2780
↓ 29 callers
Method
is_empty
(&self)
crates/sith_python_parser/tests/generate_inline_tests.rs:46
↓ 28 callers
Function
setup
()
crates/ruff_python_resolver/src/lib.rs:131
↓ 27 callers
Method
nodes
(&self)
crates/sith_python_ast_utils/src/nodes.rs:90
↓ 26 callers
Method
enter_node
(&mut self, _node: AnyNodeRef<'a>)
crates/sith_python_ast/src/visitor/source_order.rs:15
↓ 26 callers
Method
infer_expr
( &mut self, expr: impl Into<AnyNodeRef<'a>>, nodes: &Nodes, )
crates/sith_semantic_model/src/type_inference.rs:848
↓ 26 callers
Method
into_iter
(self)
crates/sith_python_parser/src/lib.rs:485
↓ 26 callers
Method
is_traverse
(self)
crates/sith_python_ast/src/visitor/source_order.rs:245
↓ 26 callers
Method
leave_node
(&mut self, _node: AnyNodeRef<'a>)
crates/sith_python_ast/src/visitor/source_order.rs:20
↓ 25 callers
Method
token_range
(&self)
crates/sith_python_parser/src/lexer.rs:1435
↓ 24 callers
Method
contents
(&self)
crates/sith_server/src/edit/document.rs:35
↓ 23 callers
Method
last
(&self)
crates/sith_semantic_model/src/declaration.rs:286
↓ 22 callers
Method
as_str
(&self)
crates/sith_semantic_model/src/type_inference.rs:169
↓ 22 callers
Method
file_path
Returns the path [`PathBuf`] for a given `file_id`. # Panics If there's no [`PathBuf`] for a `file_id`.
crates/sith_semantic_model/src/indexer.rs:603
↓ 22 callers
Method
push_error
Helper function to push the given error, updating the current range with the error location and return the [`TokenKind::Unknown`] token.
crates/sith_python_parser/src/lexer.rs:139
↓ 22 callers
Method
symbol_declaration
( &self, file: &PathBuf, name: &str, scope_id: ScopeId, query: Declara
crates/sith_semantic_model/src/db.rs:92
↓ 22 callers
Method
visit_expr
(&mut self, expr: &'b ast::Expr)
crates/sith_semantic_model/src/symbol_table.rs:958
↓ 21 callers
Method
at_expr
Returns `true` if the current token is the start of an expression.
crates/sith_python_parser/src/parser/expression.rs:126
↓ 21 callers
Method
parse_conditional_expression_or_higher
Parses every Python expression except unparenthesized tuple and named expressions. Matches the `expression` rule in the [Python grammar]. This uses
crates/sith_python_parser/src/parser/expression.rs:193
↓ 21 callers
Method
push
(&mut self, data: T)
crates/ruff_index/src/vec.rs:62
↓ 21 callers
Function
read_to_string
Reads the entire contents of a file into a string, just like [`fs::read_to_string`]. The only difference is that this function can read non-UTF8 files
crates/sith_semantic_model/src/util.rs:5
↓ 21 callers
Method
starts_with
(&self, other: &QualifiedName<'_>)
crates/sith_python_ast/src/name.rs:238
↓ 20 callers
Method
next
(&mut self)
crates/sith_python_parser/src/lib.rs:537
↓ 20 callers
Method
offset
(&self)
crates/sith_python_parser/src/lexer.rs:1451
↓ 20 callers
Method
parent
(&self)
crates/sith_semantic_model/src/scope.rs:65
↓ 19 callers
Function
assert_type
(src: &str, path: impl AsRef<Path>, expected: &str)
crates/sith_semantic_model/src/type_inference.rs:1520
↓ 19 callers
Method
chars
Returns an iterator over the [`char`]s of each string literal part.
crates/sith_python_ast/src/nodes.rs:1504
↓ 19 callers
Method
first
Peeks the next 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:42
↓ 19 callers
Method
to_u32
Returns current raw `offset` as u32. # Examples ```rust # use ruff_text_size::*; assert_eq!(TextSize::from(4).to_u32(), 4); ```
crates/ruff_text_size/src/size.rs:74
↓ 18 callers
Method
add_file
(mut self, file: impl AsRef<Path>, content: &str)
crates/sith_server/src/server/api/tests/lsp_client.rs:52
↓ 18 callers
Method
document
(&self)
crates/sith_server/src/session.rs:167
↓ 18 callers
Method
url
(&self)
crates/sith_server/src/session.rs:175
↓ 17 callers
Method
is_empty
Returns `true` if there are no implicit imports in the namespace package.
crates/ruff_python_resolver/src/implicit_imports.rs:162
↓ 17 callers
Method
parse_expression_list
Parses every Python expression. Matches the `expressions` rule in the [Python grammar]. The [`ExpressionContext`] can be used to match the `star_expr
crates/sith_python_parser/src/parser/expression.rs:141
↓ 17 callers
Method
parse_identifier
Parses an identifier. For an invalid identifier, the `id` field will be an empty string. See: <https://docs.python.org/3/reference/expressions.html#
crates/sith_python_parser/src/parser/expression.rs:472
↓ 16 callers
Method
assert_progressing
(&mut self, p: &Parser)
crates/sith_python_parser/src/parser/progress.rs:35
↓ 16 callers
Method
line_starts
Returns the [byte offsets](TextSize) for every line
crates/ruff_source_file/src/line_index.rs:237
↓ 16 callers
Method
node
(&self)
crates/sith_python_ast_utils/src/nodes.rs:26
↓ 16 callers
Function
parse_expression
Parses a single Python expression. This convenience function can be used to parse a single expression without having to specify the Mode or the locat
crates/sith_python_parser/src/lib.rs:130
↓ 16 callers
Method
parse_named_expression_or_higher
Parses every Python expression except unparenthesized tuple. Matches the `named_expression` rule in the [Python grammar]. The [`ExpressionContext`] c
crates/sith_python_parser/src/parser/expression.rs:167
↓ 16 callers
Method
suite
(&self)
crates/sith_semantic_model/src/indexer.rs:165
↓ 16 callers
Method
text_len
(&self)
crates/sith_python_parser/src/lexer/cursor.rs:66
↓ 16 callers
Method
union
(self, other: TokenSet)
crates/sith_python_parser/src/token_set.rs:20
↓ 15 callers
Method
append
(value: string)
editors/vscode/src/utils/logger.ts:84
↓ 15 callers
Method
at_ts
Returns `true` if the current token is found in the given token set.
crates/sith_python_parser/src/parser/mod.rs:431
↓ 15 callers
Method
contains_inclusive
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:182
↓ 15 callers
Method
encoding
(&self)
crates/sith_server/src/session.rs:153
↓ 15 callers
Method
index
(&self)
crates/sith_server/src/edit/document.rs:39
↓ 15 callers
Function
range
(x: ops::Range<u32>)
crates/ruff_text_size/tests/main.rs:10
↓ 15 callers
Method
range
(&self)
crates/sith_python_parser/src/parser/expression.rs:2330
↓ 14 callers
Method
as_str
(&'b self)
crates/sith_python_parser/src/lexer.rs:1650
↓ 14 callers
Method
build
(mut self, ast: &'a [Stmt])
crates/sith_semantic_model/src/symbol_table.rs:201
↓ 14 callers
Method
iter
(&self)
crates/sith_python_ast_utils/src/nodes.rs:55
↓ 14 callers
Method
parse_body
Parses the body of the given [`Clause`]. This could either be a single statement that's on the same line as the clause header or an indented block.
crates/sith_python_parser/src/parser/statement.rs:2582
next →
1–100 of 2,449, ranked by callers