node-dependency-injection 3.0.0-alpha.0 → 3.0.0-alpha.11

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.
Files changed (107) hide show
  1. package/.nyc_output/65e34a77-efb9-4bcf-803d-282fd660b5a8.json +1 -0
  2. package/.nyc_output/f2f58129-8a27-4ea1-94b2-d5913ef6944d.json +1 -0
  3. package/.nyc_output/processinfo/65e34a77-efb9-4bcf-803d-282fd660b5a8.json +1 -0
  4. package/.nyc_output/processinfo/f2f58129-8a27-4ea1-94b2-d5913ef6944d.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -0
  6. package/coverage/lcov-report/base.css +224 -0
  7. package/coverage/lcov-report/bin/Services/File/BaseAdapter.js.html +158 -0
  8. package/coverage/lcov-report/bin/Services/File/FileManager.js.html +176 -0
  9. package/coverage/lcov-report/bin/Services/File/JsAdapter.js.html +140 -0
  10. package/coverage/lcov-report/bin/Services/File/JsonAdapter.js.html +131 -0
  11. package/coverage/lcov-report/bin/Services/File/YamlAdapter.js.html +155 -0
  12. package/coverage/lcov-report/bin/Services/File/index.html +171 -0
  13. package/coverage/lcov-report/block-navigation.js +79 -0
  14. package/coverage/lcov-report/favicon.png +0 -0
  15. package/coverage/lcov-report/index.html +171 -0
  16. package/coverage/lcov-report/lib/Autowire.js.html +506 -0
  17. package/coverage/lcov-report/lib/Compiler.js.html +239 -0
  18. package/coverage/lcov-report/lib/CompilerPass/DecoratePass.js.html +248 -0
  19. package/coverage/lcov-report/lib/CompilerPass/OptimizePass.js.html +128 -0
  20. package/coverage/lcov-report/lib/CompilerPass/RemovePass.js.html +116 -0
  21. package/coverage/lcov-report/lib/CompilerPass/index.html +156 -0
  22. package/coverage/lcov-report/lib/CompilerPass/index.js.html +326 -0
  23. package/coverage/lcov-report/lib/ContainerBuilder.js.html +1115 -0
  24. package/coverage/lcov-report/lib/Definition.js.html +962 -0
  25. package/coverage/lcov-report/lib/Exception/AbstractServiceException.js.html +110 -0
  26. package/coverage/lcov-report/lib/Exception/AttributesMapException.js.html +101 -0
  27. package/coverage/lcov-report/lib/Exception/ConfigurationFileNotFoundException.js.html +110 -0
  28. package/coverage/lcov-report/lib/Exception/DefinitionNotFoundException.js.html +110 -0
  29. package/coverage/lcov-report/lib/Exception/FrozenContainerException.js.html +101 -0
  30. package/coverage/lcov-report/lib/Exception/LoadMethodNotFoundException.js.html +110 -0
  31. package/coverage/lcov-report/lib/Exception/LoggerWarnMethodNotFoundException.js.html +101 -0
  32. package/coverage/lcov-report/lib/Exception/MethodCallEmptyException.js.html +101 -0
  33. package/coverage/lcov-report/lib/Exception/MethodCallNotFoundException.js.html +110 -0
  34. package/coverage/lcov-report/lib/Exception/NotAbstractServiceException.js.html +110 -0
  35. package/coverage/lcov-report/lib/Exception/PrivateServiceException.js.html +110 -0
  36. package/coverage/lcov-report/lib/Exception/ProcessMethodNotFoundException.js.html +110 -0
  37. package/coverage/lcov-report/lib/Exception/ServiceCircularReferenceException.js.html +101 -0
  38. package/coverage/lcov-report/lib/Exception/ServiceFileNotFoundException.js.html +110 -0
  39. package/coverage/lcov-report/lib/Exception/ServiceFileNotLoadedException.js.html +110 -0
  40. package/coverage/lcov-report/lib/Exception/ServiceNotFoundException.js.html +113 -0
  41. package/coverage/lcov-report/lib/Exception/WrongCompilerPassTypeException.js.html +110 -0
  42. package/coverage/lcov-report/lib/Exception/WrongDefinitionException.js.html +101 -0
  43. package/coverage/lcov-report/lib/Exception/index.html +366 -0
  44. package/coverage/lcov-report/lib/InstanceManager.js.html +839 -0
  45. package/coverage/lcov-report/lib/Loader/FileLoader.js.html +1034 -0
  46. package/coverage/lcov-report/lib/Loader/JsFileLoader.js.html +155 -0
  47. package/coverage/lcov-report/lib/Loader/JsonFileLoader.js.html +98 -0
  48. package/coverage/lcov-report/lib/Loader/YamlFileLoader.js.html +188 -0
  49. package/coverage/lcov-report/lib/Loader/index.html +156 -0
  50. package/coverage/lcov-report/lib/PackageReference.js.html +131 -0
  51. package/coverage/lcov-report/lib/PassConfig.js.html +230 -0
  52. package/coverage/lcov-report/lib/Reference.js.html +158 -0
  53. package/coverage/lcov-report/lib/TagReference.js.html +131 -0
  54. package/coverage/lcov-report/lib/index.html +231 -0
  55. package/coverage/lcov-report/prettify.css +1 -0
  56. package/coverage/lcov-report/prettify.js +2 -0
  57. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  58. package/coverage/lcov-report/sorter.js +170 -0
  59. package/coverage/lcov.info +1516 -0
  60. package/dist/bin/Services/File/BaseAdapter.js +6 -7
  61. package/dist/bin/Services/File/FileManager.js +6 -8
  62. package/dist/bin/Services/File/JsAdapter.js +14 -26
  63. package/dist/bin/Services/File/JsonAdapter.js +13 -25
  64. package/dist/bin/Services/File/YamlAdapter.js +13 -25
  65. package/dist/bin/ndi-config:check.js +2 -2
  66. package/dist/bin/ndi-config:create.js +2 -2
  67. package/dist/bin/ndi-container:service.js +2 -2
  68. package/dist/bin/ndi.js +2 -2
  69. package/dist/lib/Autowire.js +103 -65
  70. package/dist/lib/Compiler.js +8 -14
  71. package/dist/lib/CompilerPass/DecoratePass.js +8 -9
  72. package/dist/lib/CompilerPass/OptimizePass.js +9 -16
  73. package/dist/lib/CompilerPass/RemovePass.js +9 -16
  74. package/dist/lib/CompilerPass/index.js +8 -12
  75. package/dist/lib/ContainerBuilder.js +15 -26
  76. package/dist/lib/Definition.js +8 -13
  77. package/dist/lib/Exception/AbstractServiceException.js +12 -19
  78. package/dist/lib/Exception/AttributesMapException.js +12 -19
  79. package/dist/lib/Exception/ConfigurationFileNotFoundException.js +12 -19
  80. package/dist/lib/Exception/DefinitionNotFoundException.js +12 -19
  81. package/dist/lib/Exception/FrozenContainerException.js +12 -19
  82. package/dist/lib/Exception/LoadMethodNotFoundException.js +12 -19
  83. package/dist/lib/Exception/LoggerWarnMethodNotFoundException.js +12 -19
  84. package/dist/lib/Exception/MethodCallEmptyException.js +12 -19
  85. package/dist/lib/Exception/MethodCallNotFoundException.js +12 -19
  86. package/dist/lib/Exception/NotAbstractServiceException.js +12 -19
  87. package/dist/lib/Exception/PrivateServiceException.js +12 -19
  88. package/dist/lib/Exception/ProcessMethodNotFoundException.js +12 -19
  89. package/dist/lib/Exception/ServiceCircularReferenceException.js +12 -19
  90. package/dist/lib/Exception/ServiceFileNotFoundException.js +12 -19
  91. package/dist/lib/Exception/ServiceFileNotLoadedException.js +12 -19
  92. package/dist/lib/Exception/ServiceNotFoundException.js +12 -19
  93. package/dist/lib/Exception/WrongCompilerPassTypeException.js +12 -19
  94. package/dist/lib/Exception/WrongDefinitionException.js +12 -19
  95. package/dist/lib/InstanceManager.js +31 -43
  96. package/dist/lib/Loader/FileLoader.js +8 -12
  97. package/dist/lib/Loader/JsFileLoader.js +14 -28
  98. package/dist/lib/Loader/JsonFileLoader.js +11 -16
  99. package/dist/lib/Loader/YamlFileLoader.js +20 -32
  100. package/dist/lib/PackageReference.js +6 -8
  101. package/dist/lib/PassConfig.js +6 -7
  102. package/dist/lib/Reference.js +6 -9
  103. package/dist/lib/TagReference.js +6 -8
  104. package/dist/lib/index.js +23 -15
  105. package/dist/lib/types/index.d.ts +9 -1
  106. package/package.json +20 -13
  107. package/tsconfig.json +8 -1
