Compare commits
1 Commits
66d061dfda
...
dec91e0e8d
Author | SHA1 | Date | |
---|---|---|---|
|
dec91e0e8d |
@ -89,12 +89,11 @@ class BlockNode:
|
||||
|
||||
|
||||
class CodeBlock(BlockNode):
|
||||
def __init__(self, header, subtype, arguments):
|
||||
def __init__(self, header, subtype):
|
||||
super().__init__()
|
||||
self.header = header
|
||||
self.lines = None
|
||||
self.subtype = subtype
|
||||
self.arguments = arguments
|
||||
|
||||
def set_lines(self, lines):
|
||||
self.lines = lines
|
||||
|
@ -481,7 +481,7 @@ class Headline:
|
||||
and line.delimiter_type == DelimiterLineType.BEGIN_BLOCK
|
||||
):
|
||||
assert type(current_node) in NON_FINISHED_GROUPS
|
||||
current_node = dom.CodeBlock(line, line.type_data.subtype, line.arguments)
|
||||
current_node = dom.CodeBlock(line, line.type_data.subtype)
|
||||
|
||||
elif isinstance(line, Keyword):
|
||||
logging.warning("Keywords not implemented on `as_dom()`")
|
||||
|
Loading…
Reference in New Issue
Block a user