use crate::ast;
use crate::ast::{AstNode, support};
pub trait HasName: AstNode {
fn name(&self) -> Option<ast::Name> {
support::child(self.syntax())
}
}
pub trait HasArgList: AstNode {
fn arg_list(&self) -> Option<ast::ArgList> {
support::child(self.syntax())
}
}
pub trait HasIfExists: AstNode {
fn if_exists(&self) -> Option<ast::IfExists> {
support::child(self.syntax())
}
}
pub trait HasIfNotExists: AstNode {
fn if_not_exists(&self) -> Option<ast::IfNotExists> {
support::child(self.syntax())
}
}