arx.parser.types
arx.parser.types
Source: packages/arx/src/arx/parser/types.py
title: Type parser mixin.
summary: >-
Parse type annotations and synthesize default values for typed declarations.Classes
TypeParserMixin(ParserMixinBase)
title: Type parser mixin.Methods
is_type_alias_decl_start(self) -> bool
title: Return whether the current token starts a type alias.
returns:
type: boolparse_type_alias_decl(self) -> None
title: Parse one top-level type alias declaration.parse_type(self, *, allow_template_vars: bool=True, allow_union: bool=False, type_context: TypeUseContext=TypeUseContext.GENERAL) -> astx.DataType
title: Parse a type annotation.
parameters:
allow_template_vars:
type: bool
allow_union:
type: bool
type_context:
type: TypeUseContext
returns:
type: astx.DataType