INNER CODE UNIT · Python

add_method

OverShifted/OverEngine · utils/wren_doc_gen.py:42

	def add_method(self, method):
		self.methods.append(method)
		self.last_item = method

	def add_static_method(self, static):
		self.static_methods.append(static)
		self.last_item = static

class Module:
	def __init__(self):
		self.classes = []

	def add_class(self, klass: Class):
		self.classes.append(klass)

def method_from_signature(signature: str):
	is_foreign = signature.startswith("foreign ")
	is_static = "static " in signature

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…