def pretty_print(node_):
    text = ""
    text = text + constants.INTERRUPTIBLE_KW
    text = text + get_scope(node_)+ '\n'
    text = text + localprotocolblock_pretty_print(get_block_child(node_)) + '\n'
    text = text + constants.WITH_KW + ' {\n'
    if has_throw_child(node_):
        text = text + localthrow_pretty_print(get_throw_child(node_))
    for c in get_catch_children(node_):
        text = text + localcatch_pretty_print(c) + '\n'
    text = text + '}'
    return text
Exemple #2
0
def pretty_print(node_):
    text = ""
    text = text + constants.INTERRUPTIBLE_KW
    text = text + get_scope(node_) + '\n'
    text = text + localprotocolblock_pretty_print(
        get_block_child(node_)) + '\n'
    text = text + constants.WITH_KW + ' {\n'
    if has_throw_child(node_):
        text = text + localthrow_pretty_print(get_throw_child(node_))
    for c in get_catch_children(node_):
        text = text + localcatch_pretty_print(c) + '\n'
    text = text + '}'
    return text
def pretty_print(node_):
    return localprotocolblock_pretty_print(get_block_child(node_))
Exemple #4
0
def pretty_print(node_):
    return localprotocolblock_pretty_print(get_block_child(node_))