API reference
python:astx:astx.borrows.BorrowArgument
class BorrowArgument
BorrowArgument(source: DataType, access: BorrowAccess, *, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/borrows.py:137
Borrow a place for a call.
Attributes
-
kind — Kind of syntax node.; Type: ASTKind
-
source — Place whose storage is borrowed.; Type: DataType
-
access — Access required for the call.; Type: BorrowAccess
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize a borrow operand.
-
get_struct — Represent a borrow operand with its access mode.