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

What is type: 'Raw' !? #110

Open
kristianmandrup opened this issue Dec 7, 2016 · 0 comments
Open

What is type: 'Raw' !? #110

kristianmandrup opened this issue Dec 7, 2016 · 0 comments

Comments

@kristianmandrup
Copy link

Trying to debug and understand how to use the append filter in order to add a method to a class body. I see that results is an Array of AST nodes. What is appended (pushed) is:

{ type: 'Raw', raw: '5' }

So what is valid in this context!?

  Node {
    type: 'Literal',
    start: 7,
    end: 8,
    loc: SourceLocation { start: [Object], end: [Object] },
    value: 4,
    raw: '4' } ] ARGS: [ 5, 6 ]
resultNode { type: 'Raw', raw: '5' }
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