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

feat(selector-parser): make stringifySelectorAst accept readonly #30

Merged
merged 5 commits into from
Jul 18, 2021

Conversation

barak007
Copy link
Collaborator

@barak007 barak007 commented Jul 13, 2021

Readonly everywhere.
This also fix a bug that the printer of pseudo-class nth was mutating the node.

fixes: #26

@barak007 barak007 requested a review from idoros July 13, 2021 19:49
@idoros
Copy link
Collaborator

idoros commented Jul 13, 2021

Good catch. Maybe add a test for the type?

- extract Immutable types to types module
- replace DeepReadonly ast top Immutable prefix
- add spec file for stringify
- check that Immutable types are accepted
- NthWithSelectorList -> NthSelectorList
- NamespacedNodes -> NamespacedNode
- add immutable types for the rest of the ast
@idoros idoros merged commit 005834b into master Jul 18, 2021
@idoros idoros deleted the barak/readonly-stringify branch July 18, 2021 08:21
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.

stringify readonly
2 participants