diff --git a/ifex/model/ifex_ast.py b/ifex/model/ifex_ast.py index d8c5aa2..452713f 100644 --- a/ifex/model/ifex_ast.py +++ b/ifex/model/ifex_ast.py @@ -633,10 +633,12 @@ class Namespace: @dataclass -class AST(Namespace): +class AST(): """ Dataclass used to represent root element in a IFEX AST. - Behaviour is inherited from Namespace class. """ - - pass + name: Optional[str] = str() # Represents name of file. Usually better to name the Namespaces and Interfaces + major_version: Optional[int] = None # Version of file. Usually better to version Interfaces, and Namespaces! + minor_version: Optional[int] = None # ------ " ------ + includes: Optional[List[Include]] = field(default_factory=EmptyList) + namespaces: Optional[List[Namespace]] = field(default_factory=EmptyList)