MCPcopy Create free account

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

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

↓ 2 callersMethodis_constant
(&self)
crates/sith_semantic_model/src/symbol.rs:72
↓ 2 callersFunctionis_deprecated_annotation
(node: &Expr)
crates/sith_python_ast_utils/src/lib.rs:195
↓ 2 callersMethodis_digit
(self, c: char)
crates/sith_python_parser/src/lexer.rs:1576
↓ 2 callersMethodis_empty
Return `true` if the source code is empty.
crates/ruff_source_file/src/locator.rs:473
↓ 2 callersMethodis_enclosing_list_element_or_terminator
(&self)
crates/sith_python_parser/src/parser/mod.rs:637
↓ 2 callersMethodis_eof
Returns `true` if the cursor is at the end of file.
crates/sith_python_parser/src/lexer/cursor.rs:87
↓ 2 callersMethodis_in_excluded
Returns `true` if the `in` keyword should be excluded from a comparison expression.
crates/sith_python_parser/src/parser/expression.rs:2540
↓ 2 callersMethodis_in_expression
Returns `true` if the lexer is in a f-string expression i.e., between two curly braces.
crates/sith_python_parser/src/lexer/fstring.rs:79
↓ 2 callersMethodis_in_format_spec
Returns `true` if the lexer is in a f-string format spec i.e., after a colon.
crates/sith_python_parser/src/lexer/fstring.rs:84
↓ 2 callersFunctionis_in_type_param_annotation
Check if the text cursor is in the type annotation part of the parameter. The first part of the boolean expression checks if the text cursor is after
crates/sith_server/src/server/api/requests/completion.rs:448
↓ 2 callersMethodis_lint_enabled
(&self)
crates/sith_server/src/session/settings.rs:286
↓ 2 callersMethodis_ok
(&self)
crates/sith_python_parser/tests/generate_inline_tests.rs:199
↓ 2 callersMethodis_regular_list_terminator
Returns `true` if the parser is at a token that terminates the list as per the context but the token isn't part of the error recovery set.
crates/sith_python_parser/src/parser/mod.rs:937
↓ 2 callersMethodis_star
(self)
crates/sith_python_parser/src/parser/statement.rs:3605
↓ 2 callersMethodis_thirdparty
(&self)
crates/sith_semantic_model/src/declaration.rs:154
↓ 2 callersMethodis_trivia
(&self)
crates/sith_python_parser/src/token.rs:395
↓ 2 callersMethoditer_mut
(&mut self)
crates/ruff_index/src/slice.rs:79
↓ 2 callersMethodkind
(&self)
crates/sith_python_parser/src/token.rs:36
↓ 2 callersMethodkind
Returns the node's [`kind`](NodeKind) that has no data associated and is [`Copy`].
crates/sith_python_ast/src/node.rs:719
↓ 2 callersMethodlex_identifier
Lex an identifier. Also used for keywords and string/bytes literals with a prefix.
crates/sith_python_parser/src/lexer.rs:606
↓ 2 callersMethodlex_ipython_escape_command
Lex a single IPython escape command.
crates/sith_python_parser/src/lexer.rs:1191
↓ 2 callersFunctionlex_jupyter_source
(source: &str)
crates/sith_python_parser/src/lexer.rs:1784
↓ 2 callersMethodlex_string
Lex a string literal.
crates/sith_python_parser/src/lexer.rs:886
↓ 2 callersMethodline_end
Computes the offset that is right before the newline character that ends `offset`'s line. ## Examples ``` # use ruff_text_size::{Ranged, TextRange,
crates/ruff_source_file/src/locator.rs:146
↓ 2 callersMethodline_start
Returns the [byte offset](TextSize) for the `line` with the given index.
crates/ruff_source_file/src/line_index.rs:166
↓ 2 callersMethodline_text
(&self, index: OneIndexed)
crates/ruff_source_file/src/lib.rs:77
↓ 2 callersMethodlist_terminator
Returns the token that terminates a list of parameters.
crates/sith_python_parser/src/parser/mod.rs:715
↓ 2 callersMethodlookup
( &self, db: &'db SymbolTableDb, symbol: &str, )
crates/sith_semantic_model/src/type_inference.rs:343
↓ 2 callersMethodlookup_symbol
(&self, name: &str, scope: ScopeId)
crates/sith_semantic_model/src/symbol_table.rs:67
↓ 2 callersMethodlookup_symbol
( &self, file: &PathBuf, name: &str, scope: ScopeId, )
crates/sith_semantic_model/src/db.rs:68
↓ 2 callersMethodlsp_range
(&self)
crates/sith_server/src/server/api/diagnostics.rs:50
↓ 2 callersMethodname
(self)
crates/sith_python_ast/src/nodes.rs:3128
↓ 2 callersMethodname
(&self)
crates/ruff_python_resolver/src/module_descriptor.rs:9
↓ 2 callersMethodname
(self, name: String)
crates/sith_server/src/server/schedule/thread.rs:48
↓ 2 callersFunctionnative_module_name
Given a file name, returns the name of the native module it represents. For example, given `foo.abi3.so`, return `foo`.
crates/ruff_python_resolver/src/native_module.rs:15
↓ 2 callersMethodnext
(&mut self)
crates/ruff_source_file/src/newlines.rs:84
↓ 2 callersMethodnext_byte
(&mut self)
crates/sith_python_parser/src/string.rs:91
↓ 2 callersMethodnotifier
(&self)
crates/sith_server/src/server/client.rs:42
↓ 2 callersFunctionoffset_to_position
( offset: TextSize, text: &str, index: &LineIndex, encoding: PositionEncoding, )
crates/sith_server/src/edit/convert.rs:149
↓ 2 callersMethodopen
( &mut self, url: &Url, contents: String, version: DocumentVersion, cl
crates/sith_server/src/session/workspace.rs:221
↓ 2 callersMethodopen_document
(&mut self, url: &Url, contents: String, version: DocumentVersion)
crates/sith_server/src/session.rs:99
↓ 2 callersMethodopen_parentheses_count
Calculates the number of open parentheses for the current f-string based on the current level of nesting for the lexer.
crates/sith_python_parser/src/lexer/fstring.rs:73
↓ 2 callersFunctionorganize_imports_edit
(snapshot: &DocumentSnapshot)
crates/sith_server/src/server/api/requests/code_action_resolve.rs:99
↓ 2 callersMethodorigin
(&self)
crates/sith_server/src/server/api/requests/completion.rs:135
↓ 2 callersMethodparend_id
(&self, node_id: NodeId)
crates/sith_python_ast_utils/src/nodes.rs:47
↓ 2 callersMethodparent_scopes
( &'db self, db: &'db SymbolTableDb, path: &'path PathBuf, )
crates/sith_semantic_model/src/scope.rs:69
↓ 2 callersMethodparse_alias
Parses an `import` or `from` import name. See: - <https://docs.python.org/3/reference/simple_stmts.html#the-import-statement> - <https://docs.python.
crates/sith_python_parser/src/parser/statement.rs:622
↓ 2 callersMethodparse_arguments
Parses an argument list. # Panics If the parser isn't positioned at a `(` token. See: <https://docs.python.org/3/reference/expressions.html#grammar
crates/sith_python_parser/src/parser/expression.rs:651
↓ 2 callersMethodparse_attribute_expression
Parses an attribute expression. # Panics If the parser isn't positioned at a `.` token. See: <https://docs.python.org/3/reference/expressions.html#
crates/sith_python_parser/src/parser/expression.rs:937
↓ 2 callersMethodparse_class_definition
Parses a class definition. The given `start` offset is the start of either the `def` token or the `@` token if the class definition has decorators.
crates/sith_python_parser/src/parser/statement.rs:1832
↓ 2 callersMethodparse_clauses
Specialized [`Parser::parse_list_into_vec`] for parsing a sequence of clauses. The difference is that the parser only continues parsing for as long a
crates/sith_python_parser/src/parser/statement.rs:3446
↓ 2 callersMethodparse_dictionary_expression
Parses a dictionary expression. See: <https://docs.python.org/3/reference/expressions.html#dictionary-displays>
crates/sith_python_parser/src/parser/expression.rs:1823
↓ 2 callersMethodparse_dotted_name
Parses a dotted name. A dotted name is a sequence of identifiers separated by a single dot.
crates/sith_python_parser/src/parser/statement.rs:671
↓ 2 callersMethodparse_elif_or_else_clause
Parses an `elif` or `else` clause. # Panics If the parser isn't positioned at an `elif` or `else` token.
crates/sith_python_parser/src/parser/statement.rs:1293
↓ 2 callersMethodparse_for_statement
Parses a `for` statement. The given `start` offset is the start of either the `for` token or the `async` token if it's an async for statement. # Pan
crates/sith_python_parser/src/parser/statement.rs:1577
↓ 2 callersMethodparse_fstring_elements
Parses a list of f-string elements. # Panics If the parser isn't positioned at a `{` or `FStringMiddle` token.
crates/sith_python_parser/src/parser/expression.rs:1322
↓ 2 callersMethodparse_generator_expression
Parses a generator expression. The given `start` offset is the start of either the opening parenthesis if the generator is parenthesized or the first
crates/sith_python_parser/src/parser/expression.rs:1938
↓ 2 callersMethodparse_lambda_expr
Parses a lambda expression. # Panics If the parser isn't positioned at a `lambda` token. See: <https://docs.python.org/3/reference/expressions.html
crates/sith_python_parser/src/parser/expression.rs:2177
↓ 2 callersMethodparse_list_into_vec
Parses a list of elements into a vector where each element is parsed using the given `parse_element` function.
crates/sith_python_parser/src/parser/mod.rs:444
↓ 2 callersMethodparse_match_subject_expression
Parses the subject expression for a `match` statement.
crates/sith_python_parser/src/parser/statement.rs:2258
↓ 2 callersMethodparse_parameters
Parses a parameter list for the given function kind. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-param
crates/sith_python_parser/src/parser/statement.rs:2760
↓ 2 callersFunctionparse_python_version
(version_str: &str)
crates/sith_python_utils/src/lib.rs:88
↓ 2 callersMethodparse_sequence_match_pattern
Parses the rest of a sequence pattern, given the first element. If the `parentheses` is `None`, it is an [open sequence pattern]. See: <https://docs
crates/sith_python_parser/src/parser/pattern.rs:334
↓ 2 callersMethodparse_simple_statement
Parses a simple statement. See: <https://docs.python.org/3/reference/simple_stmts.html>
crates/sith_python_parser/src/parser/statement.rs:262
↓ 2 callersMethodparse_slice
Parses a slice expression. See: <https://docs.python.org/3/reference/expressions.html#slicings>
crates/sith_python_parser/src/parser/expression.rs:843
↓ 2 callersMethodparse_statement
Parses a compound or a single simple statement. See: - <https://docs.python.org/3/reference/compound_stmts.html> - <https://docs.python.org/3/referen
crates/sith_python_parser/src/parser/statement.rs:112
↓ 2 callersMethodparse_strings
Parses all kinds of strings and implicitly concatenated strings. # Panics If the parser isn't positioned at a `String` or `FStringStart` token. See
crates/sith_python_parser/src/parser/expression.rs:1083
↓ 2 callersMethodparse_unary_expression
Parses a unary expression. This includes the unary arithmetic `+` and `-`, bitwise `~`, and the boolean `not` operators. # Panics If the parser isn
crates/sith_python_parser/src/parser/expression.rs:913
↓ 2 callersMethodparse_with_statement
Parses a `with` statement The given `start` offset is the start of either the `with` token or the `async` token if it's an async with statement. # P
crates/sith_python_parser/src/parser/statement.rs:1893
↓ 2 callersMethodpeek2
Returns the next two token kinds without consuming it.
crates/sith_python_parser/src/parser/mod.rs:297
↓ 2 callersFunctionpublish_diagnostics_for_document
( snapshot: &DocumentSnapshot, notifier: &Notifier, )
crates/sith_server/src/server/api/diagnostics.rs:228
↓ 2 callersFunctionpython_search_paths
Determine the relevant Python search paths.
crates/ruff_python_resolver/src/search.rs:174
↓ 2 callersMethodquote_len
The length of the quotes used to start and close the string. This does not include the length of any prefixes the string has in its opener.
crates/sith_python_ast/src/nodes.rs:4366
↓ 2 callersMethodrange
(&self)
crates/ruff_source_file/src/newlines.rs:232
↓ 2 callersMethodrange
(&self)
crates/ruff_text_size/src/traits.rs:58
↓ 2 callersMethodre_lex_logical_token
Re-lex the [`NonLogicalNewline`] token at the given position in the context of a logical line. Returns a boolean indicating whether the lexer's posit
crates/sith_python_parser/src/lexer.rs:1385
↓ 2 callersMethodreserve
(&mut self, additional: usize)
crates/sith_python_ast/src/name.rs:749
↓ 2 callersFunctionresolve_best_absolute_import
Resolve an absolute module import based on the import resolution algorithm, taking into account the various competing files to which the import could
crates/ruff_python_resolver/src/resolver.rs:262
↓ 2 callersFunctionresolve_edit_for_fix_all
( snapshot: &DocumentSnapshot, )
crates/sith_server/src/server/api/requests/code_action_resolve.rs:76
↓ 2 callersFunctionresolve_edit_for_organize_imports
( snapshot: &DocumentSnapshot, )
crates/sith_server/src/server/api/requests/code_action_resolve.rs:88
↓ 2 callersFunctionresolve_module_descriptor
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
crates/ruff_python_resolver/src/resolver.rs:18
↓ 2 callersMethodrespond
( &self, id: RequestId, result: crate::server::Result<R>, )
crates/sith_server/src/server/client.rs:74
↓ 2 callersMethodresponder
(&self)
crates/sith_server/src/server/client.rs:46
↓ 2 callersMethodrewind
Restore the token source to the given checkpoint.
crates/sith_python_parser/src/token_source.rs:159
↓ 2 callersMethodrewind
Restore the parser to the given checkpoint.
crates/sith_python_parser/src/parser/mod.rs:659
↓ 2 callersFunctionrun
()
crates/lsp-types/tests/lsif.rs:3
↓ 2 callersFunctionrunServer
()
editors/vscode/src/extension.ts:62
↓ 2 callersFunctionrun_ruff_check
( ruff_path: impl AsRef<OsStr>, filename: &'a str, content: &str, extra_args: I, )
crates/sith_server/src/util/ruff.rs:100
↓ 2 callersMethodscope_id
(&self)
crates/sith_semantic_model/src/indexer.rs:173
↓ 2 callersMethodset_scope
(&mut self, scope_id: ScopeId)
crates/sith_semantic_model/src/type_inference.rs:687
↓ 2 callersFunctionset_trace_value
(trace_value: TraceValue)
crates/sith_server/src/trace.rs:45
↓ 2 callersFunctionsetup_typeshed
Unzips the typeshed folder at the data directory of the user executing sith-lsp. The unzip process only happens when this function is called for the
crates/sith_vendored/src/lib.rs:41
↓ 2 callersMethodsize_hint
(&self)
crates/sith_python_ast/src/nodes.rs:878
↓ 2 callersMethodskip_to_end
Skips to the end of the input stream.
crates/sith_python_parser/src/lexer/cursor.rs:175
↓ 2 callersMethodstack_size
(self, size: usize)
crates/sith_server/src/server/schedule/thread.rs:55
↓ 2 callersFunctionstopServer
()
editors/vscode/src/extension.ts:157
↓ 2 callersMethodsuite
Returns the module body contained in this parsed output as a [`Suite`].
crates/sith_python_parser/src/lib.rs:333
↓ 2 callersMethodsymbol
(&self, symbol_id: SymbolId)
crates/sith_semantic_model/src/symbol_table.rs:55
↓ 2 callersMethodsyntax
Returns the syntax node represented by this parsed output.
crates/sith_python_parser/src/lib.rs:243
↓ 2 callersMethodtake_value
Takes the token value corresponding to the current token out of the lexer, replacing it with the default value. All the subsequent call to this metho
crates/sith_python_parser/src/lexer.rs:133
← previousnext →501–600 of 2,449, ranked by callers