Create AtRule struct
This commit is contained in:
parent
6271da50eb
commit
225526a239
@ -1,6 +1,18 @@
|
|||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::fmt::{self, Display};
|
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)]
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||||
pub enum AtRuleKind {
|
pub enum AtRuleKind {
|
||||||
// SASS specific @rules
|
// SASS specific @rules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user