benjamn / benjamn/ast-types

Decorator visitor can't work

Open
#694 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
194
Avg merge
22h 43m
Merged PRs (30d)
10

Description

Link to minimal reproduction
https://codesandbox.io/s/intelligent-bas-n2hb7?file=/src/index.js:102-233

What is expected?
![image](https://user-images.githubusercontent.com/11925053/147387179-a50bc10b-c7a8-441f-a0e9-d739876e92bc.png)

According to AST, expect the console of visitDecorator to be executed

What is actually happening?
The console of visitDecorator is not executed

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CodeSandbox minimal reproduction, especially src/index.js:102-233, and inspect how the AST visitor handles the decorator node. Run the reproduction to confirm that visitDecorator is not executed. Done means decorator traversal reaches visitDecorator and produces the expected console output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
compilers, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.