Be sure to generate classes for empty structs

Closes #131
This commit is contained in:
Alex Crichton
2018-04-16 08:05:18 -07:00
parent f61e12af91
commit 5efde3abe9
4 changed files with 37 additions and 2 deletions

View File

@ -415,6 +415,7 @@ impl Program {
pub fn shared(&self) -> shared::Program {
shared::Program {
exports: self.exports.iter().map(|a| a.shared()).collect(),
structs: self.structs.iter().map(|a| a.name.as_ref().to_string()).collect(),
enums: self.enums.iter().map(|a| a.shared()).collect(),
imports: self.imports.iter().map(|a| a.shared()).collect(),
version: shared::version(),