use crate::error::YamlError;
use crate::io::traits::ISource;
use crate::parser::utils::error_builder;
pub struct IndentationErrors;
impl IndentationErrors {
pub fn tabs_not_allowed_yaml_syntax(source: &mut dyn ISource) -> YamlError {
error_builder::forbidden_error(source, "Tabs", "as indentation in YAML")
}
pub fn tabs_not_allowed_flow_collections(source: &mut dyn ISource) -> YamlError {
error_builder::forbidden_error(source, "Tabs", "as indentation in YAML flow collections")
}
pub fn tabs_not_allowed_yaml_block(source: &mut dyn ISource) -> YamlError {
error_builder::tab_indentation_error_yaml(source)
}
}