harmonyc 0.6.0-8 → 0.6.0-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/model.js +3 -1
- package/package.json +1 -1
package/model.js
CHANGED
|
@@ -117,7 +117,9 @@ export class Phrase {
|
|
|
117
117
|
return this.kind === 'action' ? 'When' : 'Then';
|
|
118
118
|
}
|
|
119
119
|
toCode(cg) {
|
|
120
|
-
|
|
120
|
+
if (!this.text)
|
|
121
|
+
return;
|
|
122
|
+
cg.phrase(this);
|
|
121
123
|
}
|
|
122
124
|
definition() {
|
|
123
125
|
const key = this.kind === 'action' ? this.text : `=> ${this.text}`;
|