microsoft / vscode-css-languageservice

CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
MIT License
317 stars 176 forks source link

Traverse Stylesheet #323

Closed Viijay-Kr closed 2 months ago

Viijay-Kr commented 1 year ago

Is there a way to traverse the AST returned by the parser ? Does this library expose any function to do that ?

If not is there any plan to include style sheet traversal logic inside the scope of this project or At least exposing StyleSheet type definitions would be useful to create custom traversal logic outside the scope of this project

aeschli commented 2 months ago

Sorry, there are no plans to make the AST public API. It's a lot of work to polish/document all the API and later to maintain it.