MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / debug

Method debug

bindings/frankenswig/struct.py:92–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 return self
91
92 def debug(self):
93 args = [Var(self.type.mut_ref(), 'this')]
94 inner_args = [Var(_stringliteral.type, '"{:?}"')] + args
95 type = self.program.string.type
96 self.methods.append(Method(type, self.c_name, "debug", args,
97 make_safe_call(type, 'format!', inner_args), docs=f'Create a human-readable representation of a {self.type.to_python()}',
98 pyname="__repr__"))
99
100 def clone(self):
101 self.method(self.type, "clone", [], docs=f"Deep-copy a {self.type.to_python()}", self_ref=True)

Callers 12

generate.pyFile · 0.80
vecMethod · 0.80
generate_bracketFunction · 0.80
wait_for_empty_queueFunction · 0.80
pad_teams_power_of_twoFunction · 0.80
queue_matchFunction · 0.80
queue_initial_roundFunction · 0.80
run_tournamentFunction · 0.80
start_turnMethod · 0.80
get_next_messageMethod · 0.80
send_messageMethod · 0.80
player_handlerMethod · 0.80

Calls 5

VarClass · 0.85
MethodClass · 0.85
make_safe_callFunction · 0.85
mut_refMethod · 0.45
to_pythonMethod · 0.45

Tested by

no test coverage detected