Added logic to handle lib & class declaration
This commit is contained in:
18
src/parser/model/class_ast.py
Normal file
18
src/parser/model/class_ast.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from parser.abc.ast import AST
|
||||
|
||||
from cpl_query.extension.list import List
|
||||
|
||||
|
||||
class ClassAST(AST):
|
||||
|
||||
def __init__(self):
|
||||
AST.__init__(self)
|
||||
self._body = List(AST)
|
||||
|
||||
@property
|
||||
def body(self) -> List['AST']:
|
||||
return self._body
|
||||
|
||||
@body.setter
|
||||
def body(self, value: List['AST']):
|
||||
self._body = value
|
Reference in New Issue
Block a user