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
↓ 14 callers
Method
push_declaration
( &mut self, name: &str, kind: DeclarationKind, range: TextRange, node
crates/sith_semantic_model/src/symbol_table.rs:214
↓ 14 callers
Method
visit_body
(&mut self, body: &'a [Stmt])
crates/sith_python_ast/src/statement_visitor.rs:7
↓ 14 callers
Method
visit_body
(&self, body: &mut [Stmt])
crates/sith_python_ast/src/visitor/transformer.rs:79
↓ 14 callers
Method
visit_pattern
(&mut self, pattern: &'a Pattern)
crates/sith_python_ast/src/visitor.rs:84
↓ 13 callers
Method
as_str
Extracts a string slice containing the entire `String`.
crates/sith_python_ast/src/nodes.rs:1630
↓ 13 callers
Method
builtin_symbols
(&self)
crates/sith_semantic_model/src/db.rs:41
↓ 13 callers
Method
declarations
(&self)
crates/sith_semantic_model/src/symbol.rs:100
↓ 13 callers
Method
find
Returns the [`ParameterWithDefault`] with the given name, or `None` if no such [`ParameterWithDefault`] exists.
crates/sith_python_ast/src/nodes.rs:3192
↓ 13 callers
Method
find
( &self, symbol_name: &str, scope_id: ScopeId, symbol_node: &NodeWithParent,
crates/sith_server/src/server/api/requests/references.rs:142
↓ 13 callers
Method
finish
(self)
crates/sith_python_parser/src/lexer.rs:1510
↓ 13 callers
Method
import_source
(&self)
crates/sith_semantic_model/src/declaration.rs:204
↓ 13 callers
Method
is_triple_quoted
Return `true` if the string is triple-quoted, i.e., it begins and ends with three consecutive quote characters. For example: `"""bar"""` For implicit
crates/sith_python_ast/src/nodes.rs:1542
↓ 13 callers
Method
parse_comma_separated_list
Parses a comma separated list of elements where each element is parsed sing the given `parse_element` function. The difference between this function
crates/sith_python_parser/src/parser/mod.rs:520
↓ 13 callers
Method
pop_node
(&mut self)
crates/sith_semantic_model/src/symbol_table.rs:342
↓ 13 callers
Method
pop_node
(&mut self)
crates/sith_python_ast_utils/src/nodes.rs:100
↓ 13 callers
Method
push_node
(&mut self, node: impl Into<AnyNodeRef<'a>>)
crates/sith_semantic_model/src/symbol_table.rs:336
↓ 13 callers
Method
push_node
(&mut self, node: impl Into<AnyNodeRef<'a>>)
crates/sith_python_ast_utils/src/nodes.rs:94
↓ 13 callers
Method
scope
(&self, file: &PathBuf, scope_id: ScopeId)
crates/sith_semantic_model/src/db.rs:113
↓ 13 callers
Method
table
(&self, file: &PathBuf)
crates/sith_semantic_model/src/db.rs:53
↓ 13 callers
Method
to_usize
Returns current raw `offset` as usize. # Examples ```rust # use ruff_text_size::*; assert_eq!(TextSize::from(4).to_usize(), 4); ```
crates/ruff_text_size/src/size.rs:86
↓ 12 callers
Method
add_end
(&self, amount: TextSize)
crates/ruff_text_size/src/range.rs:421
↓ 12 callers
Method
any_path
Returns the path to the source file for import-related declarations, with preference given to stub sources over non-stub sources when available. Due
crates/sith_semantic_model/src/declaration.rs:138
↓ 12 callers
Method
bump_value
Take the token value from the underlying token source and bump the current token. # Panics If the current token is not of the given kind.
crates/sith_python_parser/src/parser/mod.rs:335
↓ 12 callers
Function
foo
()
crates/sith_python_parser/resources/invalid/expressions/arguments/unclosed_0.py:3
↓ 12 callers
Method
get
(&self, index: I)
crates/ruff_index/src/slice.rs:94
↓ 12 callers
Method
infer_symbol
( &mut self, name: &str, nodes: &Nodes, query: DeclarationQuery, )
crates/sith_semantic_model/src/type_inference.rs:1206
↓ 12 callers
Method
is_number_like
(&self)
crates/sith_semantic_model/src/type_inference.rs:162
↓ 12 callers
Function
new_tokens
Helper function to create [`Tokens`] from an iterator of (kind, range).
crates/sith_python_parser/src/lib.rs:653
↓ 12 callers
Method
remove
(self, kind: TokenKind)
crates/sith_python_parser/src/token_set.rs:24
↓ 11 callers
Method
as_slice
Returns a slice of all the [`FStringPart`]s contained in this value.
crates/sith_python_ast/src/nodes.rs:1208
↓ 11 callers
Method
db
(&self)
crates/sith_server/src/session.rs:163
↓ 11 callers
Method
declaration
(&self, file: &PathBuf, decl_id: DeclId)
crates/sith_semantic_model/src/db.rs:86
↓ 11 callers
Method
first
(&self)
crates/sith_semantic_model/src/declaration.rs:279
↓ 11 callers
Method
get
Returns the value as a primitive type.
crates/ruff_source_file/src/line_index.rs:302
↓ 11 callers
Method
info
(...messages: unknown[])
editors/vscode/src/utils/logger.ts:34
↓ 11 callers
Method
len
Returns the number of implicit imports in the namespace package.
crates/ruff_python_resolver/src/implicit_imports.rs:157
↓ 11 callers
Method
prefix
Returns the prefix used in the string literal. For implicit concatenated strings this function takes the prefix of the first string.
crates/sith_python_ast/src/nodes.rs:1523
↓ 11 callers
Method
push
(&mut self, c: char)
crates/sith_python_parser/src/lexer.rs:1640
↓ 11 callers
Method
resolved_client_capabilities
(&self)
crates/sith_server/src/session.rs:149
↓ 11 callers
Method
saturating_add
(self, rhs: usize)
crates/ruff_source_file/src/line_index.rs:314
↓ 11 callers
Method
text_len
(&self)
crates/ruff_source_file/src/locator.rs:468
↓ 11 callers
Method
visit_expr
(&mut self, expr: &'b ast::Expr)
crates/sith_python_ast_utils/src/nodes.rs:265
↓ 10 callers
Method
as_slice
(&self)
crates/sith_python_ast/src/name.rs:574
↓ 10 callers
Method
is_empty
(&self)
crates/sith_python_ast/src/name.rs:310
↓ 10 callers
Method
last
(mut self)
crates/sith_python_ast/src/nodes.rs:874
↓ 10 callers
Method
node_stack
(&self)
crates/sith_semantic_model/src/indexer.rs:197
↓ 10 callers
Method
position
(&self)
crates/sith_python_parser/src/string.rs:75
↓ 10 callers
Function
set_expr_ctx
Set the `ctx` for `Expr::Id`, `Expr::Attribute`, `Expr::Subscript`, `Expr::Starred`, `Expr::Tuple` and `Expr::List`. If `expr` is either `Expr::Tuple`
crates/sith_python_parser/src/parser/helpers.rs:8
↓ 10 callers
Method
symbol
(&self, file: &PathBuf, symbol_id: SymbolId)
crates/sith_semantic_model/src/db.rs:61
↓ 10 callers
Function
test_deserialization
(json: &str, expected: &T)
crates/lsp-types/src/lib.rs:2790
↓ 10 callers
Method
to_f64
(&self)
crates/sith_python_ast/src/float.rs:46
↓ 10 callers
Method
to_str
Returns the concatenated string value as a [`str`]. Note that this will perform an allocation on the first invocation if the string value is implicit
crates/sith_python_ast/src/nodes.rs:1512
↓ 10 callers
Method
visit_decorator
(&mut self, decorator: &'a Decorator)
crates/sith_python_ast/src/visitor.rs:30
↓ 9 callers
Function
assert_f64_bits_eq
(expected: f64, actual: f64, msg: &str)
crates/sith_python_ast/src/float.rs:136
↓ 9 callers
Method
ast_or_panic
Returns the AST for the `file_path`. # Panics If `file_path` was not indexed.
crates/sith_semantic_model/src/indexer.rs:644
↓ 9 callers
Method
at_name_or_soft_keyword
Returns `true` if the parser is at a name or soft keyword token.
crates/sith_python_parser/src/parser/expression.rs:116
↓ 9 callers
Method
body_scope
(&self)
crates/sith_semantic_model/src/declaration.rs:215
↓ 9 callers
Method
clear_declaration_node
(&mut self)
crates/sith_semantic_model/src/symbol_table.rs:210
↓ 9 callers
Method
code
(&self)
crates/sith_benchmark/src/lib.rs:54
↓ 9 callers
Method
extend_from_slice
(&mut self, segments: &[&'a str])
crates/sith_python_ast/src/name.rs:330
↓ 9 callers
Function
f
()
crates/sith_python_parser/resources/valid/other/decorator.py:12
↓ 9 callers
Method
find_enclosing_scope
(&self, file: &PathBuf, offset: u32)
crates/sith_semantic_model/src/db.rs:104
↓ 9 callers
Method
parent_id
(&self)
crates/sith_python_ast_utils/src/nodes.rs:22
↓ 9 callers
Method
parse_conditional_expression_or_higher_impl
( &mut self, context: ExpressionContext, )
crates/sith_python_parser/src/parser/expression.rs:197
↓ 9 callers
Method
pop
(&mut self)
crates/sith_python_parser/src/lexer/fstring.rs:127
↓ 9 callers
Method
saturating_sub
(self, rhs: usize)
crates/ruff_source_file/src/line_index.rs:324
↓ 9 callers
Method
set_declaration_node
(&mut self, node_id: NodeId)
crates/sith_semantic_model/src/symbol_table.rs:206
↓ 9 callers
Method
visit_type_params
(&mut self, type_params: &'a TypeParams)
crates/sith_python_ast/src/visitor.rs:75
↓ 9 callers
Method
write
(&mut self, buf: &[u8])
crates/sith_server/src/trace.rs:56
↓ 8 callers
Method
all
Returns all code actions kinds that the server currently supports.
crates/sith_server/src/server.rs:411
↓ 8 callers
Method
bump
Moves the cursor to the next character, returning the previous character. Returns [`None`] if there is no next character.
crates/sith_python_parser/src/lexer/cursor.rs:93
↓ 8 callers
Method
checked_add
(self, rhs: TextSize)
crates/ruff_text_size/src/size.rs:96
↓ 8 callers
Method
file_id
(&self)
crates/sith_server/src/server/api/requests/completion.rs:139
↓ 8 callers
Method
get
(&self, node_id: NodeId)
crates/sith_python_ast_utils/src/nodes.rs:51
↓ 8 callers
Method
get_mut
(&mut self, id: ScopeId)
crates/sith_semantic_model/src/scope.rs:140
↓ 8 callers
Function
get_python_module_candidates
(path: impl AsRef<Path>)
crates/sith_server/src/server/api/requests/completion.rs:580
↓ 8 callers
Method
is_valid
Returns `true` if the parsed source code is valid i.e., it has no syntax errors.
crates/sith_python_parser/src/lib.rs:268
↓ 8 callers
Method
is_yes
Returns `true` if the parenthesized value is `Yes`.
crates/sith_python_parser/src/parser/mod.rs:814
↓ 8 callers
Method
len
Return the number of bytes in the source code.
crates/ruff_source_file/src/locator.rs:464
↓ 8 callers
Method
len
(&self)
crates/ruff_index/src/slice.rs:49
↓ 8 callers
Function
lex_source
(source: &str)
crates/sith_python_parser/src/lexer.rs:1776
↓ 8 callers
Function
node_at_offset
(nodes: &'a Nodes, offset: u32)
crates/sith_python_ast_utils/src/lib.rs:31
↓ 8 callers
Function
position_to_offset
(contents: &str, position: &types::Position, index: &LineIndex)
crates/sith_server/src/edit/convert.rs:117
↓ 8 callers
Function
resolve_absolute_import
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
crates/ruff_python_resolver/src/resolver.rs:212
↓ 8 callers
Method
send
(&self, msg: lsp::Message)
crates/sith_server/src/server/connection.rs:137
↓ 8 callers
Method
source_location
Returns the row and column index for an offset. ## Examples ``` # use ruff_text_size::TextSize; # use ruff_source_file::{LineIndex, OneIndexed, Sour
crates/ruff_source_file/src/line_index.rs:95
↓ 8 callers
Method
text_len
(&self)
crates/ruff_source_file/src/newlines.rs:330
↓ 8 callers
Method
to_range
(&self, text: &str, index: &LineIndex, encoding: PositionEncoding)
crates/sith_server/src/edit/convert.rs:96
↓ 8 callers
Method
to_zero_indexed
Return the zero-indexed primitive value for this [`OneIndexed`]
crates/ruff_source_file/src/line_index.rs:307
↓ 8 callers
Method
visit_comprehension
(&mut self, comprehension: &'a Comprehension)
crates/sith_python_ast/src/visitor.rs:51
↓ 8 callers
Method
visit_parameter
(&mut self, parameter: &'a Parameter)
crates/sith_python_ast/src/visitor.rs:63
↓ 7 callers
Method
as_ref
(&self)
crates/sith_python_ast/src/name.rs:40
↓ 7 callers
Method
as_str
(&self)
crates/ruff_source_file/src/newlines.rs:255
↓ 7 callers
Method
client_settings
( &self, url: &Url, global_settings: &ClientSettings, )
crates/sith_server/src/session/workspace.rs:257
↓ 7 callers
Method
cmp
(&self, other: &Self)
crates/ruff_source_file/src/lib.rs:203
↓ 7 callers
Function
compute_replacement
(source: &str, modified: &str)
crates/sith_server/src/edit/replacement.rs:69
↓ 7 callers
Function
create
Create a file at the given path with the given content.
crates/ruff_python_resolver/src/lib.rs:38
↓ 7 callers
Function
deserialize
(deserializer: D)
crates/lsp-types/src/lib.rs:804
↓ 7 callers
Method
eat_if
(&mut self, mut predicate: F)
crates/sith_python_parser/src/lexer/cursor.rs:136
↓ 7 callers
Function
func
(a: T)
crates/sith_python_parser/resources/valid/statement/function.py:92
← previous
next →
101–200 of 2,449, ranked by callers