public RustJSInstrCreateGen(GeneratorOptions generatorOptions) { idConverter = RustJSIdentifierConverter.Create(); rustIdConverter = RustIdentifierConverter.Create(); this.generatorOptions = generatorOptions; docWriter = new RustDocCommentWriter(idConverter, "."); gen = new Rust.InstrCreateGenImpl(idConverter, docWriter); genNames = new Rust.GenCreateNameArgs { CreatePrefix = "create", Register = "Reg", Memory = "Mem", Int32 = "I32", UInt32 = "U32", Int64 = "I64", UInt64 = "U64", }; sb = new StringBuilder(); }
public RustJSInstrCreateGen(GeneratorContext generatorContext) : base(generatorContext.Types) { this.generatorContext = generatorContext; idConverter = RustJSIdentifierConverter.Create(); rustIdConverter = RustIdentifierConverter.Create(); docWriter = new RustDocCommentWriter(idConverter, ".", ".", ".", "."); gen = new Rust.InstrCreateGenImpl(genTypes, idConverter, docWriter); genNames = new Rust.GenCreateNameArgs { CreatePrefix = "create", Register = "Reg", Memory = "Mem", Int32 = "I32", UInt32 = "U32", Int64 = "I64", UInt64 = "U64", }; sb = new StringBuilder(); }