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

Added suggested performance optimization #94

Merged
merged 2 commits into from Nov 5, 2017
Merged

Conversation

bbtgp
Copy link
Contributor

@bbtgp bbtgp commented Nov 4, 2017

I switched the expressions around in the conditions for class.js and variable.js and removed the T_CLASS check that was not needed.

Cheers!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 94.437% when pulling f97118f on bbtgp:dust into c353382 on glayzzle:master.

@ichiriac
Copy link
Member

ichiriac commented Nov 4, 2017

Hi @bbtgp,

Many thanks 👍

There will be just a little problem on graceful mode (not sure, not tested yet). I don't want to abuse your time so tell me if you're done, I can patch it myself if needed.

Copy link
Member

@ichiriac ichiriac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just playing with review tool on github - Here the else branch was introduced, it will lack the node in case of parsing errors on graceful mode

if(this.token === this.tok.T_OBJECT_OPERATOR || this.token === this.tok.T_DOUBLE_COLON) {
this.error();
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possible infinite loop and node may missing in graceful mode

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 94.437% when pulling 2bdc2e6 on bbtgp:dust into c353382 on glayzzle:master.

@ichiriac
Copy link
Member

ichiriac commented Nov 4, 2017

Should pass now, I just need to add some regression tests on it, I'll merge it soon and release it under 2.1.1 as a bugfix

@ichiriac ichiriac merged commit 2d8f68b into glayzzle:master Nov 5, 2017
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

3 participants