Create AtRule struct

This commit is contained in:
ConnorSkees 2020-01-25 13:05:40 -05:00
parent 6271da50eb
commit 225526a239

View File

@ -1,6 +1,18 @@
use std::convert::TryFrom;
use std::fmt::{self, Display};
use crate::common::Pos;
use crate::function::Function;
use crate::mixin::Mixin;
pub(crate) enum AtRule {
Error(Pos, String),
Warn(Pos, String),
Debug(Pos, String),
Mixin(String, Mixin),
Function(String, Function),
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum AtRuleKind {
// SASS specific @rules