MCPcopy Create free account

hub / github.com/LaBatata101/sith-language-server / functions

Functions2,449 in github.com/LaBatata101/sith-language-server

↓ 14 callersMethodpush_declaration
( &mut self, name: &str, kind: DeclarationKind, range: TextRange, node
crates/sith_semantic_model/src/symbol_table.rs:214
↓ 14 callersMethodvisit_body
(&mut self, body: &'a [Stmt])
crates/sith_python_ast/src/statement_visitor.rs:7
↓ 14 callersMethodvisit_body
(&self, body: &mut [Stmt])
crates/sith_python_ast/src/visitor/transformer.rs:79
↓ 14 callersMethodvisit_pattern
(&mut self, pattern: &'a Pattern)
crates/sith_python_ast/src/visitor.rs:84
↓ 13 callersMethodas_str
Extracts a string slice containing the entire `String`.
crates/sith_python_ast/src/nodes.rs:1630
↓ 13 callersMethodbuiltin_symbols
(&self)
crates/sith_semantic_model/src/db.rs:41
↓ 13 callersMethoddeclarations
(&self)
crates/sith_semantic_model/src/symbol.rs:100
↓ 13 callersMethodfind
Returns the [`ParameterWithDefault`] with the given name, or `None` if no such [`ParameterWithDefault`] exists.
crates/sith_python_ast/src/nodes.rs:3192
↓ 13 callersMethodfind
( &self, symbol_name: &str, scope_id: ScopeId, symbol_node: &NodeWithParent,
crates/sith_server/src/server/api/requests/references.rs:142
↓ 13 callersMethodfinish
(self)
crates/sith_python_parser/src/lexer.rs:1510
↓ 13 callersMethodimport_source
(&self)
crates/sith_semantic_model/src/declaration.rs:204
↓ 13 callersMethodis_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 callersMethodparse_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 callersMethodpop_node
(&mut self)
crates/sith_semantic_model/src/symbol_table.rs:342
↓ 13 callersMethodpop_node
(&mut self)
crates/sith_python_ast_utils/src/nodes.rs:100
↓ 13 callersMethodpush_node
(&mut self, node: impl Into<AnyNodeRef<'a>>)
crates/sith_semantic_model/src/symbol_table.rs:336
↓ 13 callersMethodpush_node
(&mut self, node: impl Into<AnyNodeRef<'a>>)
crates/sith_python_ast_utils/src/nodes.rs:94
↓ 13 callersMethodscope
(&self, file: &PathBuf, scope_id: ScopeId)
crates/sith_semantic_model/src/db.rs:113
↓ 13 callersMethodtable
(&self, file: &PathBuf)
crates/sith_semantic_model/src/db.rs:53
↓ 13 callersMethodto_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 callersMethodadd_end
(&self, amount: TextSize)
crates/ruff_text_size/src/range.rs:421
↓ 12 callersMethodany_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 callersMethodbump_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 callersFunctionfoo
()
crates/sith_python_parser/resources/invalid/expressions/arguments/unclosed_0.py:3
↓ 12 callersMethodget
(&self, index: I)
crates/ruff_index/src/slice.rs:94
↓ 12 callersMethodinfer_symbol
( &mut self, name: &str, nodes: &Nodes, query: DeclarationQuery, )
crates/sith_semantic_model/src/type_inference.rs:1206
↓ 12 callersMethodis_number_like
(&self)
crates/sith_semantic_model/src/type_inference.rs:162
↓ 12 callersFunctionnew_tokens
Helper function to create [`Tokens`] from an iterator of (kind, range).
crates/sith_python_parser/src/lib.rs:653
↓ 12 callersMethodremove
(self, kind: TokenKind)
crates/sith_python_parser/src/token_set.rs:24
↓ 11 callersMethodas_slice
Returns a slice of all the [`FStringPart`]s contained in this value.
crates/sith_python_ast/src/nodes.rs:1208
↓ 11 callersMethoddb
(&self)
crates/sith_server/src/session.rs:163
↓ 11 callersMethoddeclaration
(&self, file: &PathBuf, decl_id: DeclId)
crates/sith_semantic_model/src/db.rs:86
↓ 11 callersMethodfirst
(&self)
crates/sith_semantic_model/src/declaration.rs:279
↓ 11 callersMethodget
Returns the value as a primitive type.
crates/ruff_source_file/src/line_index.rs:302
↓ 11 callersMethodinfo
(...messages: unknown[])
editors/vscode/src/utils/logger.ts:34
↓ 11 callersMethodlen
Returns the number of implicit imports in the namespace package.
crates/ruff_python_resolver/src/implicit_imports.rs:157
↓ 11 callersMethodprefix
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 callersMethodpush
(&mut self, c: char)
crates/sith_python_parser/src/lexer.rs:1640
↓ 11 callersMethodresolved_client_capabilities
(&self)
crates/sith_server/src/session.rs:149
↓ 11 callersMethodsaturating_add
(self, rhs: usize)
crates/ruff_source_file/src/line_index.rs:314
↓ 11 callersMethodtext_len
(&self)
crates/ruff_source_file/src/locator.rs:468
↓ 11 callersMethodvisit_expr
(&mut self, expr: &'b ast::Expr)
crates/sith_python_ast_utils/src/nodes.rs:265
↓ 10 callersMethodas_slice
(&self)
crates/sith_python_ast/src/name.rs:574
↓ 10 callersMethodis_empty
(&self)
crates/sith_python_ast/src/name.rs:310
↓ 10 callersMethodlast
(mut self)
crates/sith_python_ast/src/nodes.rs:874
↓ 10 callersMethodnode_stack
(&self)
crates/sith_semantic_model/src/indexer.rs:197
↓ 10 callersMethodposition
(&self)
crates/sith_python_parser/src/string.rs:75
↓ 10 callersFunctionset_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 callersMethodsymbol
(&self, file: &PathBuf, symbol_id: SymbolId)
crates/sith_semantic_model/src/db.rs:61
↓ 10 callersFunctiontest_deserialization
(json: &str, expected: &T)
crates/lsp-types/src/lib.rs:2790
↓ 10 callersMethodto_f64
(&self)
crates/sith_python_ast/src/float.rs:46
↓ 10 callersMethodto_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 callersMethodvisit_decorator
(&mut self, decorator: &'a Decorator)
crates/sith_python_ast/src/visitor.rs:30
↓ 9 callersFunctionassert_f64_bits_eq
(expected: f64, actual: f64, msg: &str)
crates/sith_python_ast/src/float.rs:136
↓ 9 callersMethodast_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 callersMethodat_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 callersMethodbody_scope
(&self)
crates/sith_semantic_model/src/declaration.rs:215
↓ 9 callersMethodclear_declaration_node
(&mut self)
crates/sith_semantic_model/src/symbol_table.rs:210
↓ 9 callersMethodcode
(&self)
crates/sith_benchmark/src/lib.rs:54
↓ 9 callersMethodextend_from_slice
(&mut self, segments: &[&'a str])
crates/sith_python_ast/src/name.rs:330
↓ 9 callersFunctionf
()
crates/sith_python_parser/resources/valid/other/decorator.py:12
↓ 9 callersMethodfind_enclosing_scope
(&self, file: &PathBuf, offset: u32)
crates/sith_semantic_model/src/db.rs:104
↓ 9 callersMethodparent_id
(&self)
crates/sith_python_ast_utils/src/nodes.rs:22
↓ 9 callersMethodparse_conditional_expression_or_higher_impl
( &mut self, context: ExpressionContext, )
crates/sith_python_parser/src/parser/expression.rs:197
↓ 9 callersMethodpop
(&mut self)
crates/sith_python_parser/src/lexer/fstring.rs:127
↓ 9 callersMethodsaturating_sub
(self, rhs: usize)
crates/ruff_source_file/src/line_index.rs:324
↓ 9 callersMethodset_declaration_node
(&mut self, node_id: NodeId)
crates/sith_semantic_model/src/symbol_table.rs:206
↓ 9 callersMethodvisit_type_params
(&mut self, type_params: &'a TypeParams)
crates/sith_python_ast/src/visitor.rs:75
↓ 9 callersMethodwrite
(&mut self, buf: &[u8])
crates/sith_server/src/trace.rs:56
↓ 8 callersMethodall
Returns all code actions kinds that the server currently supports.
crates/sith_server/src/server.rs:411
↓ 8 callersMethodbump
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 callersMethodchecked_add
(self, rhs: TextSize)
crates/ruff_text_size/src/size.rs:96
↓ 8 callersMethodfile_id
(&self)
crates/sith_server/src/server/api/requests/completion.rs:139
↓ 8 callersMethodget
(&self, node_id: NodeId)
crates/sith_python_ast_utils/src/nodes.rs:51
↓ 8 callersMethodget_mut
(&mut self, id: ScopeId)
crates/sith_semantic_model/src/scope.rs:140
↓ 8 callersFunctionget_python_module_candidates
(path: impl AsRef<Path>)
crates/sith_server/src/server/api/requests/completion.rs:580
↓ 8 callersMethodis_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 callersMethodis_yes
Returns `true` if the parenthesized value is `Yes`.
crates/sith_python_parser/src/parser/mod.rs:814
↓ 8 callersMethodlen
Return the number of bytes in the source code.
crates/ruff_source_file/src/locator.rs:464
↓ 8 callersMethodlen
(&self)
crates/ruff_index/src/slice.rs:49
↓ 8 callersFunctionlex_source
(source: &str)
crates/sith_python_parser/src/lexer.rs:1776
↓ 8 callersFunctionnode_at_offset
(nodes: &'a Nodes, offset: u32)
crates/sith_python_ast_utils/src/lib.rs:31
↓ 8 callersFunctionposition_to_offset
(contents: &str, position: &types::Position, index: &LineIndex)
crates/sith_server/src/edit/convert.rs:117
↓ 8 callersFunctionresolve_absolute_import
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
crates/ruff_python_resolver/src/resolver.rs:212
↓ 8 callersMethodsend
(&self, msg: lsp::Message)
crates/sith_server/src/server/connection.rs:137
↓ 8 callersMethodsource_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 callersMethodtext_len
(&self)
crates/ruff_source_file/src/newlines.rs:330
↓ 8 callersMethodto_range
(&self, text: &str, index: &LineIndex, encoding: PositionEncoding)
crates/sith_server/src/edit/convert.rs:96
↓ 8 callersMethodto_zero_indexed
Return the zero-indexed primitive value for this [`OneIndexed`]
crates/ruff_source_file/src/line_index.rs:307
↓ 8 callersMethodvisit_comprehension
(&mut self, comprehension: &'a Comprehension)
crates/sith_python_ast/src/visitor.rs:51
↓ 8 callersMethodvisit_parameter
(&mut self, parameter: &'a Parameter)
crates/sith_python_ast/src/visitor.rs:63
↓ 7 callersMethodas_ref
(&self)
crates/sith_python_ast/src/name.rs:40
↓ 7 callersMethodas_str
(&self)
crates/ruff_source_file/src/newlines.rs:255
↓ 7 callersMethodclient_settings
( &self, url: &Url, global_settings: &ClientSettings, )
crates/sith_server/src/session/workspace.rs:257
↓ 7 callersMethodcmp
(&self, other: &Self)
crates/ruff_source_file/src/lib.rs:203
↓ 7 callersFunctioncompute_replacement
(source: &str, modified: &str)
crates/sith_server/src/edit/replacement.rs:69
↓ 7 callersFunctioncreate
Create a file at the given path with the given content.
crates/ruff_python_resolver/src/lib.rs:38
↓ 7 callersFunctiondeserialize
(deserializer: D)
crates/lsp-types/src/lib.rs:804
↓ 7 callersMethodeat_if
(&mut self, mut predicate: F)
crates/sith_python_parser/src/lexer/cursor.rs:136
↓ 7 callersFunctionfunc
(a: T)
crates/sith_python_parser/resources/valid/statement/function.py:92
← previousnext →101–200 of 2,449, ranked by callers