MCPcopy Create free account

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

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

↓ 199 callersMethodjoin
(mut self)
crates/sith_server/src/server/schedule/thread.rs:88
↓ 178 callersMethodvisit_source_order
(&'a self, visitor: &mut V)
crates/sith_python_ast/src/node.rs:752
↓ 149 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/sith_python_ast/src/visitor.rs:33
↓ 145 callersMethodexpect
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 callersMethodas_ref
(&self)
crates/sith_python_ast/src/node.rs:623
↓ 128 callersMethodadd_error
(&mut self, error: ParseErrorType, ranged: T)
crates/sith_python_parser/src/parser/mod.rs:404
↓ 128 callersFunctionparse_suite
(source: &str)
crates/sith_python_parser/src/string.rs:480
↓ 114 callersMethodnode_range
(&self, start: TextSize)
crates/sith_python_parser/src/parser/mod.rs:199
↓ 95 callersMethodstart
(self)
crates/ruff_text_size/src/range.rs:119
↓ 90 callersMethodcast
(kind: AnyNode)
crates/sith_python_ast/src/node.rs:725
↓ 90 callersFunctionparse_expr
(source: &str)
crates/sith_python_ast_utils/src/lib.rs:663
↓ 84 callersFunctionempty
Create an empty file at the given path.
crates/ruff_python_resolver/src/lib.rs:50
↓ 76 callersMethodbump
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 callersMethodrange
(&self)
crates/sith_semantic_model/src/scope.rs:111
↓ 74 callersMethodvisit_expr
(&self, expr: &mut Expr)
crates/sith_python_ast/src/visitor/transformer.rs:19
↓ 72 callersMethodindexer
(&self)
crates/sith_semantic_model/src/db.rs:33
↓ 72 callersMethodnode_start
Returns the start position for a node that starts at the current token.
crates/sith_python_parser/src/parser/mod.rs:195
↓ 71 callersMethodpush
(&mut self, context: FStringContext)
crates/sith_python_parser/src/lexer/fstring.rs:123
↓ 69 callersMethodcontains
(&self, url: &Url)
crates/sith_server/src/session/workspace.rs:309
↓ 68 callersMethodas_str
(&self)
crates/sith_python_ast/src/name.rs:27
↓ 67 callersMethodat
Returns `true` if the current token is of the given kind.
crates/sith_python_parser/src/parser/mod.rs:426
↓ 67 callersMethodcurrent_token_range
(&self)
crates/sith_python_parser/src/parser/mod.rs:309
↓ 65 callersMethodpath
(&self)
crates/sith_benchmark/src/lib.rs:66
↓ 64 callersMethoditer
(&self)
crates/sith_semantic_model/src/scope.rs:144
↓ 63 callersMethodcollect
(&mut self, body: &'a [Stmt])
crates/sith_python_ast_utils/src/lib.rs:167
↓ 61 callersMethodeat
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 callersMethodlen
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 callersMethodend
(self)
crates/ruff_text_size/src/range.rs:125
↓ 53 callersMethodget
(&self, id: ScopeId)
crates/sith_semantic_model/src/scope.rs:136
↓ 52 callersMethoditer
Returns an iterator over all the [`FStringPart`]s contained in this value.
crates/sith_python_ast/src/nodes.rs:1224
↓ 52 callersMethodpush
(&mut self, segment: &'a str)
crates/sith_python_ast/src/name.rs:315
↓ 48 callersMethodpush
(&mut self, id: DeclId)
crates/sith_semantic_model/src/declaration.rs:304
↓ 46 callersMethodvisit_body
(&mut self, body: &'a [Stmt])
crates/sith_python_ast/src/visitor.rs:93
↓ 45 callersMethodfilter
Filter [`ImplicitImports`] to only those symbols that were imported.
crates/ruff_python_resolver/src/implicit_imports.rs:111
↓ 44 callersMethodinto_iter
(self)
crates/sith_python_ast/src/nodes.rs:1280
↓ 39 callersMethodeat_char
(&mut self, c: char)
crates/sith_python_parser/src/lexer/cursor.rs:104
↓ 38 callersMethodis_empty
(&self)
crates/sith_server/src/edit.rs:129
↓ 38 callersFunctionkeyword_range
(start_offset: TextSize, keyword: &str)
crates/sith_server/src/server/api/requests/hover.rs:509
↓ 37 callersMethodcontains
(&self, kind: TokenKind)
crates/sith_python_parser/src/token_set.rs:28
↓ 37 callersMethodinsert
(&mut self, scope: Scope)
crates/sith_semantic_model/src/scope.rs:124
↓ 36 callersMethodcurrent_token_kind
(&self)
crates/sith_python_parser/src/parser/mod.rs:303
↓ 36 callersMethodextend
(&mut self, segments: impl IntoIterator<Item = &'a str>)
crates/sith_python_ast/src/name.rs:325
↓ 33 callersMethodbump
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 callersMethodwith_failure_code
(self, code: server::ErrorCode)
crates/sith_server/src/server/api.rs:261
↓ 30 callersMethodlen
(&self)
crates/sith_server/src/server/schedule/thread/pool.rs:110
↓ 30 callersFunctionresolve_options
( source_file: impl AsRef<Path>, name: &str, root: impl Into<PathBuf>, options
crates/ruff_python_resolver/src/lib.rs:74
↓ 30 callersFunctiontest_serialization
(ms: &SER, expected: &str)
crates/lsp-types/src/lib.rs:2780
↓ 29 callersMethodis_empty
(&self)
crates/sith_python_parser/tests/generate_inline_tests.rs:46
↓ 28 callersFunctionsetup
()
crates/ruff_python_resolver/src/lib.rs:131
↓ 27 callersMethodnodes
(&self)
crates/sith_python_ast_utils/src/nodes.rs:90
↓ 26 callersMethodenter_node
(&mut self, _node: AnyNodeRef<'a>)
crates/sith_python_ast/src/visitor/source_order.rs:15
↓ 26 callersMethodinfer_expr
( &mut self, expr: impl Into<AnyNodeRef<'a>>, nodes: &Nodes, )
crates/sith_semantic_model/src/type_inference.rs:848
↓ 26 callersMethodinto_iter
(self)
crates/sith_python_parser/src/lib.rs:485
↓ 26 callersMethodis_traverse
(self)
crates/sith_python_ast/src/visitor/source_order.rs:245
↓ 26 callersMethodleave_node
(&mut self, _node: AnyNodeRef<'a>)
crates/sith_python_ast/src/visitor/source_order.rs:20
↓ 25 callersMethodtoken_range
(&self)
crates/sith_python_parser/src/lexer.rs:1435
↓ 24 callersMethodcontents
(&self)
crates/sith_server/src/edit/document.rs:35
↓ 23 callersMethodlast
(&self)
crates/sith_semantic_model/src/declaration.rs:286
↓ 22 callersMethodas_str
(&self)
crates/sith_semantic_model/src/type_inference.rs:169
↓ 22 callersMethodfile_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 callersMethodpush_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 callersMethodsymbol_declaration
( &self, file: &PathBuf, name: &str, scope_id: ScopeId, query: Declara
crates/sith_semantic_model/src/db.rs:92
↓ 22 callersMethodvisit_expr
(&mut self, expr: &'b ast::Expr)
crates/sith_semantic_model/src/symbol_table.rs:958
↓ 21 callersMethodat_expr
Returns `true` if the current token is the start of an expression.
crates/sith_python_parser/src/parser/expression.rs:126
↓ 21 callersMethodparse_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 callersMethodpush
(&mut self, data: T)
crates/ruff_index/src/vec.rs:62
↓ 21 callersFunctionread_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 callersMethodstarts_with
(&self, other: &QualifiedName<'_>)
crates/sith_python_ast/src/name.rs:238
↓ 20 callersMethodnext
(&mut self)
crates/sith_python_parser/src/lib.rs:537
↓ 20 callersMethodoffset
(&self)
crates/sith_python_parser/src/lexer.rs:1451
↓ 20 callersMethodparent
(&self)
crates/sith_semantic_model/src/scope.rs:65
↓ 19 callersFunctionassert_type
(src: &str, path: impl AsRef<Path>, expected: &str)
crates/sith_semantic_model/src/type_inference.rs:1520
↓ 19 callersMethodchars
Returns an iterator over the [`char`]s of each string literal part.
crates/sith_python_ast/src/nodes.rs:1504
↓ 19 callersMethodfirst
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 callersMethodto_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 callersMethodadd_file
(mut self, file: impl AsRef<Path>, content: &str)
crates/sith_server/src/server/api/tests/lsp_client.rs:52
↓ 18 callersMethoddocument
(&self)
crates/sith_server/src/session.rs:167
↓ 18 callersMethodurl
(&self)
crates/sith_server/src/session.rs:175
↓ 17 callersMethodis_empty
Returns `true` if there are no implicit imports in the namespace package.
crates/ruff_python_resolver/src/implicit_imports.rs:162
↓ 17 callersMethodparse_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 callersMethodparse_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 callersMethodassert_progressing
(&mut self, p: &Parser)
crates/sith_python_parser/src/parser/progress.rs:35
↓ 16 callersMethodline_starts
Returns the [byte offsets](TextSize) for every line
crates/ruff_source_file/src/line_index.rs:237
↓ 16 callersMethodnode
(&self)
crates/sith_python_ast_utils/src/nodes.rs:26
↓ 16 callersFunctionparse_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 callersMethodparse_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 callersMethodsuite
(&self)
crates/sith_semantic_model/src/indexer.rs:165
↓ 16 callersMethodtext_len
(&self)
crates/sith_python_parser/src/lexer/cursor.rs:66
↓ 16 callersMethodunion
(self, other: TokenSet)
crates/sith_python_parser/src/token_set.rs:20
↓ 15 callersMethodappend
(value: string)
editors/vscode/src/utils/logger.ts:84
↓ 15 callersMethodat_ts
Returns `true` if the current token is found in the given token set.
crates/sith_python_parser/src/parser/mod.rs:431
↓ 15 callersMethodcontains_inclusive
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:182
↓ 15 callersMethodencoding
(&self)
crates/sith_server/src/session.rs:153
↓ 15 callersMethodindex
(&self)
crates/sith_server/src/edit/document.rs:39
↓ 15 callersFunctionrange
(x: ops::Range<u32>)
crates/ruff_text_size/tests/main.rs:10
↓ 15 callersMethodrange
(&self)
crates/sith_python_parser/src/parser/expression.rs:2330
↓ 14 callersMethodas_str
(&'b self)
crates/sith_python_parser/src/lexer.rs:1650
↓ 14 callersMethodbuild
(mut self, ast: &'a [Stmt])
crates/sith_semantic_model/src/symbol_table.rs:201
↓ 14 callersMethoditer
(&self)
crates/sith_python_ast_utils/src/nodes.rs:55
↓ 14 callersMethodparse_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