From 225526a23960417edc6cfce7893eb951195fd9e0 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 25 Jan 2020 13:05:40 -0500 Subject: [PATCH] Create AtRule struct --- src/atrule.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/atrule.rs b/src/atrule.rs index 3f2e25e..529c844 100644 --- a/src/atrule.rs +++ b/src/atrule.rs @@ -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