MCPcopy Create free account

hub / github.com/Glyphack/enderpy / functions

Functions737 in github.com/Glyphack/enderpy

↓ 157 callersMethodexpect
Expect a `Kind` or return error
parser/src/parser/parser.rs:213
↓ 147 callersMethodfinish_node
(&self, node: Node)
parser/src/parser/parser.rs:114
↓ 110 callersMethodat
Checks if the current index has token `Kind`
parser/src/parser/parser.rs:144
↓ 101 callersMethoditer
Returns an iterator over the implicit imports in the namespace package.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:164
↓ 94 callersMethodstart_node
(&self)
parser/src/parser/parser.rs:109
↓ 92 callersMethodeat
Advance and return true if we are at `Kind`, return false otherwise
parser/src/parser/parser.rs:164
↓ 85 callersMethodto_string
(&self, source: &str)
parser/src/token.rs:17
↓ 73 callersFunctionempty
Create an empty file at the given path.
typechecker/src/ruff_python_import_resolver/mod.rs:51
↓ 72 callersMethodvisit_expr
(&mut self, e: &Expression)
typechecker/src/checker.rs:176
↓ 66 callersMethodnext
(&mut self)
parser/src/lexer/mod.rs:677
↓ 59 callersMethodpeek
(&self)
parser/src/lexer/mod.rs:693
↓ 58 callersMethodbump
Advance if we are at `Kind`
parser/src/parser/parser.rs:152
↓ 57 callersMethodbump_any
Advance any token
parser/src/parser/parser.rs:159
↓ 46 callersMethodpath
(&self)
typechecker/src/file.rs:90
↓ 44 callersMethodcur_token
(&self)
parser/src/parser/parser.rs:122
↓ 44 callersMethodget
(self)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:95
↓ 37 callersMethodparse_expression
https://docs.python.org/3/reference/expressions.html#conditional-expressions
parser/src/parser/parser.rs:2002
↓ 33 callersMethodlen
Returns the number of implicit imports in the namespace package.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:153
↓ 32 callersMethodcur_kind
(&self)
parser/src/parser/parser.rs:126
↓ 31 callersMethodparse
(&mut self)
parser/src/parser/parser.rs:84
↓ 30 callersFunctionresolve_options
( source_file: impl AsRef<Path>, name: &str, root: impl Into<PathBuf>, options
typechecker/src/ruff_python_import_resolver/mod.rs:75
↓ 28 callersFunctionsetup
()
typechecker/src/ruff_python_import_resolver/mod.rs:131
↓ 26 callersMethodas_str
(&self, source: &'a str)
parser/src/token.rs:13
↓ 25 callersMethodis_empty
Returns `true` if there are no implicit imports in the namespace package.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:159
↓ 23 callersFunctionpython_tokenize_test_lexer
(inputs: &[&str])
compat/src/lexer_compat.rs:653
↓ 23 callersFunctionsnapshot_test_lexer
(snap_name: &str, inputs: &[&str])
parser/src/lexer/mod.rs:1089
↓ 21 callersMethodlen
(&self)
parser/src/ast.rs:36
↓ 19 callersMethodvisit_stmt
(&mut self, s: &Statement)
typechecker/src/checker.rs:142
↓ 19 callersMethodvisit_stmt
(&mut self, s: &Statement)
typechecker/src/ast_visitor.rs:12
↓ 19 callersMethodvisit_stmt
(&mut self, s: &parser::ast::Statement)
typechecker/src/semantic_analyzer.rs:267
↓ 18 callersMethoddouble_peek
(&self)
parser/src/lexer/mod.rs:697
↓ 17 callersMethodget_builtin_type
Retrieves a python type that is present in the builtin scope
typechecker/src/type_evaluator.rs:1158
↓ 16 callersMethodcreate_symbol
(&mut self, name: String, decl: Declaration, symbol_flags: SymbolFlags)
typechecker/src/semantic_analyzer.rs:57
↓ 15 callersMethodfilter
Filter [`ImplicitImports`] to only those symbols that were imported.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:106
↓ 15 callersFunctionintern_lookup
(s: StrId)
parser/src/parser/parser.rs:25
↓ 15 callersMethodparse_suite
https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-suite
parser/src/parser/parser.rs:1121
↓ 14 callersMethoddouble_next
(&mut self)
parser/src/lexer/mod.rs:688
↓ 13 callersMethodget_type
( &self, expr: &ast::Expression, symbol_table: &SymbolTable, scope_id: u32,
typechecker/src/type_evaluator.rs:76
↓ 11 callersMethoddeclaration_path
(&self)
typechecker/src/symbol_table.rs:418
↓ 11 callersMethodfind
Find the "implicit" imports within the namespace package at the given path.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:22
↓ 11 callersMethodget_node
(&self)
parser/src/ast.rs:97
↓ 11 callersMethodparse_named_expression
https://docs.python.org/3/reference/expressions.html#assignment-expressions
parser/src/parser/parser.rs:1549
↓ 11 callersMethodvisit_expr
(&mut self, e: &Expression)
typechecker/src/ast_visitor.rs:46
↓ 11 callersMethodvisit_expr
(&mut self, e: &parser::ast::Expression)
typechecker/src/semantic_analyzer.rs:300
↓ 10 callersMethodget_annotation_type
This function tries to find the python type from an annotation expression If the annotation is invalid it returns unknown type
typechecker/src/type_evaluator.rs:543
↓ 9 callersFunctionconcat
(x: AnyStr, y: AnyStr)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:33
↓ 9 callersMethodfinish_node_chomped
(&self, node: Node)
parser/src/parser/parser.rs:118
↓ 8 callersMethodconsume_whitespace_and_newline
(&mut self)
parser/src/parser/parser.rs:1938
↓ 8 callersMethodcurrent_scope
Do not use for lookup operations
typechecker/src/symbol_table.rs:69
↓ 8 callersFunctionresolve_absolute_import
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
typechecker/src/ruff_python_import_resolver/resolver.rs:216
↓ 7 callersMethodget_name_type
Get the python type of a name from the symbol table
typechecker/src/type_evaluator.rs:687
↓ 7 callersMethodget_symbol_table_by_id
(&'a self, id: &Id)
typechecker/src/build.rs:113
↓ 7 callersMethodinfer_name_type
(&mut self, name: &str, start: u32, stop: u32)
typechecker/src/checker.rs:83
↓ 7 callersMethoditer_mut
(&mut self)
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:168
↓ 7 callersMethodparent_scope
Returns the parent scope of the current scope
typechecker/src/symbol_table.rs:101
↓ 7 callersFunctionpartial
Create a partial `py.typed` file at the given path.
typechecker/src/ruff_python_import_resolver/mod.rs:56
↓ 6 callersMethodbuild
Entry point to analyze the program this only prepares necessary python files.
typechecker/src/build.rs:62
↓ 6 callersMethodconsume_str
(&mut self, str_start: char)
parser/src/lexer/mod.rs:748
↓ 6 callersMethodget_sequence_type_from_elements
( &self, elements: &Vec<ast::Expression>, symbol_table: &SymbolTable, scope_id
typechecker/src/type_evaluator.rs:1136
↓ 6 callersMethodinfer_expr_type
(&mut self, expr: &Expression)
typechecker/src/checker.rs:48
↓ 6 callersMethodlookup_in_scope
search for symbol in that scope if not found search in parent scope continue until found or no parent scope. returns the symbol and the scope id where
typechecker/src/symbol_table.rs:176
↓ 6 callersMethodlookup_on_class
( &self, symbol_table: &SymbolTable, c: &ClassType, method_name: &str, )
typechecker/src/type_evaluator.rs:1488
↓ 6 callersMethodnext_token
(&mut self)
parser/src/lexer/mod.rs:99
↓ 5 callersMethodbuild_one
Resolves imports and adds file and its imports to modules
typechecker/src/build.rs:78
↓ 5 callersMethodget_name
(&self)
parser/src/ast.rs:1075
↓ 5 callersMethodget_scope_by_id
(&self, id: u32)
typechecker/src/symbol_table.rs:131
↓ 5 callersMethodget_symbol_table
(&self, id: &Id)
typechecker/src/type_evaluator.rs:1734
↓ 5 callersMethodget_symbol_type
Get the type of a symbol node based on declarations
typechecker/src/type_evaluator.rs:743
↓ 5 callersMethodname
(&self)
typechecker/src/ruff_python_import_resolver/module_descriptor.rs:11
↓ 5 callersMethodparse_comp_for
https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries
parser/src/parser/parser.rs:1663
↓ 5 callersMethodparse_or_expr
Binary bitwise operations https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
parser/src/parser/parser.rs:2098
↓ 5 callersMethodparse_pattern
(&mut self)
parser/src/parser/parser.rs:810
↓ 4 callersMethodadvance
Move to the next token count_in_offset: if true, the offset will be increased by the length of the current token so prev_token_end is adjusted
parser/src/parser/parser.rs:174
↓ 4 callersMethodbuild
(&self, path: PathBuf)
lsp/src/main.rs:15
↓ 4 callersFunctioncreate
Create a file at the given path with the given content.
typechecker/src/ruff_python_import_resolver/mod.rs:39
↓ 4 callersFunctionextract_string_inside
TODO: performance
parser/src/parser/mod.rs:31
↓ 4 callersFunctionget_row_col_position
(start: u32, end: u32, line_starts: &[u32])
parser/src/lib.rs:11
↓ 4 callersMethodget_type
(&self)
typechecker/src/types.rs:134
↓ 4 callersMethodlex
(&mut self)
parser/src/lexer/mod.rs:86
↓ 4 callersMethodlog
(self, message: str)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:99
↓ 4 callersMethodparse_alias
(&mut self, name: String, node: Node)
parser/src/parser/parser.rs:1459
↓ 4 callersMethodparse_function_definition
( &mut self, node: Node, decorators: Vec<Expression>, is_async: bool, )
parser/src/parser/parser.rs:592
↓ 4 callersMethodparse_or_test
https://docs.python.org/3/reference/expressions.html#boolean-operations
parser/src/parser/parser.rs:2028
↓ 4 callersMethodparse_with_item
(&mut self)
parser/src/parser/parser.rs:496
↓ 4 callersMethodparse_yield_expression
https://docs.python.org/3/reference/expressions.html#yield-expressions
parser/src/parser/parser.rs:2814
↓ 4 callersMethodpeek_kind
(&mut self)
parser/src/parser/parser.rs:138
↓ 4 callersMethodtype_check
Performs type checking passes over the code This step happens after the binding phase
typechecker/src/build.rs:95
↓ 3 callersFunctionassert_tokens_eq
( python_tokens: Vec<PythonToken>, enderpy_tokens: Vec<Token>, lexer: &Lexer, )
compat/src/lexer_compat.rs:143
↓ 3 callersMethodcreate_variable_declaration_symbol
( &mut self, target: &Expression, value: Option<Expression>, type_annotation:
typechecker/src/semantic_analyzer.rs:73
↓ 3 callersMethodenter_scope
(&mut self, pos: u32)
typechecker/src/checker.rs:95
↓ 3 callersMethodexit_scope
(&mut self)
typechecker/src/symbol_table.rs:241
↓ 3 callersMethodf_string_quote_count
(&mut self, str_start: char)
parser/src/lexer/mod.rs:1047
↓ 3 callersFunctionfind_project_root
(path: &Path)
typechecker/src/lib.rs:26
↓ 3 callersFunctionfunc2
(val1: type[None])
typechecker/test_data/inputs/conformance_tests/specialtypes_none.py:36
↓ 3 callersMethodget_dec_symbol_table
(&self, decl_path: &DeclarationPath)
typechecker/src/type_evaluator.rs:1729
↓ 3 callersMethodget_offset_line_number
(&self, pos: u32)
parser/src/parser/parser.rs:237
↓ 3 callersMethodget_scope
Returns the id of the scope starting at position
typechecker/src/symbol_table.rs:220
↓ 3 callersMethodget_value
(&self, source: &'a str)
parser/src/ast.rs:340
↓ 3 callersMethodinto_iter
(self)
parser/src/ast.rs:756
↓ 3 callersMethodis_empty
(&self)
parser/src/ast.rs:40
next →1–100 of 737, ranked by callers