def __init__(self, mode):
    self.mode = mode
    self.parent = None
    self.last_text = ''
    self.last_word = ''
    self.declaration_statement = False
    self.declaration_assignment = False
    self.in_html_comment = False
    self.multiline_frame = False
    self.if_block = False
    self.else_block = False
    self.do_block = False
    self.do_while = False
    self.in_case = False
    self.in_case_statement = False
    self.case_body = False
    self.indentation_level = 0
    self.line_indent_level = 0
    self.start_line_index = 0
    self.ternary_depth = 0
    self.had_comment = False
def __init__(self, mode):
    self.mode = mode
    self.parent = None
    self.last_text = 
    self.last_word = 
    self.declaration_statement = False
    self.declaration_assignment = False
    self.in_html_comment = False
    self.multiline_frame = False
    self.if_block = False
    self.else_block = False
    self.do_block = False
    self.do_while = False
    self.in_case = False
    self.in_case_statement = False
    self.case_body = False
    self.indentation_level = 0
    self.line_indent_level = 0
    self.start_line_index = 0
    self.ternary_depth = 0
    self.had_comment = False