Skip to content

Commit 5ed8ac3

Browse files
committed
Handle ClassSuperNode types (#63)
1 parent 01837af commit 5ed8ac3

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
@@ -126,6 +126,19 @@ fn generate(config: &Config) -> Result<(), Box<dyn Error>> {
126126
)?;
127127
writeln!(file, " }}")?;
128128
}
129+
"rbs_ast_declarations_class_super" => {
130+
writeln!(
131+
file,
132+
" pub fn {}(&self) -> ClassSuperNode {{",
133+
field.name
134+
)?;
135+
writeln!(
136+
file,
137+
" ClassSuperNode {{ parser: self.parser, pointer: unsafe {{ (*self.pointer).{} }} }}",
138+
field.name
139+
)?;
140+
writeln!(file, " }}")?;
141+
}
129142
"rbs_ast_symbol" => {
130143
writeln!(file, " pub fn {}(&self) -> RBSSymbol {{", field.name)?;
131144
writeln!(

0 commit comments

Comments
 (0)