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
↓ 3 callers
Method
last_declaration
(&self)
typechecker/src/symbol_table.rs:569
↓ 3 callers
Method
leave_scope
(&mut self)
typechecker/src/checker.rs:101
↓ 3 callers
Function
lex_python_source
(source: &str)
compat/src/lexer_compat.rs:123
↓ 3 callers
Method
lookup_attribute
Looks up an attribute in the current scope and its parents Attributes must have symbol flags CLASS_MEMBER or INSTANCE_MEMBER
typechecker/src/symbol_table.rs:281
↓ 3 callers
Function
parse
(file: &PathBuf)
enderpy/src/main.rs:107
↓ 3 callers
Method
parse_atom
https://docs.python.org/3/reference/expressions.html#atoms
parser/src/parser/parser.rs:2442
↓ 3 callers
Method
parse_attr
This parse attr does not allow anything other than names in contrast to attribute parsing in primary expression
parser/src/parser/parser.rs:936
↓ 3 callers
Method
parse_binary_arithmetic_operation
https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations
parser/src/parser/parser.rs:2170
↓ 3 callers
Method
parse_expression_list
https://docs.python.org/3/reference/expressions.html#expression-lists
parser/src/parser/parser.rs:2842
↓ 3 callers
Method
parse_expressions
https://docs.python.org/3/library/ast.html#ast.Expr
parser/src/parser/parser.rs:1504
↓ 3 callers
Method
parse_maybe_star_pattern
(&mut self)
parser/src/parser/parser.rs:1097
↓ 3 callers
Method
parse_parameter
( &mut self, is_lambda: bool, )
parser/src/parser/parser.rs:3239
↓ 3 callers
Method
parse_primary
https://docs.python.org/3/reference/expressions.html#primaries primaries can be chained together, when they are chained the base is the previous prima
parser/src/parser/parser.rs:2242
↓ 3 callers
Method
parse_simple_statement
(&mut self)
parser/src/parser/parser.rs:244
↓ 3 callers
Method
parse_star_named_expression
star named expressions is similar to starred expression but it does not accept expression as a value https://docs.python.org/3/reference/grammar.html
parser/src/parser/parser.rs:735
↓ 3 callers
Method
parse_starred_list
https://docs.python.org/3/reference/expressions.html#expression-lists termination_kind is used to know when to stop parsing the list for example to pa
parser/src/parser/parser.rs:1964
↓ 3 callers
Method
parse_target_list
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-target_list
parser/src/parser/parser.rs:1701
↓ 3 callers
Method
parse_type_parameters
https://docs.python.org/3/reference/compound_stmts.html#type-parameter-lists
parser/src/parser/parser.rs:3286
↓ 3 callers
Function
pick_best_import
Given a current "best" import and a newly discovered result, returns the preferred result.
typechecker/src/ruff_python_import_resolver/resolver.rs:483
↓ 3 callers
Method
push_scope
Creates a new scope and sets it as the current scope
typechecker/src/symbol_table.rs:203
↓ 3 callers
Method
resolve_generics
Resolving all type parameters in a python type based on the given type parameters dict
typechecker/src/type_evaluator.rs:1678
↓ 3 callers
Method
resolves_namespace_package
Returns `true` if the [`ImplicitImports`] resolves all the symbols requested by a module descriptor.
typechecker/src/ruff_python_import_resolver/implicit_imports.rs:126
↓ 3 callers
Method
set
(self, new: T)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:91
↓ 2 callers
Method
add_arguments_definitions
(&mut self, args: &parser::ast::Arguments)
typechecker/src/semantic_analyzer.rs:151
↓ 2 callers
Function
ast2json
(node)
compat/ast_python.py:75
↓ 2 callers
Method
consume_whitespace_and_comments
(&mut self)
parser/src/parser/parser.rs:1947
↓ 2 callers
Function
default_python_path
()
compat/src/runpython.rs:47
↓ 2 callers
Method
display_token
(&self, source: &str)
parser/src/token.rs:21
↓ 2 callers
Function
find_typeshed_path
Finds the `typeshed` path for the given module descriptor. Supports both standard library and third-party `typeshed` lookups.
typechecker/src/ruff_python_import_resolver/resolver.rs:431
↓ 2 callers
Function
first
(l: Sequence[T])
typechecker/test_data/inputs/conformance_tests/generics_basic.py:18
↓ 2 callers
Function
func1
(val1: None)
typechecker/test_data/inputs/conformance_tests/specialtypes_none.py:14
↓ 2 callers
Function
gather_imports
( mut initial_files: Vec<EnderpyFile>, root: &Path, import_config: &ruff_python_resolver::config::
typechecker/src/build.rs:150
↓ 2 callers
Method
get_async_function_type
( &self, symbol_table: &symbol_table::SymbolTable, f: &symbol_table::AsyncFunction,
typechecker/src/type_evaluator.rs:1630
↓ 2 callers
Method
get_class_declaration_type
( &self, class_symbol: &Class, symbol_table: &SymbolTable, class_decl_scope: u
typechecker/src/type_evaluator.rs:1029
↓ 2 callers
Method
get_function_signature
( &self, arguments: &ast::Arguments, symbol_table: &symbol_table::SymbolTable,
typechecker/src/type_evaluator.rs:1520
↓ 2 callers
Method
get_function_type
TODO(coroutine_annotation): These two are very similar. Maybe should be presented in another way. Async version only needs the return type to be a cor
typechecker/src/type_evaluator.rs:1599
↓ 2 callers
Method
get_line_content
Return source of the line number
typechecker/src/file.rs:99
↓ 2 callers
Function
get_member_access_info
determines whether a member access expression is referring to a member of a class (either a class or instance member). this will typically take the fo
typechecker/src/semantic_analyzer.rs:836
↓ 2 callers
Function
get_py_typed_info
Returns the `py.typed` information for the given directory, if any.
typechecker/src/ruff_python_import_resolver/py_typed.rs:17
↓ 2 callers
Function
get_python_executable
()
enderpy/src/main.rs:41
↓ 2 callers
Function
get_typeshed_path
()
enderpy/src/main.rs:68
↓ 2 callers
Method
handle_union_type
https://peps.python.org/pep-0484/#union-types expressions are the parameters of the union type in case of t1 | t2 | t3, expressions are [t1, t2, t3] a
typechecker/src/type_evaluator.rs:1228
↓ 2 callers
Function
intern
(s: &str)
parser/src/parser/parser.rs:31
↓ 2 callers
Function
is_at_compound_statement
(token: &Token)
parser/src/parser/mod.rs:12
↓ 2 callers
Method
is_atom
(&self)
parser/src/token.rs:250
↓ 2 callers
Method
is_inside_class
(&self)
typechecker/src/semantic_analyzer.rs:66
↓ 2 callers
Method
is_star_expression
Determines if the kind can be start of a python expression in grammar
parser/src/token.rs:284
↓ 2 callers
Method
is_string
(&self)
parser/src/token.rs:209
↓ 2 callers
Function
matches_python_name_token
(python_token_value: &str, token_kind: &Kind)
compat/src/lexer_compat.rs:473
↓ 2 callers
Function
matches_python_op_token
(python_token_value: &str, token_kind: &Kind)
compat/src/lexer_compat.rs:516
↓ 2 callers
Function
native_module_name
Given a file name, returns the name of the native module it represents. For example, given `foo.abi3.so`, return `foo`.
typechecker/src/ruff_python_import_resolver/native_module.rs:17
↓ 2 callers
Method
parse_and_expr
https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
parser/src/parser/parser.rs:2130
↓ 2 callers
Method
parse_assignment_or_expression_statement
(&mut self)
parser/src/parser/parser.rs:1105
↓ 2 callers
Method
parse_assignment_value
The value is either expression list or yield expression https://docs.python.org/3/reference/simple_stmts.html#assignment-statements
parser/src/parser/parser.rs:1250
↓ 2 callers
Method
parse_attribute_ref
( &mut self, node: Node, value: Expression, )
parser/src/parser/parser.rs:2405
↓ 2 callers
Method
parse_capture_or_wildcard_pattern
(&mut self)
parser/src/parser/parser.rs:899
↓ 2 callers
Method
parse_class_definition
( &mut self, decorators: Vec<Expression>, node: Option<Node>, )
parser/src/parser/parser.rs:667
↓ 2 callers
Method
parse_class_pattern
( &mut self, class_name: Expression, )
parser/src/parser/parser.rs:1016
↓ 2 callers
Method
parse_closed_pattern
(&mut self)
parser/src/parser/parser.rs:843
↓ 2 callers
Method
parse_compound_statement
(&mut self)
parser/src/parser/parser.rs:275
↓ 2 callers
Method
parse_dict
https://docs.python.org/3/reference/expressions.html#dictionary-displays
parser/src/parser/parser.rs:1871
↓ 2 callers
Method
parse_double_starred_kv_pair
( &mut self, )
parser/src/parser/parser.rs:1924
↓ 2 callers
Method
parse_for_statement
(&mut self)
parser/src/parser/parser.rs:408
↓ 2 callers
Method
parse_fstring
the FStringStart token is consumed by the caller
parser/src/parser/parser.rs:3270
↓ 2 callers
Method
parse_fstring_middle
(&mut self)
parser/src/parser/parser.rs:3411
↓ 2 callers
Method
parse_keyword_item
(&mut self)
parser/src/parser/parser.rs:3141
↓ 2 callers
Method
parse_literal_pattern
https://docs.python.org/3/reference/compound_stmts.html#literal-patterns
parser/src/parser/parser.rs:890
↓ 2 callers
Method
parse_module_name
(&mut self)
parser/src/parser/parser.rs:1474
↓ 2 callers
Method
parse_not_test
https://docs.python.org/3/reference/expressions.html#boolean-operations
parser/src/parser/parser.rs:2059
↓ 2 callers
Method
parse_open_sequence_pattern
(&mut self)
parser/src/parser/parser.rs:1072
↓ 2 callers
Method
parse_parameters
(&mut self, is_lambda: bool)
parser/src/parser/parser.rs:3154
↓ 2 callers
Method
parse_sequence_pattern
(&mut self)
parser/src/parser/parser.rs:1057
↓ 2 callers
Method
parse_shift_expr
https://docs.python.org/3/reference/expressions.html#shifting-operations
parser/src/parser/parser.rs:2147
↓ 2 callers
Method
parse_starred_item
https://docs.python.org/3/reference/expressions.html#expression-lists
parser/src/parser/parser.rs:1983
↓ 2 callers
Method
parse_statement_list
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-stmt-list
parser/src/parser/parser.rs:1151
↓ 2 callers
Method
parse_subscript
( &mut self, node: Node, value: Expression, )
parser/src/parser/parser.rs:2423
↓ 2 callers
Method
parse_target
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-target
parser/src/parser/parser.rs:1721
↓ 2 callers
Method
parse_unary_arithmetic_operation
https://docs.python.org/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations
parser/src/parser/parser.rs:2198
↓ 2 callers
Method
parse_value_pattern
https://docs.python.org/3/reference/compound_stmts.html#value-patterns This pattern shares the value logic with class pattern so we pass that part to
parser/src/parser/parser.rs:923
↓ 2 callers
Method
parse_with_statement
(&mut self)
parser/src/parser/parser.rs:454
↓ 2 callers
Method
parse_xor_expr
https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
parser/src/parser/parser.rs:2114
↓ 2 callers
Method
peek_token
(&mut self)
parser/src/parser/parser.rs:130
↓ 2 callers
Method
populate_symbol_table
entry point to fill up the symbol table from the global definitions
typechecker/src/file.rs:129
↓ 2 callers
Function
python_search_paths
Determine the relevant Python search paths.
typechecker/src/ruff_python_import_resolver/search.rs:173
↓ 2 callers
Function
resolve_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
typechecker/src/ruff_python_import_resolver/resolver.rs:266
↓ 2 callers
Function
resolve_import
Resolves an import, given the current file and the import descriptor. The algorithm is as follows: 1. If the import is relative, convert it to an ab
typechecker/src/ruff_python_import_resolver/resolver.rs:701
↓ 2 callers
Function
resolve_module_descriptor
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
typechecker/src/ruff_python_import_resolver/resolver.rs:21
↓ 2 callers
Function
spawn_python_script_command
( script_path: S, args: Vec<&str>, python_path: P, )
compat/src/runpython.rs:6
↓ 2 callers
Method
triple_peek
(&self)
parser/src/lexer/mod.rs:701
↓ 2 callers
Function
typed
Create a `py.typed` file at the given path.
typechecker/src/ruff_python_import_resolver/mod.rs:61
↓ 2 callers
Function
typeshed_root
Determine the root of the `typeshed` directory.
typechecker/src/ruff_python_import_resolver/search.rs:179
↓ 2 callers
Function
typeshed_subdirectory
Determine the current `typeshed` subdirectory.
typechecker/src/ruff_python_import_resolver/search.rs:199
↓ 2 callers
Method
update_orelse
(&mut self, other_or_else: Vec<Statement>)
parser/src/ast.rs:834
↓ 2 callers
Method
visit_ann_assign
(&mut self, _a: &AnnAssign)
typechecker/src/ast_visitor.rs:329
↓ 2 callers
Method
visit_assert
(&mut self, _a: &Assert)
typechecker/src/ast_visitor.rs:337
↓ 2 callers
Method
visit_assign
(&mut self, _a: &Assign)
typechecker/src/ast_visitor.rs:325
↓ 2 callers
Method
visit_async_for
(&mut self, f: &parser::ast::AsyncFor)
typechecker/src/ast_visitor.rs:107
↓ 2 callers
Method
visit_async_for
(&mut self, f: &parser::ast::AsyncFor)
typechecker/src/semantic_analyzer.rs:410
↓ 2 callers
Method
visit_async_function_def
(&mut self, f: &Arc<parser::ast::AsyncFunctionDef>)
typechecker/src/ast_visitor.rs:183
↓ 2 callers
Method
visit_async_with
(&mut self, w: &parser::ast::AsyncWith)
typechecker/src/ast_visitor.rs:126
← previous
next →
101–200 of 737, ranked by callers