INNER CODE UNIT · Python

klass

OverShifted/OverEngine · utils/wren_doc_gen.py:90

	def klass(self, klass: Class):
		self.module.add_class(klass)
		self.flush(True)
	
	def method(self, method):
		self.module.classes[-1].add_method(method)
		self.flush(False)

	def static_method(self, method):
		self.module.classes[-1].add_static_method(method)

	def doc(self, stripped_line):
		self.docs += stripped_line[3:].strip() + ' '

	def flush(self, flush_class):
		if self.docs:
			self.docs = self.docs.strip()
			if flush_class:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…