@@ -1,62 +1,69 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
10
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
+
12
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
8
18
  var _path = _interopRequireDefault(require("path"));
9
19
 
10
20
  var _fs = _interopRequireDefault(require("fs"));
11
21
 
12
- var _parser = require("@typescript-eslint/parser");
22
+ var _json = _interopRequireDefault(require("json5"));
23
+
24
+ var _typescriptEstree = require("@typescript-eslint/typescript-estree");
13
25
 
14
26
  var _Definition = _interopRequireDefault(require("./Definition"));
15
27
 
16
28
  var _Reference = _interopRequireDefault(require("./Reference"));
17
29
 
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
21
-
22
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
23
-
24
30
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
25
31
 
26
32
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
27
33
 
28
34
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
29
35
 
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
35
-
36
36
  var Autowire = /*#__PURE__*/function () {
37
37
  function Autowire(container) {
38
- _classCallCheck(this, Autowire);
39
-
38
+ var tsConfigFullPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
39
+ (0, _classCallCheck2["default"])(this, Autowire);
40
40
  this._interfaceImplementation = new Map();
41
41
  this._rootDirectory = container.defaultDir;
42
42
  this._container = container;
43
+
44
+ try {
45
+ this._tsConfigFullPath = tsConfigFullPath || _path["default"].join(process.cwd(), 'tsconfig.json');
46
+ this._tsConfigPaths = _json["default"].parse(_fs["default"].readFileSync(this._tsConfigFullPath, 'utf-8')).compilerOptions.paths;
47
+ } catch (e) {
48
+ this._tsConfigPaths = null;
49
+ }
43
50
  }
44
51
  /**
45
52
  * @return {ContainerBuilder}
46
53
  */
47
54
 
48
55
 
49
- _createClass(Autowire, [{
56
+ (0, _createClass2["default"])(Autowire, [{
50
57
  key: "container",
51
58
  get: function get() {
52
59
  return this._container;
53
60
  }
54
61
  }, {
55
62
  key: "_walkSync",
56
- value: /*#__PURE__*/regeneratorRuntime.mark(function _walkSync(dir) {
63
+ value: /*#__PURE__*/_regenerator["default"].mark(function _walkSync(dir) {
57
64
  var files, _iterator, _step, file;
58
65
 
59
- return regeneratorRuntime.wrap(function _walkSync$(_context) {
66
+ return _regenerator["default"].wrap(function _walkSync$(_context) {
60
67
  while (1) {
61
68
  switch (_context.prev = _context.next) {
62
69
  case 0:
@@ -123,7 +130,7 @@ var Autowire = /*#__PURE__*/function () {
123
130
  key: "_getServiceIdFromPath",
124
131
  value: function _getServiceIdFromPath(path, type) {
125
132
  var extension = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.ts';
126
- return path.replace(/\//g, '_').replace(extension, '').concat("_".concat(type));
133
+ return path.replace(/\//g, '_').replace(extension, '').replace('@', '_').concat("_".concat(type));
127
134
  }
128
135
  /**
129
136
  * @returns {void}
@@ -132,10 +139,10 @@ var Autowire = /*#__PURE__*/function () {
132
139
  }, {
133
140
  key: "process",
134
141
  value: function () {
135
- var _process = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
142
+ var _process = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
136
143
  var _iterator2, _step2, filePath, parsedFile, _this$_getClassDeclar, classDeclaration, body, Class, definition, serviceId;
137
144
 
138
- return regeneratorRuntime.wrap(function _callee$(_context2) {
145
+ return _regenerator["default"].wrap(function _callee$(_context2) {
139
146
  while (1) {
140
147
  switch (_context2.prev = _context2.next) {
141
148
  case 0:
@@ -152,10 +159,13 @@ var Autowire = /*#__PURE__*/function () {
152
159
 
153
160
  if (Class && classDeclaration) {
154
161
  definition = this._getDefinition(classDeclaration, body, parsedFile, Class);
155
- serviceId = this._getServiceIdFromPath(filePath, Class.name);
156
- this.container.setDefinition(serviceId, definition);
157
162
 
158
- this._interfaceImplementations(classDeclaration, body, parsedFile, serviceId);
163
+ if (definition) {
164
+ serviceId = this._getServiceIdFromPath(filePath, Class.name);
165
+ this.container.setDefinition(serviceId, definition);
166
+
167
+ this._interfaceImplementations(classDeclaration, body, parsedFile, serviceId);
168
+ }
159
169
  }
160
170
  }
161
171
  }
@@ -184,7 +194,7 @@ var Autowire = /*#__PURE__*/function () {
184
194
  value: function _getClassDeclaration(filePath) {
185
195
  var sourceCode = _fs["default"].readFileSync(filePath, 'utf8');
186
196
 
187
- var body = (0, _parser.parse)(sourceCode).body;
197
+ var body = (0, _typescriptEstree.parse)(sourceCode).body;
188
198
  var classDeclaration = body.find(function (declaration) {
189
199
  return declaration.type === 'ExportDefaultDeclaration';
190
200
  });
@@ -196,44 +206,52 @@ var Autowire = /*#__PURE__*/function () {
196
206
  }, {
197
207
  key: "_getDefinition",
198
208
  value: function _getDefinition(classDeclaration, body, parsedFile, ServiceClass) {
199
- var definition = new _Definition["default"](ServiceClass);
200
- var constructorDeclaration = classDeclaration.declaration.body.body.find(function (method) {
201
- return method.key.name === 'constructor';
202
- });
203
-
204
- if (classDeclaration.declaration["abstract"]) {
205
- definition["abstract"] = true;
206
- }
209
+ try {
210
+ var definition = new _Definition["default"](ServiceClass);
211
+ var constructorDeclaration = classDeclaration.declaration.body.body.find(function (method) {
212
+ return method.key.name === 'constructor';
213
+ });
214
+
215
+ if (classDeclaration.declaration["abstract"]) {
216
+ definition["abstract"] = true;
217
+ }
207
218
 
208
- if (classDeclaration.declaration.superClass) {
209
- var typeParent = classDeclaration.declaration.superClass.name;
219
+ if (classDeclaration.declaration.superClass) {
220
+ var typeParent = classDeclaration.declaration.superClass.name;
210
221
 
211
- var parentId = this._getIdentifierFromImports(typeParent, body, parsedFile);
222
+ var parentId = this._getIdentifierFromImports(typeParent, body, parsedFile);
212
223
 
213
- definition.parent = parentId;
214
- }
224
+ if (parentId) {
225
+ definition.parent = parentId;
226
+ }
227
+ }
215
228
 
216
- if (constructorDeclaration) {
217
- var _iterator3 = _createForOfIteratorHelper(constructorDeclaration.value.params),
218
- _step3;
229
+ if (constructorDeclaration) {
230
+ var _iterator3 = _createForOfIteratorHelper(constructorDeclaration.value.params),
231
+ _step3;
219
232
 
220
- try {
221
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
222
- var parameterDeclaration = _step3.value;
223
- var typeNameForArgument = parameterDeclaration.parameter.typeAnnotation.typeAnnotation.typeName.name;
233
+ try {
234
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
235
+ var parameterDeclaration = _step3.value;
236
+ var typeNameForArgument = parameterDeclaration.parameter.typeAnnotation.typeAnnotation.typeName.name;
224
237
 
225
- var argumentId = this._getIdentifierFromImports(typeNameForArgument, body, parsedFile);
238
+ var argumentId = this._getIdentifierFromImports(typeNameForArgument, body, parsedFile);
226
239
 
227
- definition.addArgument(new _Reference["default"](argumentId), definition["abstract"]);
240
+ if (argumentId) {
241
+ definition.addArgument(new _Reference["default"](argumentId), definition["abstract"]);
242
+ }
243
+ }
244
+ } catch (err) {
245
+ _iterator3.e(err);
246
+ } finally {
247
+ _iterator3.f();
228
248
  }
229
- } catch (err) {
230
- _iterator3.e(err);
231
- } finally {
232
- _iterator3.f();
233
249
  }
234
- }
235
250
 
236
- return definition;
251
+ return definition;
252
+ } catch (e) {
253
+ return null;
254
+ }
237
255
  }
238
256
  }, {
239
257
  key: "_interfaceImplementations",
@@ -249,7 +267,7 @@ var Autowire = /*#__PURE__*/function () {
249
267
 
250
268
  var aliasId = this._getIdentifierFromImports(interfaceType, body, parsedFile);
251
269
 
252
- if (this.container.hasAlias(aliasId) === false) {
270
+ if (aliasId && this.container.hasAlias(aliasId) === false) {
253
271
  this.container.setAlias(aliasId, serviceId);
254
272
  }
255
273
  }
@@ -263,22 +281,42 @@ var Autowire = /*#__PURE__*/function () {
263
281
  }, {
264
282
  key: "_getIdentifierFromImports",
265
283
  value: function _getIdentifierFromImports(type, body, parsedFile) {
266
- var relativeImportForImplement = body.find(function (declaration) {
267
- if (declaration.specifiers) {
268
- return declaration.specifiers.find(function (specifier) {
269
- return specifier.local.name === type;
270
- });
271
- }
284
+ try {
285
+ var rootDir = parsedFile.dir;
286
+ var relativeImportForImplement = body.find(function (declaration) {
287
+ if (declaration.specifiers) {
288
+ return declaration.specifiers.find(function (specifier) {
289
+ return specifier.local.name === type;
290
+ });
291
+ }
272
292
 
273
- return null;
274
- }).source.value;
293
+ return null;
294
+ }).source.value;
295
+
296
+ if (this._tsConfigPaths) {
297
+ for (var pathConfig in this._tsConfigPaths) {
298
+ var tsConfigPath = pathConfig.replace(/\*/g, '');
299
+ var tsRelativePath = this._tsConfigPaths[pathConfig][0];
300
+ tsRelativePath = tsRelativePath.replace(/\*/g, '');
301
+
302
+ if (relativeImportForImplement.includes(tsConfigPath)) {
303
+ relativeImportForImplement = relativeImportForImplement.replace(tsConfigPath, tsRelativePath);
275
304
 
276
- var absolutePathImportForImplement = _path["default"].join(parsedFile.dir, relativeImportForImplement);
305
+ var parsedTsConfigPath = _path["default"].parse(this._tsConfigFullPath);
277
306
 
278
- return this._getServiceIdFromPath(absolutePathImportForImplement, type);
307
+ rootDir = parsedTsConfigPath.dir;
308
+ }
309
+ }
310
+ }
311
+
312
+ var absolutePathImportForImplement = _path["default"].join(rootDir, relativeImportForImplement);
313
+
314
+ return this._getServiceIdFromPath(absolutePathImportForImplement, type);
315
+ } catch (e) {
316
+ return null;
317
+ }
279
318
  }
280
319
  }]);
281
-
282
320
  return Autowire;
283
321
  }();
284
322
 
@@ -1,39 +1,36 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
8
14
  var _ServiceCircularReferenceException = _interopRequireDefault(require("./Exception/ServiceCircularReferenceException"));
9
15
 
10
16
  var _PassConfig = _interopRequireDefault(require("./PassConfig"));
11
17
 
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
18
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
15
19
 
16
20
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
21
 
18
22
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
19
23
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
-
26
24
  var Compiler = /*#__PURE__*/function () {
27
25
  /**
28
26
  * @param {ContainerBuilder} container
29
27
  */
30
28
  function Compiler(container) {
31
- _classCallCheck(this, Compiler);
32
-
29
+ (0, _classCallCheck2["default"])(this, Compiler);
33
30
  this._container = container;
34
31
  }
35
32
 
36
- _createClass(Compiler, [{
33
+ (0, _createClass2["default"])(Compiler, [{
37
34
  key: "run",
38
35
  value: function run() {
39
36
  try {
@@ -48,8 +45,6 @@ var Compiler = /*#__PURE__*/function () {
48
45
  if (error instanceof RangeError) {
49
46
  throw new _ServiceCircularReferenceException["default"]();
50
47
  }
51
-
52
- throw error;
53
48
  }
54
49
  }
55
50
  /**
@@ -98,7 +93,6 @@ var Compiler = /*#__PURE__*/function () {
98
93
  this._container._compilerPass.process(_PassConfig["default"].TYPE_AFTER_REMOVING);
99
94
  }
100
95
  }]);
101
-
102
96
  return Compiler;
103
97
  }();
104
98
 
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
8
14
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
9
15
 
10
16
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
17
 
12
18
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13
19
 
14
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
-
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
-
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
-
20
20
  var DecoratePass = /*#__PURE__*/function () {
21
21
  function DecoratePass() {
22
- _classCallCheck(this, DecoratePass);
22
+ (0, _classCallCheck2["default"])(this, DecoratePass);
23
23
  }
24
24
 
25
- _createClass(DecoratePass, [{
25
+ (0, _createClass2["default"])(DecoratePass, [{
26
26
  key: "_processDefinitionKeys",
27
27
  value:
28
28
  /**
@@ -112,7 +112,6 @@ var DecoratePass = /*#__PURE__*/function () {
112
112
  return 'inner';
113
113
  }
114
114
  }]);
115
-
116
115
  return DecoratePass;
117
116
  }();
118
117
 
@@ -1,36 +1,30 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
8
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
-
10
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
 
12
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
13
 
14
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
15
 
16
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
16
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
17
17
 
18
18
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
19
 
20
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
21
21
 
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
-
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
27
-
28
22
  var OptimizePass = /*#__PURE__*/function () {
29
23
  function OptimizePass() {
30
- _classCallCheck(this, OptimizePass);
24
+ (0, _classCallCheck2["default"])(this, OptimizePass);
31
25
  }
32
26
 
33
- _createClass(OptimizePass, [{
27
+ (0, _createClass2["default"])(OptimizePass, [{
34
28
  key: "process",
35
29
  value:
36
30
  /**
@@ -42,7 +36,7 @@ var OptimizePass = /*#__PURE__*/function () {
42
36
 
43
37
  try {
44
38
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
45
- var _step$value = _slicedToArray(_step.value, 2),
39
+ var _step$value = (0, _slicedToArray2["default"])(_step.value, 2),
46
40
  id = _step$value[0],
47
41
  definition = _step$value[1];
48
42
 
@@ -60,7 +54,6 @@ var OptimizePass = /*#__PURE__*/function () {
60
54
  container.frozen = true;
61
55
  }
62
56
  }]);
63
-
64
57
  return OptimizePass;
65
58
  }();
66
59
 
@@ -1,36 +1,30 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
8
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
-
10
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
 
12
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
13
 
14
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
15
 
16
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
16
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
17
17
 
18
18
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
19
 
20
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
21
21
 
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
-
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
27
-
28
22
  var RemovePass = /*#__PURE__*/function () {
29
23
  function RemovePass() {
30
- _classCallCheck(this, RemovePass);
24
+ (0, _classCallCheck2["default"])(this, RemovePass);
31
25
  }
32
26
 
33
- _createClass(RemovePass, [{
27
+ (0, _createClass2["default"])(RemovePass, [{
34
28
  key: "process",
35
29
  value:
36
30
  /**
@@ -42,7 +36,7 @@ var RemovePass = /*#__PURE__*/function () {
42
36
 
43
37
  try {
44
38
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
45
- var _step$value = _slicedToArray(_step.value, 2),
39
+ var _step$value = (0, _slicedToArray2["default"])(_step.value, 2),
46
40
  id = _step$value[0],
47
41
  definition = _step$value[1];
48
42
 
@@ -57,7 +51,6 @@ var RemovePass = /*#__PURE__*/function () {
57
51
  }
58
52
  }
59
53
  }]);
60
-
61
54
  return RemovePass;
62
55
  }();
63
56
 
@@ -1,10 +1,16 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
8
14
  var _PassConfig = _interopRequireDefault(require("../PassConfig"));
9
15
 
10
16
  var _OptimizePass = _interopRequireDefault(require("./OptimizePass"));
@@ -17,27 +23,18 @@ var _ProcessMethodNotFoundException = _interopRequireDefault(require("../Excepti
17
23
 
18
24
  var _WrongCompilerPassTypeException = _interopRequireDefault(require("../Exception/WrongCompilerPassTypeException"));
19
25
 
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
26
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
23
27
 
24
28
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
29
 
26
30
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
27
31
 
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
-
34
32
  var CompilerPass = /*#__PURE__*/function () {
35
33
  /**
36
34
  * @param {ContainerBuilder} container
37
35
  */
38
36
  function CompilerPass(container) {
39
- _classCallCheck(this, CompilerPass);
40
-
37
+ (0, _classCallCheck2["default"])(this, CompilerPass);
41
38
  this._container = container;
42
39
  this.beforeOptimization = [];
43
40
  this.optimize = [];
@@ -52,7 +49,7 @@ var CompilerPass = /*#__PURE__*/function () {
52
49
  */
53
50
 
54
51
 
55
- _createClass(CompilerPass, [{
52
+ (0, _createClass2["default"])(CompilerPass, [{
56
53
  key: "_getCompilerPassPriorityNumber",
57
54
  value: function _getCompilerPassPriorityNumber(type, priority) {
58
55
  if (this[type][priority]) {
@@ -128,7 +125,6 @@ var CompilerPass = /*#__PURE__*/function () {
128
125
  }
129
126
  }
130
127
  }]);
131
-
132
128
  return CompilerPass;
133
129
  }();
134
130