API reference
python:arx:arx.parser.declarations.DeclarationParserMixin
class DeclarationParserMixin
Source: packages/arx/src/arx/parser/declarations.py:51
Declaration parser mixin.
Attributes
-
bin_op_precedence — Type: dict[str, int]
-
indent_level — Type: int
-
list_scopes — Type: list[set[str]]
-
known_class_names — Type: set[str]
-
imported_type_names — Type: set[str]
-
namespace_roots — Type: set[str]
-
builtin_type_bindings — Type: dict[str, astx.DataType]
-
tensor_scopes — Type: list[dict[str, TensorBinding | None]]
-
dataframe_scopes — Type: list[dict[str, DataFrameBinding | None]]
-
return_type_scopes — Type: list[astx.DataType]
-
template_type_scopes — Type: list[dict[str, astx.DataType]]
-
type_aliases — Type: dict[str, astx.DataType]
-
value_scopes — Type: list[set[str]]
-
tokens — Type: TokenList
Methods
-
_append_argument — Append one parsed argument, including an optional default.
-
_apply_class_modifiers — Attach explicit class modifier metadata to the IRx node.
-
_apply_field_modifiers — Attach explicit field modifier metadata to the IRx node.
-
_coerce_declared_expression — Coerce one expression for declared collection target types.
-
_dataframe_bindings_for_arguments — Build one DataFrame scope map for function arguments.
-
_explicit_field_mutability — Return explicit field mutability when one was written.
-
_explicit_visibility — Return explicit visibility when one was written.
-
_has_modifier — Return whether one modifier is present.
-
_list_names_for_arguments — Return visible list-typed argument names.
-
_parse_argument_default — Parse one optional function argument default value.
-
_resolve_visibility — Resolve class/member visibility defaults.
-
_tensor_bindings_for_arguments — Build one tensor scope map for function arguments.
-
_validate_modifier_conflicts — Validate duplicate-group modifier conflicts.
-
_validate_modifier_target — Validate one modifier list against a declaration target.
-
apply_callable_modifiers — Attach callable declaration policies without qualifying the return type.
-
is_declaration_start — Recognize a same-line name-first declaration.
-
parse_callable_signature — Parse callable arguments, declaration modifiers, and return type.
-
parse_class_body — Parse a class body.
-
parse_class_decl — Parse one class declaration.
-
parse_declaration_head — Consume a declaration name, colon, and optional modifier group.
-
parse_declaration_prefix — Parse one declaration prefix.
-
parse_declaration_prefixes — Parse declaration prefixes that precede one declaration.
-
parse_extern — Parse an extern declaration.
-
parse_field_decl — Parse one class field declaration.
-
parse_function — Parse a function definition.
-
parse_inline_modifiers — Parse optional whitespace-separated declaration modifiers.
-
parse_method_decl — Parse one class method declaration.
-
parse_modifier_list — Parse one annotation-line modifier list.
-
parse_named_declaration — Parse a name-first variable declaration without function syntax.
-
parse_prototype — Parse function/extern prototypes with declaration modifiers.
-
parse_template_argument_list — Parse one explicit template-argument list.
-
parse_template_param_block — Parse one template-parameter block.
-
resolve_binding_mutability — Resolve Arx binding mutability for variables, fields, and parameters.
-
skip_callable_layout — Consume continuation markers inside an unfinished signature.