API reference

python:astx:astx.StructDeclStmt

class StructDeclStmt

StructDeclStmt(name: str, attributes: Iterable[VariableDeclaration] | ASTNodes[VariableDeclaration] = [], decorators: Iterable[Expr] | ASTNodes[Expr] = [], methods: Iterable[FunctionDef] | ASTNodes[FunctionDef] = [], visibility: VisibilityKind = VisibilityKind.public, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)

Source: packages/astx/src/astx/classes.py:455

Declared as: python:astx:astx.classes.StructDeclStmt

AST class for struct declaration.

Attributes

Methods

Attributes

Search documentation

Type to search.