Skip to content

Commit 16c2379

Browse files
committed
Handle ClassSuperNode types
1 parent d159b40 commit 16c2379

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

rust/ruby-rbs/build.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,19 @@ fn generate(config: &Config) -> Result<(), Box<dyn Error>> {
125125
)?;
126126
writeln!(file, " }}")?;
127127
}
128+
"rbs_ast_declarations_class_super" => {
129+
writeln!(
130+
file,
131+
" pub fn {}(&self) -> ClassSuperNode {{",
132+
field.name
133+
)?;
134+
writeln!(
135+
file,
136+
" ClassSuperNode {{ parser: self.parser, pointer: unsafe {{ (*self.pointer).{} }} }}",
137+
field.name
138+
)?;
139+
writeln!(file, " }}")?;
140+
}
128141
"rbs_ast_symbol" => {
129142
writeln!(file, " pub fn {}(&self) -> RBSSymbol {{", field.name)?;
130143
writeln!(

0 commit comments

Comments
 (0)