MCPcopy
hub / github.com/rocky/python-uncompyle6 / default

Method default

uncompyle6/semantics/linemap.py:44–49  ·  view source on GitHub ↗

Augment default-write routine to record line number changes.

(self, node)

Source from the content-addressed store, hash-verified

42 # Note n_expr needs treatment too
43
44 def default(self, node):
45 """Augment default-write routine to record line number changes."""
46 if hasattr(node, "linestart"):
47 if node.linestart:
48 self.source_linemap[self.current_line_number] = node.linestart
49 return super().default(node)
50
51 def n_LOAD_CONST(self, node):
52 if hasattr(node, "linestart"):

Callers 15

call36_dictFunction · 0.45
n_except_suite_finalizeFunction · 0.45
n_formatted_valueFunction · 0.45
n_formatted_value_attrFunction · 0.45
n_assignMethod · 0.45
n_assign2Method · 0.45
n_assign3Method · 0.45
n_attributeMethod · 0.45
n_delete_subscriptMethod · 0.45
n_elifelsestmtrMethod · 0.45
n_except_cond2Method · 0.45
n_ifelsestmtrMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected