X Tutup
Skip to content

Fixed for loops without initializer, condition or post increment#314

Merged
Perryvw merged 5 commits intoTypeScriptToLua:masterfrom
DoctorGester:no-argument-for-fixes
Dec 28, 2018
Merged

Fixed for loops without initializer, condition or post increment#314
Perryvw merged 5 commits intoTypeScriptToLua:masterfrom
DoctorGester:no-argument-for-fixes

Conversation

@DoctorGester
Copy link
Contributor

No description provided.

@DoctorGester DoctorGester changed the title Fixed for loops without initializer, conidition or post increment Fixed for loops without initializer, condition or post increment Dec 27, 2018
result += this.indent + `while(${this.transpileExpression(node.condition)}) do\n`;

const conditionText = node.condition ? this.transpileExpression(node.condition) : "true";
result += this.indent + `while(${conditionText}) do\n`;
Copy link
Member

Choose a reason for hiding this comment

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

Could you insert a space here 👮 : while (${conditionText}) do\n

@Perryvw Perryvw merged commit e8b55ae into TypeScriptToLua:master Dec 28, 2018
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.

2 participants

X Tutup