Lines Matching defs:clinic

109     if clinic:
111 filename = clinic.filename
112 if getattr(clinic, 'block_parser', None) and (line_number is None):
113 line_number = clinic.block_parser.line_number
389 def render(self, clinic, signatures):
614 def render(self, clinic, signatures):
621 return self.render_function(clinic, function)
1166 if methoddef_define and f.full_name not in clinic.ifndef_symbols:
1167 clinic.ifndef_symbols.add(f.full_name)
1310 def render_function(self, clinic, f):
1435 for name, destination in clinic.destination_buffers.items():
1463 if clinic.line_prefix:
1464 s = indent_all_lines(s, clinic.line_prefix)
1465 if clinic.line_suffix:
1466 s = suffix_all_lines(s, clinic.line_suffix)
1470 return clinic.get_destination('block').dump()
1515 it may only contain clinic.Module, clinic.Class, and
1516 clinic.Function objects. At the moment it should
1809 def __init__(self, name, type, clinic, *args):
1812 self.clinic = clinic
1823 filename = clinic.filename
1905 clinic = None
1972 self.add_destination("file", "file", "{dirname}/clinic/{basename}.h")
2016 global clinic
2017 clinic = self
2061 block = Block("", dsl_name="clinic", output=output)
2117 the module object could actually be self (a clinic object).
2160 # exit quickly if there are no clinic markers in the file
2165 clinic = Clinic(language, verify=verify, filename=filename)
2166 cooked = clinic.parse(raw)
2182 def __init__(self, clinic):
2202 return "<clinic.Module " + repr(self.name) + " at " + str(id(self)) + ">"
2217 return "<clinic.Class " + repr(self.name) + " at " + str(id(self)) + ">"
2361 return '<clinic.Function ' + self.name + '>'
2401 return '<clinic.Parameter ' + self.name + '>'
2688 parameter is a clinic.Parameter instance.
3374 # sorry, clinic can't support preallocated buffers
3766 parameter is a clinic.Parameter instance.
3860 function is a clinic.Function instance.
4046 def __init__(self, clinic):
4047 self.clinic = clinic
4086 module, cls = self.clinic._module_and_class(fields)
4103 module, cls = self.clinic._module_and_class(fields)
4122 self.clinic.__dict__[name] = value
4126 self.clinic.add_destination(name, *args)
4130 self.clinic.get_destination(name).clear()
4135 fd = self.clinic.destination_buffers
4138 preset = self.clinic.presets.get(destination)
4145 self.clinic.destination_buffers_stack.append(fd.copy())
4149 if not self.clinic.destination_buffers_stack:
4151 previous_fd = self.clinic.destination_buffers_stack.pop()
4161 d = self.clinic.get_destination_buffer(destination)
4173 self.block.output.append(self.clinic.get_destination(name).dump())
4204 block_start = self.clinic.block_parser.line_number
4206 for line_number, line in enumerate(lines, self.clinic.block_parser.block_start_line_number):
4214 block.output.extend(self.clinic.language.render(clinic, block.signatures))
4297 module, cls = self.clinic._module_and_class(fields)
4311 module, cls = self.clinic._module_and_class(fields)
4356 module, cls = self.clinic._module_and_class(fields)
5160 # that implements the clinic parser
5164 # "clinic", handles the Clinic DSL
5167 parsers = {'clinic' : DSLParser, 'python': PythonParser}
5170 clinic = None
5177 sys.exit("Error: clinic.py requires Python 3.3 or greater.")
5187 For more information see https://docs.python.org/3/howto/clinic.html""")