UNPKG

1.75 kBJavaScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8var __extends = (this && this.__extends) || function (d, b) {
9 for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
10 function __() { this.constructor = d; }
11 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12};
13import { Compiler } from '@angular/core';
14import { unimplemented } from './facade/errors';
15/**
16 * Special interface to the compiler only used by testing
17 *
18 * @experimental
19 */
20export var TestingCompiler = (function (_super) {
21 __extends(TestingCompiler, _super);
22 function TestingCompiler() {
23 _super.apply(this, arguments);
24 }
25 Object.defineProperty(TestingCompiler.prototype, "injector", {
26 get: function () { throw unimplemented(); },
27 enumerable: true,
28 configurable: true
29 });
30 TestingCompiler.prototype.overrideModule = function (module, overrides) {
31 throw unimplemented();
32 };
33 TestingCompiler.prototype.overrideDirective = function (directive, overrides) {
34 throw unimplemented();
35 };
36 TestingCompiler.prototype.overrideComponent = function (component, overrides) {
37 throw unimplemented();
38 };
39 TestingCompiler.prototype.overridePipe = function (directive, overrides) {
40 throw unimplemented();
41 };
42 return TestingCompiler;
43}(Compiler));
44/**
45 * A factory for creating a Compiler
46 *
47 * @experimental
48 */
49export var TestingCompilerFactory = (function () {
50 function TestingCompilerFactory() {
51 }
52 return TestingCompilerFactory;
53}());
54//# sourceMappingURL=test_compiler.js.map
\No newline at end of file