Added logic to handle lib & class declaration

This commit is contained in:
2021-10-27 18:30:22 +02:00
parent 793ca62ddd
commit 2b02341336
23 changed files with 292 additions and 33 deletions

View 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