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

Make AST nodes castable to string #572

Merged
merged 1 commit into from May 12, 2022
Merged

Conversation

stof
Copy link
Member

@stof stof commented Apr 24, 2022

I initially omitted that string representation when porting the AST, thinking it was only about providing a better debugging experience. But I was wrong. The evaluator casts the AST to string to provide recommendations in some deprecation warnings.

As part of that porting work, I went over the string representation of all AST nodes in dart-sass, which made me discover a few issues in their logic (the string representation is not covered by the testsuite, except for cases used by some deprecation warnings in sass-spec, but that's mostly expression nodes). The fixes submitted in sass/dart-sass#1682 are already included in this PR.

The evaluator casts the AST to string to provide recommendations in some
deprecation warnings.
@stof stof merged commit e4dbc63 into scssphp:master May 12, 2022
@stof stof deleted the stringable_ast branch May 12, 2022 17:40
@stof stof added this to the 2.0 milestone Sep 2, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant