astx.ffi

astx.ffi

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

title: ASTx public FFI AST types.
summary: >-
  Provide the minimal pointer and opaque-handle type nodes that hosts can use
  when targeting a stable public FFI layer.

Classes

PointerType(AnyType)

title: Stable public FFI pointer type.
attributes:
  pointee_type:
    type: astx.DataType | None

Methods

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

OpaqueHandleType(AnyType)

title: Stable public FFI opaque-handle type.
attributes:
  handle_name:
    type: str

Methods

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