Commits

hagge  committed 9454556

dart generator fixes

  • Participants
  • Parent commits 4dee497

Comments (0)

Files changed (1)

File maven/protocol-generator-plugin/src/main/scripts/dart_generator.rb

   def library(structs,name)
     wi("library #{name};")
     wi("import '../firebase/firebase_api.dart';")
+    wi("part '#{name}_protocol_object_factory'")
     wi("part 'enums.dart';");
     structs.each do |struct|
       wi("part '#{dartfile(struct.name)}';",0)
 
   end
   def object_factory(structs, version,library)
-    wi("part of #{library}")
+    wi("part of #{library};")
     wi("class #{camelcasetype(library)}ProtocolObjectFactory extends ProtocolObjectFactory {")
     wi("int version() {",1)
     wi("return #{version};",2)