API reference
python:astx:astx.classes.EnumDeclStmt.__init__
method __init__
__init__(name: str, attributes: Iterable[VariableDeclaration] | ASTNodes[VariableDeclaration] = [], visibility: VisibilityKind = VisibilityKind.public, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/classes.py:381
Initialize EnumDeclStmt instance.
Parameters
-
name — Type: str
-
attributes — Type: Iterable[VariableDeclaration] | ASTNodes[VariableDeclaration]
-
visibility — Type: VisibilityKind
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]