|
1 | | -use crate::component::ExportVariableKind; |
2 | | -use crate::css_utils::{css_to_style, keyframes_to_keyframes_style, optimize_css_block}; |
3 | | -use crate::extract_style::ExtractStyleProperty; |
4 | | -use crate::extract_style::extract_css::ExtractCss; |
5 | | -use crate::extract_style::extract_keyframes::ExtractKeyframes; |
6 | | -use crate::extractor::KeyframesExtractResult; |
7 | | -use crate::extractor::extract_keyframes_from_expression::extract_keyframes_from_expression; |
8 | | -use crate::extractor::{ |
9 | | - ExtractResult, GlobalExtractResult, |
10 | | - extract_global_style_from_expression::extract_global_style_from_expression, |
11 | | - extract_style_from_expression::extract_style_from_expression, |
12 | | - extract_style_from_jsx::extract_style_from_jsx, |
13 | | -}; |
14 | | -use crate::gen_class_name::gen_class_names; |
15 | | -use crate::prop_modify_utils::{modify_prop_object, modify_props}; |
16 | | -use crate::util_type::UtilType; |
17 | 1 | use crate::utils::get_string_by_literal_expression; |
18 | | -use crate::{ExtractStyleProp, ExtractStyleValue}; |
19 | | -use css::disassemble_property; |
20 | | -use css::is_special_property::is_special_property; |
21 | 2 | use oxc_allocator::{Allocator, CloneIn}; |
22 | | -use oxc_ast::ast::ImportDeclarationSpecifier::{self, ImportSpecifier}; |
23 | | -use oxc_ast::ast::JSXAttributeItem::Attribute; |
24 | | -use oxc_ast::ast::JSXAttributeName::Identifier; |
25 | 3 | use oxc_ast::ast::{ |
26 | | - Argument, BindingPatternKind, CallExpression, Expression, ImportDeclaration, |
27 | | - ImportOrExportKind, JSXAttributeValue, JSXElement, Program, PropertyKey, Statement, |
28 | | - VariableDeclarator, WithClause, |
| 4 | + Expression, JSXElement, |
29 | 5 | }; |
30 | 6 | use oxc_ast_visit::VisitMut; |
31 | | -use oxc_ast_visit::walk_mut::{ |
32 | | - walk_call_expression, walk_expression, walk_expression_statement, walk_import_declaration, |
33 | | - walk_jsx_element, walk_object_property, walk_program, walk_string_literal, |
34 | | - walk_variable_declarator, walk_variable_declarators, |
35 | | -}; |
36 | | -use strum::IntoEnumIterator; |
| 7 | +use oxc_ast_visit::walk_mut::walk_expression; |
37 | 8 |
|
38 | 9 | use oxc_ast::AstBuilder; |
39 | 10 | use oxc_span::SPAN; |
40 | | -use std::collections::{HashMap, HashSet}; |
41 | 11 |
|
42 | 12 | pub struct AsVisitor<'a> { |
43 | 13 | ast: AstBuilder<'a>, |
|
0 commit comments