MCPcopy Create free account

hub / github.com/Glyphack/enderpy / functions

Functions737 in github.com/Glyphack/enderpy

↓ 3 callersMethodlast_declaration
(&self)
typechecker/src/symbol_table.rs:569
↓ 3 callersMethodleave_scope
(&mut self)
typechecker/src/checker.rs:101
↓ 3 callersFunctionlex_python_source
(source: &str)
compat/src/lexer_compat.rs:123
↓ 3 callersMethodlookup_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 callersFunctionparse
(file: &PathBuf)
enderpy/src/main.rs:107
↓ 3 callersMethodparse_atom
https://docs.python.org/3/reference/expressions.html#atoms
parser/src/parser/parser.rs:2442
↓ 3 callersMethodparse_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 callersMethodparse_binary_arithmetic_operation
https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations
parser/src/parser/parser.rs:2170
↓ 3 callersMethodparse_expression_list
https://docs.python.org/3/reference/expressions.html#expression-lists
parser/src/parser/parser.rs:2842
↓ 3 callersMethodparse_expressions
https://docs.python.org/3/library/ast.html#ast.Expr
parser/src/parser/parser.rs:1504
↓ 3 callersMethodparse_maybe_star_pattern
(&mut self)
parser/src/parser/parser.rs:1097
↓ 3 callersMethodparse_parameter
( &mut self, is_lambda: bool, )
parser/src/parser/parser.rs:3239
↓ 3 callersMethodparse_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 callersMethodparse_simple_statement
(&mut self)
parser/src/parser/parser.rs:244
↓ 3 callersMethodparse_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 callersMethodparse_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 callersMethodparse_target_list
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-target_list
parser/src/parser/parser.rs:1701
↓ 3 callersMethodparse_type_parameters
https://docs.python.org/3/reference/compound_stmts.html#type-parameter-lists
parser/src/parser/parser.rs:3286
↓ 3 callersFunctionpick_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 callersMethodpush_scope
Creates a new scope and sets it as the current scope
typechecker/src/symbol_table.rs:203
↓ 3 callersMethodresolve_generics
Resolving all type parameters in a python type based on the given type parameters dict
typechecker/src/type_evaluator.rs:1678
↓ 3 callersMethodresolves_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 callersMethodset
(self, new: T)
typechecker/test_data/inputs/conformance_tests/generics_basic.py:91
↓ 2 callersMethodadd_arguments_definitions
(&mut self, args: &parser::ast::Arguments)
typechecker/src/semantic_analyzer.rs:151
↓ 2 callersFunctionast2json
(node)
compat/ast_python.py:75
↓ 2 callersMethodconsume_whitespace_and_comments
(&mut self)
parser/src/parser/parser.rs:1947
↓ 2 callersFunctiondefault_python_path
()
compat/src/runpython.rs:47
↓ 2 callersMethoddisplay_token
(&self, source: &str)
parser/src/token.rs:21
↓ 2 callersFunctionfind_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 callersFunctionfirst
(l: Sequence[T])
typechecker/test_data/inputs/conformance_tests/generics_basic.py:18
↓ 2 callersFunctionfunc1
(val1: None)
typechecker/test_data/inputs/conformance_tests/specialtypes_none.py:14
↓ 2 callersFunctiongather_imports
( mut initial_files: Vec<EnderpyFile>, root: &Path, import_config: &ruff_python_resolver::config::
typechecker/src/build.rs:150
↓ 2 callersMethodget_async_function_type
( &self, symbol_table: &symbol_table::SymbolTable, f: &symbol_table::AsyncFunction,
typechecker/src/type_evaluator.rs:1630
↓ 2 callersMethodget_class_declaration_type
( &self, class_symbol: &Class, symbol_table: &SymbolTable, class_decl_scope: u
typechecker/src/type_evaluator.rs:1029
↓ 2 callersMethodget_function_signature
( &self, arguments: &ast::Arguments, symbol_table: &symbol_table::SymbolTable,
typechecker/src/type_evaluator.rs:1520
↓ 2 callersMethodget_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 callersMethodget_line_content
Return source of the line number
typechecker/src/file.rs:99
↓ 2 callersFunctionget_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 callersFunctionget_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 callersFunctionget_python_executable
()
enderpy/src/main.rs:41
↓ 2 callersFunctionget_typeshed_path
()
enderpy/src/main.rs:68
↓ 2 callersMethodhandle_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 callersFunctionintern
(s: &str)
parser/src/parser/parser.rs:31
↓ 2 callersFunctionis_at_compound_statement
(token: &Token)
parser/src/parser/mod.rs:12
↓ 2 callersMethodis_atom
(&self)
parser/src/token.rs:250
↓ 2 callersMethodis_inside_class
(&self)
typechecker/src/semantic_analyzer.rs:66
↓ 2 callersMethodis_star_expression
Determines if the kind can be start of a python expression in grammar
parser/src/token.rs:284
↓ 2 callersMethodis_string
(&self)
parser/src/token.rs:209
↓ 2 callersFunctionmatches_python_name_token
(python_token_value: &str, token_kind: &Kind)
compat/src/lexer_compat.rs:473
↓ 2 callersFunctionmatches_python_op_token
(python_token_value: &str, token_kind: &Kind)
compat/src/lexer_compat.rs:516
↓ 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`.
typechecker/src/ruff_python_import_resolver/native_module.rs:17
↓ 2 callersMethodparse_and_expr
https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
parser/src/parser/parser.rs:2130
↓ 2 callersMethodparse_assignment_or_expression_statement
(&mut self)
parser/src/parser/parser.rs:1105
↓ 2 callersMethodparse_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 callersMethodparse_attribute_ref
( &mut self, node: Node, value: Expression, )
parser/src/parser/parser.rs:2405
↓ 2 callersMethodparse_capture_or_wildcard_pattern
(&mut self)
parser/src/parser/parser.rs:899
↓ 2 callersMethodparse_class_definition
( &mut self, decorators: Vec<Expression>, node: Option<Node>, )
parser/src/parser/parser.rs:667
↓ 2 callersMethodparse_class_pattern
( &mut self, class_name: Expression, )
parser/src/parser/parser.rs:1016
↓ 2 callersMethodparse_closed_pattern
(&mut self)
parser/src/parser/parser.rs:843
↓ 2 callersMethodparse_compound_statement
(&mut self)
parser/src/parser/parser.rs:275
↓ 2 callersMethodparse_dict
https://docs.python.org/3/reference/expressions.html#dictionary-displays
parser/src/parser/parser.rs:1871
↓ 2 callersMethodparse_double_starred_kv_pair
( &mut self, )
parser/src/parser/parser.rs:1924
↓ 2 callersMethodparse_for_statement
(&mut self)
parser/src/parser/parser.rs:408
↓ 2 callersMethodparse_fstring
the FStringStart token is consumed by the caller
parser/src/parser/parser.rs:3270
↓ 2 callersMethodparse_fstring_middle
(&mut self)
parser/src/parser/parser.rs:3411
↓ 2 callersMethodparse_keyword_item
(&mut self)
parser/src/parser/parser.rs:3141
↓ 2 callersMethodparse_literal_pattern
https://docs.python.org/3/reference/compound_stmts.html#literal-patterns
parser/src/parser/parser.rs:890
↓ 2 callersMethodparse_module_name
(&mut self)
parser/src/parser/parser.rs:1474
↓ 2 callersMethodparse_not_test
https://docs.python.org/3/reference/expressions.html#boolean-operations
parser/src/parser/parser.rs:2059
↓ 2 callersMethodparse_open_sequence_pattern
(&mut self)
parser/src/parser/parser.rs:1072
↓ 2 callersMethodparse_parameters
(&mut self, is_lambda: bool)
parser/src/parser/parser.rs:3154
↓ 2 callersMethodparse_sequence_pattern
(&mut self)
parser/src/parser/parser.rs:1057
↓ 2 callersMethodparse_shift_expr
https://docs.python.org/3/reference/expressions.html#shifting-operations
parser/src/parser/parser.rs:2147
↓ 2 callersMethodparse_starred_item
https://docs.python.org/3/reference/expressions.html#expression-lists
parser/src/parser/parser.rs:1983
↓ 2 callersMethodparse_statement_list
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-stmt-list
parser/src/parser/parser.rs:1151
↓ 2 callersMethodparse_subscript
( &mut self, node: Node, value: Expression, )
parser/src/parser/parser.rs:2423
↓ 2 callersMethodparse_target
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-target
parser/src/parser/parser.rs:1721
↓ 2 callersMethodparse_unary_arithmetic_operation
https://docs.python.org/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations
parser/src/parser/parser.rs:2198
↓ 2 callersMethodparse_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 callersMethodparse_with_statement
(&mut self)
parser/src/parser/parser.rs:454
↓ 2 callersMethodparse_xor_expr
https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
parser/src/parser/parser.rs:2114
↓ 2 callersMethodpeek_token
(&mut self)
parser/src/parser/parser.rs:130
↓ 2 callersMethodpopulate_symbol_table
entry point to fill up the symbol table from the global definitions
typechecker/src/file.rs:129
↓ 2 callersFunctionpython_search_paths
Determine the relevant Python search paths.
typechecker/src/ruff_python_import_resolver/search.rs:173
↓ 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
typechecker/src/ruff_python_import_resolver/resolver.rs:266
↓ 2 callersFunctionresolve_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 callersFunctionresolve_module_descriptor
( root: &Path, module_descriptor: &ImportModuleDescriptor, allow_partial: bool, allow_native_l
typechecker/src/ruff_python_import_resolver/resolver.rs:21
↓ 2 callersFunctionspawn_python_script_command
( script_path: S, args: Vec<&str>, python_path: P, )
compat/src/runpython.rs:6
↓ 2 callersMethodtriple_peek
(&self)
parser/src/lexer/mod.rs:701
↓ 2 callersFunctiontyped
Create a `py.typed` file at the given path.
typechecker/src/ruff_python_import_resolver/mod.rs:61
↓ 2 callersFunctiontypeshed_root
Determine the root of the `typeshed` directory.
typechecker/src/ruff_python_import_resolver/search.rs:179
↓ 2 callersFunctiontypeshed_subdirectory
Determine the current `typeshed` subdirectory.
typechecker/src/ruff_python_import_resolver/search.rs:199
↓ 2 callersMethodupdate_orelse
(&mut self, other_or_else: Vec<Statement>)
parser/src/ast.rs:834
↓ 2 callersMethodvisit_ann_assign
(&mut self, _a: &AnnAssign)
typechecker/src/ast_visitor.rs:329
↓ 2 callersMethodvisit_assert
(&mut self, _a: &Assert)
typechecker/src/ast_visitor.rs:337
↓ 2 callersMethodvisit_assign
(&mut self, _a: &Assign)
typechecker/src/ast_visitor.rs:325
↓ 2 callersMethodvisit_async_for
(&mut self, f: &parser::ast::AsyncFor)
typechecker/src/ast_visitor.rs:107
↓ 2 callersMethodvisit_async_for
(&mut self, f: &parser::ast::AsyncFor)
typechecker/src/semantic_analyzer.rs:410
↓ 2 callersMethodvisit_async_function_def
(&mut self, f: &Arc<parser::ast::AsyncFunctionDef>)
typechecker/src/ast_visitor.rs:183
↓ 2 callersMethodvisit_async_with
(&mut self, w: &parser::ast::AsyncWith)
typechecker/src/ast_visitor.rs:126
← previousnext →101–200 of 737, ranked by callers