harmonyc 0.9.0 → 0.10.0
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.
|
@@ -167,7 +167,10 @@ export function functionName(phrase) {
|
|
|
167
167
|
const { kind } = phrase;
|
|
168
168
|
return ((kind === 'response' ? 'Then_' : 'When_') +
|
|
169
169
|
([...phrase.content, phrase.docstring ? [phrase.docstring] : []]
|
|
170
|
-
.flatMap((c) => c instanceof Word
|
|
171
|
-
.filter((x) => x)
|
|
172
|
-
|
|
170
|
+
.flatMap((c) => c instanceof Word
|
|
171
|
+
? words(c.text).filter((x) => x)
|
|
172
|
+
: c instanceof Arg
|
|
173
|
+
? ['']
|
|
174
|
+
: [])
|
|
175
|
+
.join('_') || ''));
|
|
173
176
|
}
|