Refactor assmebling proto files to avoid code duplication

This commit is contained in:
Wojciech Tyczynski
2016-03-11 11:12:59 +01:00
parent e5748a44d6
commit 0db2012039
7 changed files with 43 additions and 80 deletions

View File

@@ -170,7 +170,7 @@ func Run(g *Generator) {
"public",
)
c.Verify = g.Common.VerifyOnly
c.FileTypes["protoidl"] = protoIDLFileType{}
c.FileTypes["protoidl"] = NewProtoFile()
if err != nil {
log.Fatalf("Failed making a context: %v", err)