MCPcopy Create free account

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

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

↓ 7 callersFunctionget_completion_candidates_from_scope
( db: &'a SymbolTableDb, path: &'a PathBuf, scope: &'a Scope, )
crates/sith_server/src/server/api/requests/completion.rs:518
↓ 7 callersMethodin_range
Returns a slice of [`Token`] that are within the given `range`. The start and end offset of the given range should be either: 1. Token boundary 2. Ga
crates/sith_python_parser/src/lib.rs:417
↓ 7 callersMethodis_ascii
Returns `true` if the text only consists of ASCII characters
crates/ruff_source_file/src/line_index.rs:132
↓ 7 callersMethodis_unparenthesized_starred_expr
(&self)
crates/sith_python_parser/src/parser/expression.rs:2305
↓ 7 callersMethoditer
Returns an iterator over the implicit imports in the namespace package.
crates/ruff_python_resolver/src/implicit_imports.rs:167
↓ 7 callersFunctionlex
Create a new [`Lexer`] for the given source code and [`Mode`].
crates/sith_python_parser/src/lexer.rs:1671
↓ 7 callersMethodlines
Returns the text of all lines that include `range`. ## Examples ``` # use ruff_text_size::{Ranged, TextRange, TextSize}; # use ruff_source_file::Loc
crates/ruff_source_file/src/locator.rs:355
↓ 7 callersMethodparse_comma_separated_list_into_vec
Parses a comma separated 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:503
↓ 7 callersFunctionparse_module
Parse a full Python module usually consisting of multiple lines. This is a convenience function that can be used to parse a full Python program witho
crates/sith_python_parser/src/lib.rs:108
↓ 7 callersFunctionpartial
Create a partial `py.typed` file at the given path.
crates/ruff_python_resolver/src/lib.rs:55
↓ 7 callersMethodpeek
Returns the next token kind without consuming it.
crates/sith_python_parser/src/parser/mod.rs:292
↓ 7 callersMethodpop
(&mut self)
crates/sith_python_ast/src/name.rs:320
↓ 7 callersMethodpop_scope
(&mut self)
crates/sith_semantic_model/src/symbol_table.rs:320
↓ 7 callersMethodpush_scope
(&mut self, kind: ScopeKind, range: TextRange)
crates/sith_semantic_model/src/symbol_table.rs:311
↓ 7 callersMethodreplace
(value: string)
editors/vscode/src/utils/logger.ts:92
↓ 7 callersMethodrest
Returns the remaining text to lex. Use [`Cursor::text_len`] to get the length of the remaining text.
crates/sith_python_parser/src/lexer/cursor.rs:57
↓ 7 callersMethodspawn
(self, f: F)
crates/sith_server/src/server/schedule/thread.rs:62
↓ 7 callersMethodtake_snapshot
(&self, url: &Url)
crates/sith_server/src/session.rs:87
↓ 7 callersFunctionu32_index_to_usize
(index: u32)
crates/sith_server/src/edit/convert.rs:28
↓ 7 callersMethodvisit_arguments
(&mut self, arguments: &'a Arguments)
crates/sith_python_ast/src/visitor.rs:57
↓ 7 callersMethodvisit_pattern
(&self, pattern: &mut Pattern)
crates/sith_python_ast/src/visitor/transformer.rs:70
↓ 6 callersMethodadd
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:508
↓ 6 callersMethodafter
Returns a slice of tokens after the given [`TextSize`] offset. If the given offset is between two tokens, the returned slice will start from the foll
crates/sith_python_parser/src/lib.rs:455
↓ 6 callersMethodarguments_source_order
Return the positional and keyword arguments in the order of declaration. Positional arguments are generally before keyword arguments, but star argume
crates/sith_python_ast/src/nodes.rs:3558
↓ 6 callersMethodat_soft_keyword
Returns `true` if the parser is at a soft keyword token.
crates/sith_python_parser/src/parser/expression.rs:121
↓ 6 callersMethodbump_any
Bumps the current token regardless of its kind and advances to the next token. # Panics If the parser is at end of file.
crates/sith_python_parser/src/parser/mod.rs:358
↓ 6 callersMethodclosing_kind
Returns the token kind that closes the parentheses.
crates/sith_python_parser/src/parser/mod.rs:692
↓ 6 callersMethodcoerce
Coerces two number-like class instance to the "highest" number-like class instance. # Panics If this class instance is not number-like or is not a kn
crates/sith_semantic_model/src/type_inference.rs:258
↓ 6 callersMethoddocument_version
(&self)
crates/sith_server/src/session.rs:179
↓ 6 callersFunctionexpr_to_str
(expr: &Expr)
crates/sith_python_ast_utils/src/lib.rs:222
↓ 6 callersFunctiongetOptionalGlobalValue
(config: WorkspaceConfiguration, key: string)
editors/vscode/src/utils/settings.ts:88
↓ 6 callersFunctionget_documentation_string_from_node
(node: &AnyNodeRef)
crates/sith_python_utils/src/nodes.rs:3
↓ 6 callersMethodget_or_assign_id
(&mut self, path: Arc<PathBuf>)
crates/sith_semantic_model/src/indexer.rs:56
↓ 6 callersMethodinsert
(&mut self, node: AnyNodeRef<'a>, parent: Option<NodeId>)
crates/sith_python_ast_utils/src/nodes.rs:43
↓ 6 callersMethodis_triple_quoted
(self)
crates/sith_python_parser/src/token.rs:708
↓ 6 callersMethoditer
(&self)
crates/ruff_index/src/slice.rs:59
↓ 6 callersMethodline_index
(&self, offset: TextSize)
crates/ruff_source_file/src/lib.rs:42
↓ 6 callersMethodline_start
(&self, line: OneIndexed)
crates/ruff_source_file/src/lib.rs:63
↓ 6 callersMethodnext
(&mut self)
crates/sith_python_ast/src/nodes.rs:870
↓ 6 callersMethodnext_back
(&mut self)
crates/sith_python_ast/src/nodes.rs:884
↓ 6 callersFunctionparameter_with_default_to_str
(param: &ParameterWithDefault)
crates/sith_python_ast_utils/src/lib.rs:575
↓ 6 callersMethodparse_binary_expression_or_higher
Parses a binary expression using the [Pratt parsing algorithm]. [Pratt parsing algorithm]: https://matklad.github.io/2020/04/13/simple-but-powerful-p
crates/sith_python_parser/src/parser/expression.rs:234
↓ 6 callersMethodparse_match_pattern
Parses an `or_pattern` or an `as_pattern`. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-pattern>
crates/sith_python_parser/src/parser/pattern.rs:87
↓ 6 callersMethodsecond
Peeks the second 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:48
↓ 6 callersMethodset
(db: &SymbolTableDb)
crates/sith_semantic_model/src/type_inference.rs:130
↓ 6 callersMethodset_flag
(&mut self, flag: SymbolFlags)
crates/sith_semantic_model/src/symbol.rs:92
↓ 6 callersMethodskip_bytes
Skips the next `count` bytes. ## Panics - If `count` is larger than the remaining bytes in the input stream. - If `count` indexes into a multi-byte c
crates/sith_python_parser/src/lexer/cursor.rs:162
↓ 6 callersMethodvisit_annotation
(&mut self, expr: &'a Expr)
crates/sith_python_ast/src/visitor.rs:27
↓ 6 callersMethodvisit_comprehension
(&mut self, comprehension: &'b ast::Comprehension)
crates/sith_semantic_model/src/symbol_table.rs:936
↓ 6 callersMethodvisit_expr_context
(&mut self, expr_context: &'a ContextExpr)
crates/sith_python_ast/src/visitor.rs:36
↓ 6 callersMethodvisit_expr_context
(&self, expr_context: &mut ContextExpr)
crates/sith_python_ast/src/visitor/transformer.rs:22
↓ 6 callersFunctionwalk_stmt
(visitor: &mut V, stmt: &'a Stmt)
crates/sith_python_ast/src/visitor.rs:129
↓ 5 callersMethodat_sequence_end
Returns `true` if the current token ends a sequence.
crates/sith_python_parser/src/parser/expression.rs:131
↓ 5 callersMethodcontains
(self, offset: TextSize)
crates/ruff_text_size/src/range.rs:163
↓ 5 callersMethoddeclarations
(&self)
crates/sith_semantic_model/src/symbol_table.rs:63
↓ 5 callersMethoddefinition_scope
(&self)
crates/sith_semantic_model/src/symbol.rs:96
↓ 5 callersMethoddo_bump
Moves the parser to the next token.
crates/sith_python_parser/src/parser/mod.rs:273
↓ 5 callersMethodeat_char2
(&mut self, c1: char, c2: char)
crates/sith_python_parser/src/lexer/cursor.rs:113
↓ 5 callersMethodfile_id
Returns the [`FileId`] for a given `file_path`. # Panics If there's no [`FileId`] for a `file_path`.
crates/sith_semantic_model/src/indexer.rs:616
↓ 5 callersMethodindex
(&self, index: I)
crates/ruff_index/src/slice.rs:129
↓ 5 callersMethodinto_class
(self)
crates/sith_semantic_model/src/type_inference.rs:33
↓ 5 callersMethodinto_workspace_edit
(self)
crates/sith_server/src/edit.rs:136
↓ 5 callersMethodis_byte_string
Does the string have a `b` or `B` prefix?
crates/sith_python_ast/src/nodes.rs:4505
↓ 5 callersMethodis_keyword
(self)
crates/sith_python_parser/src/token.rs:296
↓ 5 callersMethodis_list_element
(self, p: &Parser)
crates/sith_python_parser/src/parser/mod.rs:1103
↓ 5 callersMethodis_soft_keyword
(self)
crates/sith_python_parser/src/token.rs:307
↓ 5 callersMethodis_subtype_of
(&self, other: &PythonType)
crates/sith_semantic_model/src/type_inference.rs:354
↓ 5 callersMethoditer_mut
Returns an iterator over all the [`FStringPart`]s contained in this value that allows modification.
crates/sith_python_ast/src/nodes.rs:1230
↓ 5 callersMethodline_start
Computes the start position of the line of `offset`. ## Examples ``` # use ruff_text_size::TextSize; # use ruff_source_file::Locator; let locator =
crates/ruff_source_file/src/locator.rs:74
↓ 5 callersMethodlocation
(&self)
crates/sith_python_parser/src/error.rs:328
↓ 5 callersMethodlogForCI
* Logs messages to the console if the extension is running in a CI environment.
editors/vscode/src/utils/logger.ts:18
↓ 5 callersMethodmissing_node_range
(&self)
crates/sith_python_parser/src/parser/mod.rs:258
↓ 5 callersMethodname
(&self)
crates/sith_benchmark/src/lib.rs:58
↓ 5 callersMethodnext_token
Lex the next token.
crates/sith_python_parser/src/lexer.rs:146
↓ 5 callersFunctionnode_identifier_at_offset
(node: &'a AnyNodeRef<'a>, offset: u32)
crates/sith_python_ast_utils/src/lib.rs:38
↓ 5 callersMethodnode_stack
(&self, db: &'db SymbolTableDb)
crates/sith_semantic_model/src/type_inference.rs:276
↓ 5 callersFunctionparse
Parse the given Python source code using the specified [`Mode`]. This function is the most general function to parse Python code. Based on the [`Mode
crates/sith_python_parser/src/lib.rs:212
↓ 5 callersMethodparse
Consumes the [`Parser`] and returns the parsed [`Parsed`].
crates/sith_python_parser/src/parser/mod.rs:75
↓ 5 callersFunctionparse_unchecked
Parse the given Python source code using the specified [`Mode`]. This is same as the [`parse`] function except that it doesn't check for any [`ParseE
crates/sith_python_parser/src/lib.rs:220
↓ 5 callersMethodpath
(&self)
crates/sith_semantic_model/src/indexer.rs:161
↓ 5 callersMethodpath
(&self)
crates/sith_server/src/server/api/requests/completion.rs:154
↓ 5 callersMethodpop_scope
(&mut self)
crates/sith_server/src/server/api/requests/references.rs:381
↓ 5 callersFunctionrange
(x: ops::Range<u32>)
crates/ruff_text_size/tests/serde.rs:11
↓ 5 callersMethodrange
(&self)
crates/sith_python_ast/src/node.rs:5092
↓ 5 callersMethodroot_path
(&self)
crates/sith_semantic_model/src/indexer.rs:592
↓ 5 callersMethodset_fixes_for_document
Sets a series of [`Fixes`] for a text document.
crates/sith_server/src/edit.rs:78
↓ 5 callersMethodsrc_text
(&self, ranged: T)
crates/sith_python_parser/src/parser/mod.rs:435
↓ 5 callersMethodstart
(&self)
crates/ruff_source_file/src/newlines.rs:208
↓ 5 callersMethodvisit_next_scope
(&mut self)
crates/sith_server/src/server/api/requests/references.rs:374
↓ 5 callersMethodvisit_operator
(&mut self, operator: &'a Operator)
crates/sith_python_ast/src/visitor.rs:42
↓ 5 callersMethodvisit_parameter
(&self, parameter: &mut Parameter)
crates/sith_python_ast/src/visitor/transformer.rs:49
↓ 5 callersMethodworkspace_for_url_mut
(&mut self, url: &Url)
crates/sith_server/src/session/workspace.rs:279
↓ 4 callersMethodas_parameter
(self)
crates/sith_python_ast/src/nodes.rs:3114
↓ 4 callersMethodas_ref
(&self)
crates/sith_python_ast/src/nodes.rs:3808
↓ 4 callersMethodas_str
Return a `str` representation of the prefix
crates/sith_python_ast/src/str_prefix.rs:28
↓ 4 callersMethodat_simple_stmt
Returns `true` if the current token is the start of a simple statement, including expressions.
crates/sith_python_parser/src/parser/statement.rs:88
↓ 4 callersFunctioncomprehension_to_str
(comp: &Comprehension)
crates/sith_python_ast_utils/src/lib.rs:585
↓ 4 callersMethodcompute_position
(&self, cursor: usize)
crates/sith_python_parser/src/string.rs:81
↓ 4 callersMethodcurrent
(&self)
crates/sith_python_parser/src/lexer/fstring.rs:131
↓ 4 callersMethodcurrent_mut
(&mut self)
crates/sith_python_parser/src/lexer/fstring.rs:135
← previousnext →201–300 of 2,449, ranked by callers