Sprint 2 Step 11: Python generator - Annotation output

This commit is contained in:
Bill
2026-02-06 19:56:57 -07:00
parent 8746e0f43f
commit f094c14ea7
3 changed files with 104 additions and 0 deletions

View File

@@ -161,6 +161,12 @@ public:
std::string visitFunction(const Function* function) override {
std::ostringstream oss;
// Process annotations first (these are in the "annotations" role)
auto annotations = function->getChildren("annotations");
for (const auto* annotation : annotations) {
oss << generate(annotation) << "\n";
}
// Generate function signature
oss << "def " << function->name << "(";