Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【bug】babel-plugin-exercize parser #12

Open
jppau opened this issue Oct 8, 2024 · 0 comments
Open

【bug】babel-plugin-exercize parser #12

jppau opened this issue Oct 8, 2024 · 0 comments

Comments

@jppau
Copy link

jppau commented Oct 8, 2024

如果 locations: true 想要保留 AST 在源码中的位置信息,会导致调用this.finishNode({value: 'guang'},'GuangStatement')时缺失位置信息,需要将{value: 'guang'}改为传入的参数node,node中包含了位置信息。

截屏2024-10-08 17 19 00 截屏2024-10-08 17 18 10
@jppau jppau changed the title babel-plugin-exercize parser报错 【bug】babel-plugin-exercize parser Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant