Example #1
0
 public RustInstrCreateGen(GeneratorOptions generatorOptions)
 {
     idConverter           = RustIdentifierConverter.Create();
     this.generatorOptions = generatorOptions;
     docWriter             = new RustDocCommentWriter(idConverter);
     gen      = new InstrCreateGenImpl(idConverter, docWriter);
     genNames = GenCreateNameArgs.RustNames;
 }
Example #2
0
 public RustInstrCreateGen(GeneratorContext generatorContext)
     : base(generatorContext.Types)
 {
     this.generatorContext = generatorContext;
     idConverter           = RustIdentifierConverter.Create();
     docWriter             = new RustDocCommentWriter(idConverter);
     gen      = new InstrCreateGenImpl(genTypes, idConverter, docWriter);
     genNames = GenCreateNameArgs.RustNames;
 }