@fluffjs/cli 0.1.13 → 0.1.14
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/CodeGenerator.js +6 -0
- package/package.json +1 -1
package/CodeGenerator.js
CHANGED
|
@@ -247,6 +247,12 @@ export class CodeGenerator {
|
|
|
247
247
|
throw new Error(`Binding for ${binding.name} is missing expression`);
|
|
248
248
|
}
|
|
249
249
|
result.e = this.internExpression(binding.expression);
|
|
250
|
+
if (binding.pipes && binding.pipes.length > 0) {
|
|
251
|
+
result.p = binding.pipes.map(pipe => ({
|
|
252
|
+
n: pipe.name,
|
|
253
|
+
a: pipe.args.map(arg => this.internExpression(arg))
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
250
256
|
return result;
|
|
251
257
|
}
|
|
252
258
|
internExpression(expr) {
|