Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Glyphack/enderpy
/ functions
Functions
737 in github.com/Glyphack/enderpy
⨍
Functions
737
◇
Types & classes
181
↓ 157 callers
Method
expect
Expect a `Kind` or return error
parser/src/parser/parser.rs:213
↓ 147 callers
Method
finish_node
(&self, node: Node)
parser/src/parser/parser.rs:114
↓ 110 callers
Method
at
Checks if the current index has token `Kind`
parser/src/parser/parser.rs:144
↓ 101 callers
Method
iter
Returns an iterator over the implicit imports in the namespace package.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:164
↓ 94 callers
Method
start_node
(&self)
parser/src/parser/parser.rs:109
↓ 92 callers
Method
eat
Advance and return true if we are at `Kind`, return false otherwise
parser/src/parser/parser.rs:164
↓ 85 callers
Method
to_string
(&self, source: &str)
parser/src/token.rs:17
↓ 73 callers
Function
empty
Create an empty file at the given path.
typechecker/src/ruff_python_import_resolver/mod.rs:51
↓ 72 callers
Method
visit_expr
(&mut self, e: &Expression)
typechecker/src/checker.rs:176
↓ 66 callers
Method
next
(&mut self)
parser/src/lexer/mod.rs:677
↓ 59 callers
Method
peek
(&self)
parser/src/lexer/mod.rs:693
↓ 58 callers
Method
bump
Advance if we are at `Kind`
parser/src/parser/parser.rs:152
↓ 57 callers
Method
bump_any
Advance any token
parser/src/parser/parser.rs:159
↓ 46 callers
Method
path
(&self)
typechecker/src/file.rs:90
↓ 44 callers
Method
cur_token
(&self)
parser/src/parser/parser.rs:122
↓ 44 callers
Method
get
(self)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:95
↓ 37 callers
Method
parse_expression
https://docs.python.org/3/reference/expressions.html#conditional-expressions
parser/src/parser/parser.rs:2002
↓ 33 callers
Method
len
Returns the number of implicit imports in the namespace package.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:153
↓ 32 callers
Method
cur_kind
(&self)
parser/src/parser/parser.rs:126
↓ 31 callers
Method
parse
(&mut self)
parser/src/parser/parser.rs:84
↓ 30 callers
Function
resolve_options
( source_file: impl AsRef<Path>, name: &str, root: impl Into<PathBuf>, options
typechecker/src/ruff_python_import_resolver/mod.rs:75
↓ 28 callers
Function
setup
()
typechecker/src/ruff_python_import_resolver/mod.rs:131
↓ 26 callers
Method
as_str
(&self, source: &'a str)
parser/src/token.rs:13
↓ 25 callers
Method
is_empty
Returns `true` if there are no implicit imports in the namespace package.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:159
↓ 23 callers
Function
python_tokenize_test_lexer
(inputs: &[&str])
compat/src/lexer_compat.rs:653
↓ 23 callers
Function
snapshot_test_lexer
(snap_name: &str, inputs: &[&str])
parser/src/lexer/mod.rs:1089
↓ 21 callers
Method
len
(&self)
parser/src/ast.rs:36
↓ 19 callers
Method
visit_stmt
(&mut self, s: &Statement)
typechecker/src/checker.rs:142
↓ 19 callers
Method
visit_stmt
(&mut self, s: &Statement)
typechecker/src/ast_visitor.rs:12
↓ 19 callers
Method
visit_stmt
(&mut self, s: &parser::ast::Statement)
typechecker/src/semantic_analyzer.rs:267
↓ 18 callers
Method
double_peek
(&self)
parser/src/lexer/mod.rs:697
↓ 17 callers
Method
get_builtin_type
Retrieves a python type that is present in the builtin scope
typechecker/src/type_evaluator.rs:1158
↓ 16 callers
Method
create_symbol
(&mut self, name: String, decl: Declaration, symbol_flags: SymbolFlags)
typechecker/src/semantic_analyzer.rs:57
↓ 15 callers
Method
filter
Filter [`ImplicitImports`] to only those symbols that were imported.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:106
↓ 15 callers
Function
intern_lookup
(s: StrId)
parser/src/parser/parser.rs:25
↓ 15 callers
Method
parse_suite
https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-suite
parser/src/parser/parser.rs:1121
↓ 14 callers
Method
double_next
(&mut self)
parser/src/lexer/mod.rs:688
↓ 13 callers
Method
get_type
( &self, expr: &ast::Expression, symbol_table: &SymbolTable, scope_id: u32,
typechecker/src/type_evaluator.rs:76
↓ 11 callers
Method
declaration_path
(&self)
typechecker/src/symbol_table.rs:418
↓ 11 callers
Method
find
Find the "implicit" imports within the namespace package at the given path.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:22
↓ 11 callers
Method
get_node
(&self)
parser/src/ast.rs:97
↓ 11 callers
Method
parse_named_expression
https://docs.python.org/3/reference/expressions.html#assignment-expressions
parser/src/parser/parser.rs:1549
↓ 11 callers
Method
visit_expr
(&mut self, e: &Expression)
typechecker/src/ast_visitor.rs:46
↓ 11 callers
Method
visit_expr
(&mut self, e: &parser::ast::Expression)
typechecker/src/semantic_analyzer.rs:300
↓ 10 callers
Method
get_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 callers
Function
concat
(x: AnyStr, y: AnyStr)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:33
↓ 9 callers
Method
finish_node_chomped
(&self, node: Node)
parser/src/parser/parser.rs:118
↓ 8 callers
Method
consume_whitespace_and_newline
(&mut self)
parser/src/parser/parser.rs:1938
↓ 8 callers
Method
current_scope
Do not use for lookup operations
typechecker/src/symbol_table.rs:69
↓ 8 callers
Function
resolve_absolute_import
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
typechecker/src/ruff_python_import_resolver/resolver.rs:216
↓ 7 callers
Method
get_name_type
Get the python type of a name from the symbol table
typechecker/src/type_evaluator.rs:687
↓ 7 callers
Method
get_symbol_table_by_id
(&'a self, id: &Id)
typechecker/src/build.rs:113
↓ 7 callers
Method
infer_name_type
(&mut self, name: &str, start: u32, stop: u32)
typechecker/src/checker.rs:83
↓ 7 callers
Method
iter_mut
(&mut self)
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:168
↓ 7 callers
Method
parent_scope
Returns the parent scope of the current scope
typechecker/src/symbol_table.rs:101
↓ 7 callers
Function
partial
Create a partial `py.typed` file at the given path.
typechecker/src/ruff_python_import_resolver/mod.rs:56
↓ 6 callers
Method
build
Entry point to analyze the program this only prepares necessary python files.
typechecker/src/build.rs:62
↓ 6 callers
Method
consume_str
(&mut self, str_start: char)
parser/src/lexer/mod.rs:748
↓ 6 callers
Method
get_sequence_type_from_elements
( &self, elements: &Vec<ast::Expression>, symbol_table: &SymbolTable, scope_id
typechecker/src/type_evaluator.rs:1136
↓ 6 callers
Method
infer_expr_type
(&mut self, expr: &Expression)
typechecker/src/checker.rs:48
↓ 6 callers
Method
lookup_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 callers
Method
lookup_on_class
( &self, symbol_table: &SymbolTable, c: &ClassType, method_name: &str, )
typechecker/src/type_evaluator.rs:1488
↓ 6 callers
Method
next_token
(&mut self)
parser/src/lexer/mod.rs:99
↓ 5 callers
Method
build_one
Resolves imports and adds file and its imports to modules
typechecker/src/build.rs:78
↓ 5 callers
Method
get_name
(&self)
parser/src/ast.rs:1075
↓ 5 callers
Method
get_scope_by_id
(&self, id: u32)
typechecker/src/symbol_table.rs:131
↓ 5 callers
Method
get_symbol_table
(&self, id: &Id)
typechecker/src/type_evaluator.rs:1734
↓ 5 callers
Method
get_symbol_type
Get the type of a symbol node based on declarations
typechecker/src/type_evaluator.rs:743
↓ 5 callers
Method
name
(&self)
typechecker/src/ruff_python_import_resolver/module_descriptor.rs:11
↓ 5 callers
Method
parse_comp_for
https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries
parser/src/parser/parser.rs:1663
↓ 5 callers
Method
parse_or_expr
Binary bitwise operations https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
parser/src/parser/parser.rs:2098
↓ 5 callers
Method
parse_pattern
(&mut self)
parser/src/parser/parser.rs:810
↓ 4 callers
Method
advance
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 callers
Method
build
(&self, path: PathBuf)
lsp/src/main.rs:15
↓ 4 callers
Function
create
Create a file at the given path with the given content.
typechecker/src/ruff_python_import_resolver/mod.rs:39
↓ 4 callers
Function
extract_string_inside
TODO: performance
parser/src/parser/mod.rs:31
↓ 4 callers
Function
get_row_col_position
(start: u32, end: u32, line_starts: &[u32])
parser/src/lib.rs:11
↓ 4 callers
Method
get_type
(&self)
typechecker/src/types.rs:134
↓ 4 callers
Method
lex
(&mut self)
parser/src/lexer/mod.rs:86
↓ 4 callers
Method
log
(self, message: str)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:99
↓ 4 callers
Method
parse_alias
(&mut self, name: String, node: Node)
parser/src/parser/parser.rs:1459
↓ 4 callers
Method
parse_function_definition
( &mut self, node: Node, decorators: Vec<Expression>, is_async: bool, )
parser/src/parser/parser.rs:592
↓ 4 callers
Method
parse_or_test
https://docs.python.org/3/reference/expressions.html#boolean-operations
parser/src/parser/parser.rs:2028
↓ 4 callers
Method
parse_with_item
(&mut self)
parser/src/parser/parser.rs:496
↓ 4 callers
Method
parse_yield_expression
https://docs.python.org/3/reference/expressions.html#yield-expressions
parser/src/parser/parser.rs:2814
↓ 4 callers
Method
peek_kind
(&mut self)
parser/src/parser/parser.rs:138
↓ 4 callers
Method
type_check
Performs type checking passes over the code This step happens after the binding phase
typechecker/src/build.rs:95
↓ 3 callers
Function
assert_tokens_eq
( python_tokens: Vec<PythonToken>, enderpy_tokens: Vec<Token>, lexer: &Lexer, )
compat/src/lexer_compat.rs:143
↓ 3 callers
Method
create_variable_declaration_symbol
( &mut self, target: &Expression, value: Option<Expression>, type_annotation:
typechecker/src/semantic_analyzer.rs:73
↓ 3 callers
Method
enter_scope
(&mut self, pos: u32)
typechecker/src/checker.rs:95
↓ 3 callers
Method
exit_scope
(&mut self)
typechecker/src/symbol_table.rs:241
↓ 3 callers
Method
f_string_quote_count
(&mut self, str_start: char)
parser/src/lexer/mod.rs:1047
↓ 3 callers
Function
find_project_root
(path: &Path)
typechecker/src/lib.rs:26
↓ 3 callers
Function
func2
(val1: type[None])
typechecker/test_data/inputs/conformance_tests/specialtypes_none.py:36
↓ 3 callers
Method
get_dec_symbol_table
(&self, decl_path: &DeclarationPath)
typechecker/src/type_evaluator.rs:1729
↓ 3 callers
Method
get_offset_line_number
(&self, pos: u32)
parser/src/parser/parser.rs:237
↓ 3 callers
Method
get_scope
Returns the id of the scope starting at position
typechecker/src/symbol_table.rs:220
↓ 3 callers
Method
get_value
(&self, source: &'a str)
parser/src/ast.rs:340
↓ 3 callers
Method
into_iter
(self)
parser/src/ast.rs:756
↓ 3 callers
Method
is_empty
(&self)
parser/src/ast.rs:40
next →
1–100 of 737, ranked by callers