(&self, _module: &ModuleDef, reducer: &ReducerDef)
| 579 | } |
| 580 | |
| 581 | fn generate_reducer_file(&self, _module: &ModuleDef, reducer: &ReducerDef) -> OutputFile { |
| 582 | let mut output = String::new(); |
| 583 | self.write_header_comment(&mut output); |
| 584 | self.write_standard_includes(&mut output); |
| 585 | |
| 586 | writeln!(output).unwrap(); |
| 587 | writeln!(output, "namespace {} {{", self.namespace).unwrap(); |
| 588 | writeln!(output).unwrap(); |
| 589 | |
| 590 | writeln!(output, "// Reducer: {}", reducer.name).unwrap(); |
| 591 | writeln!(output, "// This file is intentionally minimal - reducer implementation").unwrap(); |
| 592 | writeln!(output, "// is handled by the SpacetimeDB framework.").unwrap(); |
| 593 | |
| 594 | writeln!(output, "}} // namespace {}", self.namespace).unwrap(); |
| 595 | OutputFile { |
| 596 | filename: format!("{}.g.h", reducer.name), |
| 597 | code: output, |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | fn generate_procedure_file( |
| 602 | &self, |
nothing calls this directly
no test coverage detected