We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1844f9e commit 6316c79Copy full SHA for 6316c79
1 file changed
rust/ruby-rbs/build.rs
@@ -229,6 +229,15 @@ fn generate(config: &Config) -> Result<(), Box<dyn Error>> {
229
)?;
230
writeln!(file, " }}")?;
231
}
232
+ "rbs_types_block" => {
233
+ writeln!(file, " pub fn {}(&self) -> BlockTypeNode {{", field.name)?;
234
+ writeln!(
235
+ file,
236
+ " BlockTypeNode {{ parser: self.parser, pointer: unsafe {{ (*self.pointer).{} }} }}",
237
+ field.name
238
+ )?;
239
+ writeln!(file, " }}")?;
240
+ }
241
_ => eprintln!("Unknown field type: {}", field.c_type),
242
243
0 commit comments