Browse Source

fixed empty controlFlowStorageCustomNode append

sanex3339 8 years ago
parent
commit
1d0a7a9c12

File diff suppressed because it is too large
+ 260 - 228
dist/index.js


+ 4 - 0
src/node-transformers/node-control-flow-transformers/FunctionControlFlowTransformer.ts

@@ -87,6 +87,10 @@ export class FunctionControlFlowTransformer extends AbstractNodeTransformer {
             }
         });
 
+        if (!controlFlowStorage.getLength()) {
+            return;
+        }
+
         const controlFlowStorageCustomNode: ICustomNode = new ControlFlowStorageNode(
             controlFlowStorage,
             controlFlowStorageCustomNodeName,

Some files were not shown because too many files changed in this diff