Skip to content

Commit

Permalink
refactor: structure
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 10, 2022
1 parent 018ca94 commit a47a3f2
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
Expand Up @@ -4,7 +4,7 @@ use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
parser::{value::is_math_function, BlockContentsGrammar, Ctx},
parser::{values_and_units::is_math_function, BlockContentsGrammar, Ctx},
Parse,
};

Expand Down
8 changes: 4 additions & 4 deletions crates/swc_css_parser/src/parser/mod.rs
Expand Up @@ -8,14 +8,14 @@ use crate::{error::Error, Parse};

#[macro_use]
mod macros;
mod at_rule;
mod base;
mod at_rules;
pub mod input;
mod selector;
mod selectors;
mod syntax;
#[cfg(test)]
mod tests;
mod util;
mod value;
mod values_and_units;

pub type PResult<T> = Result<T, Error>;

Expand Down
2 changes: 0 additions & 2 deletions crates/swc_css_parser/src/parser/selector/tests.rs

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion crates/swc_css_parser/src/parser/value/tests.rs

This file was deleted.

Expand Up @@ -6,8 +6,6 @@ use crate::{
error::{Error, ErrorKind},
Parse,
};
#[cfg(test)]
mod tests;

impl<I> Parser<I>
where
Expand Down

0 comments on commit a47a3f2

Please sign in to comment.