MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / Instruction

Class Instruction

etc/scripts/docenizers/docenizer-python.py:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class Instruction(object):
35 def __init__(self, name, names, tooltip, body):
36 self.name = name
37 self.names = names
38 self.tooltip = tooltip.rstrip(': ,')
39 self.body = body
40
41 def __str__(self):
42 return f"{self.name} = {self.tooltip}\n{self.body}"
43
44
45def get_url_for_instruction(instr):

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected