Conversation
Member
Author
lydell
approved these changes
Feb 26, 2018
j-f1
reviewed
Feb 26, 2018
| } | ||
| &-KeepSelector & .KeepClassSelector { | ||
| } | ||
| &-100.200 { |
| } | ||
| case "selector-tag": { | ||
| const parentNode = path.getParentNode(); | ||
| const index = parentNode && parentNode.nodes.indexOf(node); |
Member
There was a problem hiding this comment.
I think you can get this with path.getKey().
Member
Author
There was a problem hiding this comment.
@j-f1 I can't find path.getKey() in fast-path.js 😕
Member
There was a problem hiding this comment.
Oops, it’s getName. However, it always returns a string.
Member
Author
There was a problem hiding this comment.
@j-f1 we can't get name preview node without getting index current node, approve this PR?
Member
There was a problem hiding this comment.
@evilebottnawi I didn’t quite understand your comment; can you clarify please?
f6b33d5 to
7e0a1bf
Compare
Member
Author
|
/cc @j-f1 feel free to merge, i can be inaccessible in the near future (1-2 days) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #4044