-
Notifications
You must be signed in to change notification settings - Fork 49
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
refactor: remove unnecessary stuff #198
base: master
Are you sure you want to change the base?
Conversation
word += this.requiredSpace(this.content(next)); | ||
this.position ++; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need this code anymore, we already handle this case (based on history aded33a)
4b30cdb
to
87e1dac
Compare
throws('misplaced parenthesis', ':not(', 'Expected a closing parenthesis.'); | ||
throws('misplaced parenthesis (2)', ':not)', 'Expected an opening parenthesis.'); | ||
throws('misplaced parenthesis (3)', ':not((', 'Expected a closing parenthesis.'); | ||
throws('misplaced parenthesis (4)', ':not))', 'Expected an opening parenthesis.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many errors was broken (throw invalid error on (
and )
) because we don't validate message
this.error('Misplaced parenthesis.', { | ||
index: this.nextToken[TOKEN.START_POS], | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need this, error should be throw in parentheses
function
87e1dac
to
db2651b
Compare
return node; | ||
} else { | ||
this.unexpected(); | ||
let nameRaw = this.content(this.tokens[this.position + 1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need isNamedCombinator
, we already do this in combinator()
db2651b
to
c2d56fd
Compare
Ready for review and need merge asap to continue work (avoid problem with merge) |
t.deepEqual(tree.nodes[0].nodes[0].insensitive, false); | ||
t.deepEqual(tree.nodes[0].nodes[0].raws.insensitiveFlag, 'qwer'); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just rename and add more, nothing changes
Is this good to merge, @evilebottnawi ? |
@jonathantneal no, i think here we have breaking change here, let's keep open for next major release |
Include:
No breaking changes(wrong)