Only if verbose.
Chris Pressey
7 years ago
26 | 26 | """ |
27 | 27 | if ast.type == 'ClassDecl': |
28 | 28 | class_id = ast.value |
29 | print " => checking if {} is_a {}".format(state_id, class_id) | |
30 | 29 | state_ast = find_state_defn(alpaca, state_id) |
31 | print " => state ast {}".format(repr(state_ast)) | |
32 | 30 | result = state_defn_is_a(alpaca, state_ast, class_id) |
33 | 31 | if verbose: |
32 | print " => checking if {} is_a {}".format(state_id, class_id) | |
33 | print " => state ast {}".format(repr(state_ast)) | |
34 | 34 | print " => state_defn_is_a={}".format(result) |
35 | 35 | return result |
36 | 36 | elif ast.type in ('StateRefEq', 'StateRefRel'): |