use crate::nodes::InnerNode;
use crate::source::Range;
/// Represents a `super` call without arguments and parentheses
///
/// It's different from `super()` as it implicitly forwards current arguments
#[derive(Debug, Clone, PartialEq)]
pub struct ZSuper {
/// Location of the `super` keyword
///
/// ```text
/// super
/// ~~~~~
/// ```
pub expression_l: Range,
}
impl InnerNode for ZSuper {
fn expression(&self) -> &Range {
&self.expression_l
}
fn inspected_children(&self, _indent: usize) -> Vec<String> {
vec![]
}
fn str_type(&self) -> &'static str {
"zsuper"
}
fn print_with_locs(&self) {
println!("{}", self.inspect(0));
self.expression_l.print("expression");
}
}