INNER CODE UNIT · Python

static_method

OverShifted/OverEngine · utils/wren_doc_gen.py:98

	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:
				self.module.classes[-1].docs = self.docs
			else:
				self.module.classes[-1].last_item.docs = self.docs
			self.docs = ""

	def parse(self, source: str):
		for line in source.splitlines():
			line = line.replace('\t', ' ' * 4)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…