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
↓ 1 callers
Method
line_range
Returns the [`TextRange`] of the `line` with the given index. The start points to the first character's [byte offset](TextSize), the end up to, and in
crates/ruff_source_file/src/line_index.rs:195
↓ 1 callers
Method
lines_range
Computes the range of all lines that this `range` covers. The range starts at the beginning of the line at `range.start()` and goes up to, but exclud
crates/ruff_source_file/src/locator.rs:306
↓ 1 callers
Method
lint_args
(&self)
crates/sith_server/src/session/settings.rs:290
↓ 1 callers
Method
lint_extend_select
(&self)
crates/sith_server/src/session/settings.rs:298
↓ 1 callers
Method
lint_ignore
(&self)
crates/sith_server/src/session/settings.rs:302
↓ 1 callers
Method
lint_select
(&self)
crates/sith_server/src/session/settings.rs:294
↓ 1 callers
Method
list_terminator_kind
Checks the current token the parser is at and returns the list terminator kind if the token terminates the list as per the context.
crates/sith_python_parser/src/parser/mod.rs:946
↓ 1 callers
Method
modify
A private function for modifying the document's internal state
crates/sith_server/src/edit/document.rs:108
↓ 1 callers
Method
name
(&self)
crates/ruff_source_file/src/lib.rs:167
↓ 1 callers
Method
nesting
Return the nesting level the iterator is currently in.
crates/sith_python_parser/src/lib.rs:519
↓ 1 callers
Method
next_back
(&mut self)
crates/ruff_source_file/src/newlines.rs:120
↓ 1 callers
Method
next_index
(&self)
crates/ruff_index/src/vec.rs:69
↓ 1 callers
Function
node_at_row
( nodes: &'a Nodes, offset: u32, index: &LineIndex, )
crates/sith_python_ast_utils/src/lib.rs:19
↓ 1 callers
Function
node_position_ctx
( node: &NodeWithParent<'nodes>, db: &SymbolTableDb, path: &Arc<PathBuf>, scope_id: ScopeId,
crates/sith_server/src/server/api/requests/completion.rs:255
↓ 1 callers
Method
non_stub_file_id
(&self, path: &PathBuf)
crates/sith_semantic_model/src/indexer.rs:148
↓ 1 callers
Method
non_stub_path
(&self, file_id: &FileId)
crates/sith_semantic_model/src/indexer.rs:144
↓ 1 callers
Function
notification
(notif: server::Notification)
crates/sith_server/src/server/api.rs:98
↓ 1 callers
Method
open_workspace_folder
( &mut self, folder_url: &Url, settings: ClientSettings, )
crates/sith_server/src/session/workspace.rs:155
↓ 1 callers
Method
opener_len
The total length of the string's opener, i.e., the length of the prefixes plus the length of the quotes used to open the string.
crates/sith_python_ast/src/nodes.rs:4377
↓ 1 callers
Function
organize_imports
(snapshot: &DocumentSnapshot)
crates/sith_server/src/server/api/requests/code_action.rs:115
↓ 1 callers
Function
parameters_to_str
(parameters: &Parameters)
crates/sith_python_ast_utils/src/lib.rs:539
↓ 1 callers
Method
parse
(self)
crates/sith_python_parser/src/string.rs:443
↓ 1 callers
Method
parse_annotated_assignment_statement
Parses an annotated assignment statement. # Panics If the parser isn't positioned at a `:` token. See: <https://docs.python.org/3/reference/simple_
crates/sith_python_parser/src/parser/statement.rs:1107
↓ 1 callers
Method
parse_assert_statement
Parses an `assert` statement. # Panics If the parser isn't positioned at an `assert` token. See: <https://docs.python.org/3/reference/simple_stmts.
crates/sith_python_parser/src/parser/statement.rs:756
↓ 1 callers
Method
parse_assign_statement
Parse an assignment statement. # Panics If the parser isn't positioned at an `=` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/sith_python_parser/src/parser/statement.rs:1040
↓ 1 callers
Method
parse_async_statement
Parses a statement that is valid after an `async` token. If the statement is not a valid `async` statement, an error will be reported and it will be
crates/sith_python_parser/src/parser/statement.rs:2444
↓ 1 callers
Method
parse_atom
Parses an atom. See: <https://docs.python.org/3/reference/expressions.html#atoms>
crates/sith_python_parser/src/parser/expression.rs:517
↓ 1 callers
Method
parse_attr_expr_for_match_pattern
Parses an attribute expression until the current token is not a `.`.
crates/sith_python_parser/src/parser/pattern.rs:581
↓ 1 callers
Method
parse_augmented_assignment_statement
Parses an augmented assignment statement. # Panics If the parser isn't positioned at an augmented assignment token. See: <https://docs.python.org/3
crates/sith_python_parser/src/parser/statement.rs:1186
↓ 1 callers
Method
parse_await_expression
Parses an `await` expression. # Panics If the parser isn't positioned at an `await` token. See: <https://docs.python.org/3/reference/expressions.ht
crates/sith_python_parser/src/parser/expression.rs:2060
↓ 1 callers
Method
parse_binary_expression_or_higher_recursive
( &mut self, mut left: ParsedExpr, left_precedence: OperatorPrecedence, contex
crates/sith_python_parser/src/parser/expression.rs:244
↓ 1 callers
Method
parse_block
Parses a block of statements. # Panics If the parser isn't positioned at an `Indent` token.
crates/sith_python_parser/src/parser/statement.rs:2622
↓ 1 callers
Method
parse_boolean_expression
Parses a boolean operation expression. Note that the boolean `not` operator is parsed as a unary expression and not as a boolean expression. # Panic
crates/sith_python_parser/src/parser/expression.rs:964
↓ 1 callers
Method
parse_break_statement
Parses a `break` statement. # Panics If the parser isn't positioned at a `break` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/sith_python_parser/src/parser/statement.rs:741
↓ 1 callers
Method
parse_bytes
(mut self)
crates/sith_python_parser/src/string.rs:320
↓ 1 callers
Method
parse_call_expression
Parse a call expression. The function name is parsed by the caller and passed as `func` along with the `start` position of the call expression. # Pa
crates/sith_python_parser/src/parser/expression.rs:634
↓ 1 callers
Method
parse_comparison_expression
Parse a comparison expression. This includes the following operators: - Value comparisons: `==`, `!=`, `<`, `<=`, `>`, and `>=`. - Membership tests:
crates/sith_python_parser/src/parser/expression.rs:1030
↓ 1 callers
Method
parse_complex_literal_pattern
Parses a complex literal pattern, given the `lhs` pattern and the `start` position of the pattern. # Panics If the parser isn't positioned at a `+`
crates/sith_python_parser/src/parser/pattern.rs:534
↓ 1 callers
Method
parse_comprehension
Parses a comprehension. # Panics If the parser isn't positioned at an `async` or `for` token. See: <https://docs.python.org/3/reference/expressions
crates/sith_python_parser/src/parser/expression.rs:1889
↓ 1 callers
Method
parse_continue_statement
Parses a `continue` statement. # Panics If the parser isn't positioned at a `continue` token. See: <https://docs.python.org/3/reference/simple_stmt
crates/sith_python_parser/src/parser/statement.rs:726
↓ 1 callers
Method
parse_decorators
Parses a decorator list followed by a class, function or async function definition. See: <https://docs.python.org/3/reference/compound_stmts.html#gra
crates/sith_python_parser/src/parser/statement.rs:2493
↓ 1 callers
Method
parse_delete_statement
Parses a delete statement. # Panics If the parser isn't positioned at a `del` token. See: <https://docs.python.org/3/reference/simple_stmts.html#gr
crates/sith_python_parser/src/parser/statement.rs:328
↓ 1 callers
Method
parse_dictionary_comprehension_expression
Parses a dictionary comprehension expression. See: <https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries>
crates/sith_python_parser/src/parser/expression.rs:1980
↓ 1 callers
Method
parse_except_clause
Parses an `except` clause of a `try` statement. # Panics If the parser isn't positioned at an `except` token.
crates/sith_python_parser/src/parser/statement.rs:1447
↓ 1 callers
Method
parse_from_import_statement
Parses a `from` import statement. # Panics If the parser isn't positioned at a `from` token. See: <https://docs.python.org/3/reference/simple_stmts
crates/sith_python_parser/src/parser/statement.rs:513
↓ 1 callers
Method
parse_fstring
Parses a f-string. This does not handle implicitly concatenated strings. # Panics If the parser isn't positioned at a `FStringStart` token. See: <
crates/sith_python_parser/src/parser/expression.rs:1301
↓ 1 callers
Method
parse_fstring_expression_element
Parses a f-string expression element. # Panics If the parser isn't positioned at a `{` token.
crates/sith_python_parser/src/parser/expression.rs:1387
↓ 1 callers
Function
parse_fstring_literal_element
TODO(dhruvmanila): Move this to the new parser
crates/sith_python_parser/src/string.rs:461
↓ 1 callers
Method
parse_fstring_middle
(mut self)
crates/sith_python_parser/src/string.rs:234
↓ 1 callers
Method
parse_global_statement
Parses a global statement. # Panics If the parser isn't positioned at a `global` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/sith_python_parser/src/parser/statement.rs:805
↓ 1 callers
Method
parse_if_expression
Parses an `if` expression. # Panics If the parser isn't positioned at an `if` token. See: <https://docs.python.org/3/reference/expressions.html#con
crates/sith_python_parser/src/parser/expression.rs:2224
↓ 1 callers
Method
parse_if_statement
Parses an `if` statement. # Panics If the parser isn't positioned at an `if` token. See: <https://docs.python.org/3/reference/compound_stmts.html#t
crates/sith_python_parser/src/parser/statement.rs:1240
↓ 1 callers
Method
parse_import_statement
Parses an import statement. # Panics If the parser isn't positioned at an `import` token. See: <https://docs.python.org/3/reference/simple_stmts.ht
crates/sith_python_parser/src/parser/statement.rs:473
↓ 1 callers
Method
parse_ipython_escape_command_expression
Parses an IPython escape command at the expression level. # Panics If the parser isn't positioned at a `IpyEscapeCommand` token. If the escape comma
crates/sith_python_parser/src/parser/expression.rs:2247
↓ 1 callers
Method
parse_ipython_escape_command_statement
Parses an IPython escape command at the statement level. # Panics If the parser isn't positioned at an `IpyEscapeCommand` token.
crates/sith_python_parser/src/parser/statement.rs:920
↓ 1 callers
Method
parse_ipython_help_end_escape_command_statement
Parses an IPython help end escape command at the statement level. # Panics If the parser isn't positioned at a `?` token.
crates/sith_python_parser/src/parser/statement.rs:942
↓ 1 callers
Method
parse_lhs_expression
Parses the left-hand side of an expression. This includes prefix expressions such as unary operators, boolean `not`, `await`, `lambda`. It also parse
crates/sith_python_parser/src/parser/expression.rs:316
↓ 1 callers
Method
parse_list_comprehension_expression
Parses a list comprehension expression. See: <https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries>
crates/sith_python_parser/src/parser/expression.rs:1961
↓ 1 callers
Method
parse_list_expression
Parses a list expression. See: <https://docs.python.org/3/reference/expressions.html#list-displays>
crates/sith_python_parser/src/parser/expression.rs:1770
↓ 1 callers
Method
parse_list_like_expression
Parses a list or a list comprehension expression. # Panics If the parser isn't positioned at a `[` token. See: <https://docs.python.org/3/reference
crates/sith_python_parser/src/parser/expression.rs:1515
↓ 1 callers
Method
parse_match_case
Parses a single match case block. # Panics If the parser isn't positioned at a `case` token. See: <https://docs.python.org/3/reference/compound_stm
crates/sith_python_parser/src/parser/statement.rs:2373
↓ 1 callers
Method
parse_match_case_blocks
Parses a list of match case blocks.
crates/sith_python_parser/src/parser/statement.rs:2339
↓ 1 callers
Method
parse_match_pattern_class
Parses the [pattern arguments] in a class pattern. # Panics If the parser isn't positioned at a `(` token. See: <https://docs.python.org/3/referenc
crates/sith_python_parser/src/parser/pattern.rs:598
↓ 1 callers
Method
parse_match_pattern_literal
Parses a literal pattern. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-literal_pattern>
crates/sith_python_parser/src/parser/pattern.rs:369
↓ 1 callers
Method
parse_match_pattern_mapping
Parses a mapping pattern. # Panics If the parser isn't positioned at a `{` token. See: <https://docs.python.org/3/reference/compound_stmts.html#map
crates/sith_python_parser/src/parser/pattern.rs:174
↓ 1 callers
Method
parse_match_pattern_star
Parses a star pattern. # Panics If the parser isn't positioned at a `*` token. See: <https://docs.python.org/3/reference/compound_stmts.html#gramma
crates/sith_python_parser/src/parser/pattern.rs:257
↓ 1 callers
Method
parse_match_patterns
Entry point to start parsing a pattern. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-patterns>
crates/sith_python_parser/src/parser/pattern.rs:66
↓ 1 callers
Method
parse_match_statement
Parses a match statement. # Panics If the parser isn't positioned at a `match` token. See: <https://docs.python.org/3/reference/compound_stmts.html
crates/sith_python_parser/src/parser/statement.rs:2241
↓ 1 callers
Method
parse_module
Parses a Python module. This is to be used for [`Mode::Module`] and [`Mode::Ipython`].
crates/sith_python_parser/src/parser/mod.rs:127
↓ 1 callers
Method
parse_named_expression
Parses a named expression (`:=`). # Panics If the parser isn't positioned at a `:=` token. See: <https://docs.python.org/3/reference/expressions.ht
crates/sith_python_parser/src/parser/expression.rs:2149
↓ 1 callers
Method
parse_nonlocal_statement
Parses a nonlocal statement. # Panics If the parser isn't positioned at a `nonlocal` token. See: <https://docs.python.org/3/reference/simple_stmts.
crates/sith_python_parser/src/parser/statement.rs:843
↓ 1 callers
Method
parse_octet
(&mut self, o: u8)
crates/sith_python_parser/src/string.rs:141
↓ 1 callers
Method
parse_parameter_with_default
Parses a parameter with an optional default expression. Matches the `param_maybe_default` rule in the [Python grammar]. This method doesn't allow st
crates/sith_python_parser/src/parser/statement.rs:2716
↓ 1 callers
Method
parse_parenthesized_expression
Parses an expression in parentheses, a tuple expression, or a generator expression. Matches the `(tuple | group | genexp)` rule in the [Python gramma
crates/sith_python_parser/src/parser/expression.rs:1656
↓ 1 callers
Method
parse_parenthesized_or_sequence_pattern
Parses a parenthesized pattern or a sequence pattern. # Panics If the parser isn't positioned at a `(` or `[` token. See: <https://docs.python.org/
crates/sith_python_parser/src/parser/pattern.rs:280
↓ 1 callers
Method
parse_pass_statement
Parses a `pass` statement. # Panics If the parser isn't positioned at a `pass` token. See: <https://docs.python.org/3/reference/simple_stmts.html#g
crates/sith_python_parser/src/parser/statement.rs:711
↓ 1 callers
Method
parse_postfix_expression
Parses a postfix expression in a loop until there are no postfix expressions left to parse. For a given left-hand side, a postfix expression can begi
crates/sith_python_parser/src/parser/expression.rs:613
↓ 1 callers
Method
parse_raise_statement
Parses a `raise` statement. # Panics If the parser isn't positioned at a `raise` token. See: <https://docs.python.org/3/reference/simple_stmts.html
crates/sith_python_parser/src/parser/statement.rs:410
↓ 1 callers
Method
parse_return_statement
Parses a `return` statement. # Panics If the parser isn't positioned at a `return` token. See: <https://docs.python.org/3/reference/simple_stmts.ht
crates/sith_python_parser/src/parser/statement.rs:380
↓ 1 callers
Method
parse_set_comprehension_expression
Parses a set comprehension expression. See: <https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries>
crates/sith_python_parser/src/parser/expression.rs:2001
↓ 1 callers
Method
parse_set_expression
Parses a set expression. See: <https://docs.python.org/3/reference/expressions.html#set-displays>
crates/sith_python_parser/src/parser/expression.rs:1797
↓ 1 callers
Method
parse_set_or_dict_like_expression
Parses a set, dict, set comprehension, or dict comprehension. # Panics If the parser isn't positioned at a `{` token. See: - <https://docs.python.o
crates/sith_python_parser/src/parser/expression.rs:1568
↓ 1 callers
Method
parse_simple_statements
Parses a sequence of simple statements. If there is more than one statement in this sequence, it is expected to be separated by a semicolon. The sequ
crates/sith_python_parser/src/parser/statement.rs:192
↓ 1 callers
Method
parse_single_expression
Parses a single expression. This is to be used for [`Mode::Expression`]. ## Recovery After parsing a single expression, an error is reported and al
crates/sith_python_parser/src/parser/mod.rs:92
↓ 1 callers
Method
parse_single_simple_statement
Parses a single simple statement. This statement must be terminated by a newline or semicolon. Use [`Parser::parse_simple_statements`] to parse a se
crates/sith_python_parser/src/parser/statement.rs:153
↓ 1 callers
Method
parse_starred_expression
Parses a starred expression with the given precedence. The expression is parsed with the highest precedence. If the precedence of the parsed expressi
crates/sith_python_parser/src/parser/expression.rs:2033
↓ 1 callers
Method
parse_string
(mut self)
crates/sith_python_parser/src/string.rs:387
↓ 1 callers
Function
parse_string_literal
( source: Box<str>, flags: AnyStringFlags, range: TextRange, )
crates/sith_python_parser/src/string.rs:452
↓ 1 callers
Method
parse_string_or_byte_literal
Parses a single string or byte literal. This does not handle implicitly concatenated strings. # Panics If the parser isn't positioned at a `String`
crates/sith_python_parser/src/parser/expression.rs:1253
↓ 1 callers
Method
parse_subscript_expression
Parses a subscript expression. # Panics If the parser isn't positioned at a `[` token. See: <https://docs.python.org/3/reference/expressions.html#s
crates/sith_python_parser/src/parser/expression.rs:770
↓ 1 callers
Method
parse_tables
Parse and return all tables from the DOM. Returns ------- list of parsed (header, body, footer) tuples from tables.
crates/sith_server/resources/test/fixtures/pandas_html.py:242
↓ 1 callers
Method
parse_try_statement
Parses a `try` statement. # Panics If the parser isn't positioned at a `try` token. See: <https://docs.python.org/3/reference/compound_stmts.html#t
crates/sith_python_parser/src/parser/statement.rs:1338
↓ 1 callers
Method
parse_type_alias_statement
Parses a type alias statement. # Panics If the parser isn't positioned at a `type` token. See: <https://docs.python.org/3/reference/simple_stmts.ht
crates/sith_python_parser/src/parser/statement.rs:884
↓ 1 callers
Method
parse_type_params
Parses a type parameter list. # Panics If the parser isn't positioned at a `[` token. See: <https://docs.python.org/3/reference/compound_stmts.html
crates/sith_python_parser/src/parser/statement.rs:3038
↓ 1 callers
Method
parse_unicode_name
(&mut self)
crates/sith_python_parser/src/string.rs:160
↓ 1 callers
Method
parse_while_statement
Parses a `while` statement. # Panics If the parser isn't positioned at a `while` token. See: <https://docs.python.org/3/reference/compound_stmts.ht
crates/sith_python_parser/src/parser/statement.rs:1661
↓ 1 callers
Method
parse_with_item_optional_vars
Parses the optional variables in a `with` item. # Panics If the parser isn't positioned at an `as` token.
crates/sith_python_parser/src/parser/statement.rs:2142
↓ 1 callers
Method
parse_with_items
Parses a list of with items. See: <https://docs.python.org/3/reference/compound_stmts.html#the-with-statement>
crates/sith_python_parser/src/parser/statement.rs:1912
↓ 1 callers
Method
parse_yield_expression
Parses a `yield` expression. # Panics If the parser isn't positioned at a `yield` token. See: <https://docs.python.org/3/reference/expressions.html
crates/sith_python_parser/src/parser/expression.rs:2082
↓ 1 callers
Method
parse_yield_from_expression
Parses a `yield from` expression. This method should not be used directly. Use [`Parser::parse_yield_expression`] even when parsing a `yield from` ex
crates/sith_python_parser/src/parser/expression.rs:2109
← previous
next →
901–1,000 of 2,449, ranked by callers