We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370a976 commit 01837afCopy full SHA for 01837af
1 file changed
rust/ruby-rbs/build.rs
@@ -117,6 +117,15 @@ fn generate(config: &Config) -> Result<(), Box<dyn Error>> {
117
writeln!(file, " unsafe {{ (*self.pointer).{} }}", field.name)?;
118
writeln!(file, " }}")?;
119
}
120
+ "rbs_ast_comment" => {
121
+ writeln!(file, " pub fn {}(&self) -> CommentNode {{", field.name)?;
122
+ writeln!(
123
+ file,
124
+ " CommentNode {{ parser: self.parser, pointer: unsafe {{ (*self.pointer).{} }} }}",
125
+ field.name
126
+ )?;
127
+ writeln!(file, " }}")?;
128
+ }
129
"rbs_ast_symbol" => {
130
writeln!(file, " pub fn {}(&self) -> RBSSymbol {{", field.name)?;
131
writeln!(
0 commit comments