Skip to content

All walk functions registered with registerWalker do not work #50

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

Closed
1 of 4 tasks
nuintun opened this issue Mar 13, 2018 · 2 comments
Closed
1 of 4 tasks

All walk functions registered with registerWalker do not work #50

nuintun opened this issue Mar 13, 2018 · 2 comments

Comments

@nuintun
Copy link

nuintun commented Mar 13, 2018

  • Node Version: 9.8.0
  • NPM Version: 5.6.0
  • postcss-values-parser Version: 1.4.0

This issue is regarding a problem with:

  • Standard CSS
  • LESS
  • SCSS
  • SASS

All walk functions (eg: walkFunctionNodes, walkComments) registered with registerWalker do not work.

@shellscape
Copy link
Owner

False

@nuintun
Copy link
Author

nuintun commented Mar 14, 2018

@shellscape Try this

const source = '/*1*/ 5px /* 2 */';
const ast = new Parser(source).parse();

ast.first.walkComments(node => {
  console.log(node.value);
});

RunKit Example

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

2 participants