use crate::ast;
use crate::ast::{AstNode, support};
pub trait NameLike: AstNode {}
pub trait HasCreateTable: AstNode {
#[inline]
fn path(&self) -> Option<ast::Path> {
support::child(self.syntax())
}
#[inline]
fn table_arg_list(&self) -> Option<ast::TableArgList> {
support::child(self.syntax())
}
#[inline]
fn persistence(&self) -> Option<ast::Persistence> {
support::child(self.syntax())
}
#[inline]
fn inherits(&self) -> Option<ast::Inherits> {
support::child(self.syntax())
}
}
pub trait HasWithClause: AstNode {
#[inline]
fn with_clause(&self) -> Option<ast::WithClause> {
support::child(self.syntax())
}
}
pub trait HasParamList: AstNode {
fn param_list(&self) -> Option<ast::ParamList> {
support::child(self.syntax())
}
}