#![allow(clippy::wildcard_imports, clippy::enum_glob_use)]
use super::*;
impl Checker for TclCode {
fn is_comment(node: &Node) -> bool {
node.kind_id() == Tcl::Comment
}
fn is_func_space(node: &Node) -> bool {
matches!(node.kind_id().into(), Tcl::SourceFile | Tcl::Procedure)
}
fn is_func(node: &Node) -> bool {
node.kind_id() == Tcl::Procedure
}
fn is_closure(_: &Node) -> bool {
false
}
fn is_call(node: &Node) -> bool {
node.kind_id() == Tcl::Command
}
fn is_non_arg(_: &Node) -> bool {
false
}
impl_simple_is_string!(Tcl, QuotedWord, BracedWord, BracedWordSimple);
impl_is_else_if_clause!(Tcl, Elseif);
}