INNER CODE UNIT · Python

flush

OverShifted/OverEngine · utils/wren_doc_gen.py:104

	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)
			stripped_line = line.strip()
			indent = WrenParser.indent_level(line)

			# classes
			if indent == 0:
				if stripped_line.startswith("foreign class"):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…