Skip to content
Discussion options

You must be logged in to vote

Since you need to get the parent-child relationship.

Assume there is a macro and trait that can be used to create indextree directly.

Later, you can test it in visit_jsx_expression_container

use std::{fs, path::Path};

use indextree::{Arena, NodeId};
use oxc_allocator::Allocator;
use oxc_ast::{
    AstKind,
    ast::{JSXExpression, JSXExpressionContainer},
};
use oxc_ast_visit::{Visit, walk};
use oxc_codegen::Codegen;
use oxc_parser::Parser;
use oxc_span::SourceType;

use your_crate::tree_builder;
use your_crate2::{TreeBuilder, get_static_expression};

#[tree_builder]
struct TestVisitor<'a> {}

impl<'a> TreeBuilder<'a> for TestVisitor<'a> {
}

impl<'a> Visit<'a> for TestVisitor<'a> {
    fn 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by f24WAKyvNT53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants