astx.structs

astx.structs

Source: packages/astx/src/astx/structs.py

title: ASTx struct AST nodes.

Classes

StructType(AnyType)

title: Named struct type reference.
attributes:
  name:
    type: str
  resolved_name:
    type: str | None
  module_key:
    type: str | None
  qualified_name:
    type: str | None

Methods

get_struct(self, simplified: bool=False) -> astx.base.ReprStruct
title: Build one repr structure for a struct type reference.
parameters:
  simplified:
    type: bool
returns:
  type: astx.base.ReprStruct

FieldAccess(astx.DataType)

title: Field access expression.
attributes:
  value:
    type: astx.AST
  field_name:
    type: str
  type_:
    type: AnyType

Methods

get_struct(self, simplified: bool=False) -> astx.base.ReprStruct
title: Build one repr structure for a field access expression.
parameters:
  simplified:
    type: bool
returns:
  type: astx.base.ReprStruct