(
&self,
_module: &ModuleDef,
procedure: &spacetimedb_schema::def::ProcedureDef,
)
| 599 | } |
| 600 | |
| 601 | fn generate_procedure_file( |
| 602 | &self, |
| 603 | _module: &ModuleDef, |
| 604 | procedure: &spacetimedb_schema::def::ProcedureDef, |
| 605 | ) -> OutputFile { |
| 606 | let mut output = String::new(); |
| 607 | self.write_header_comment(&mut output); |
| 608 | self.write_standard_includes(&mut output); |
| 609 | |
| 610 | writeln!(output).unwrap(); |
| 611 | writeln!(output, "namespace {} {{", self.namespace).unwrap(); |
| 612 | writeln!(output).unwrap(); |
| 613 | |
| 614 | writeln!(output, "// Procedure: {}", procedure.name).unwrap(); |
| 615 | writeln!( |
| 616 | output, |
| 617 | "// This file is intentionally minimal - procedure implementation" |
| 618 | ) |
| 619 | .unwrap(); |
| 620 | writeln!(output, "// is handled by the SpacetimeDB framework.").unwrap(); |
| 621 | |
| 622 | writeln!(output, "}} // namespace {}", self.namespace).unwrap(); |
| 623 | OutputFile { |
| 624 | filename: format!("{}.g.h", procedure.name), |
| 625 | code: output, |
| 626 | } |
| 627 | } |
| 628 | |
| 629 | fn generate_global_files(&self, _module: &ModuleDef, _options: &CodegenOptions) -> Vec<OutputFile> { |
| 630 | vec![] |
nothing calls this directly
no test coverage detected