config.js
4.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ViewEncapsulation, isDevMode } from '@angular/core';
import { Identifiers, createIdentifier } from './identifiers';
/**
* @return {?}
*/
function unimplemented() {
throw new Error('unimplemented');
}
export var CompilerConfig = (function () {
/**
* @param {?=} __0
*/
function CompilerConfig(_a) {
var _b = _a === void 0 ? {} : _a, _c = _b.renderTypes, renderTypes = _c === void 0 ? new DefaultRenderTypes() : _c, _d = _b.defaultEncapsulation, defaultEncapsulation = _d === void 0 ? ViewEncapsulation.Emulated : _d, genDebugInfo = _b.genDebugInfo, logBindingUpdate = _b.logBindingUpdate, _e = _b.useJit, useJit = _e === void 0 ? true : _e;
this.renderTypes = renderTypes;
this.defaultEncapsulation = defaultEncapsulation;
this._genDebugInfo = genDebugInfo;
this._logBindingUpdate = logBindingUpdate;
this.useJit = useJit;
}
Object.defineProperty(CompilerConfig.prototype, "genDebugInfo", {
/**
* @return {?}
*/
get: function () {
return this._genDebugInfo === void 0 ? isDevMode() : this._genDebugInfo;
},
enumerable: true,
configurable: true
});
Object.defineProperty(CompilerConfig.prototype, "logBindingUpdate", {
/**
* @return {?}
*/
get: function () {
return this._logBindingUpdate === void 0 ? isDevMode() : this._logBindingUpdate;
},
enumerable: true,
configurable: true
});
return CompilerConfig;
}());
function CompilerConfig_tsickle_Closure_declarations() {
/** @type {?} */
CompilerConfig.prototype.renderTypes;
/** @type {?} */
CompilerConfig.prototype.defaultEncapsulation;
/** @type {?} */
CompilerConfig.prototype._genDebugInfo;
/** @type {?} */
CompilerConfig.prototype._logBindingUpdate;
/** @type {?} */
CompilerConfig.prototype.useJit;
}
/**
* Types used for the renderer.
* Can be replaced to specialize the generated output to a specific renderer
* to help tree shaking.
* @abstract
*/
export var RenderTypes = (function () {
function RenderTypes() {
}
Object.defineProperty(RenderTypes.prototype, "renderer", {
/**
* @return {?}
*/
get: function () { return unimplemented(); },
enumerable: true,
configurable: true
});
Object.defineProperty(RenderTypes.prototype, "renderText", {
/**
* @return {?}
*/
get: function () { return unimplemented(); },
enumerable: true,
configurable: true
});
Object.defineProperty(RenderTypes.prototype, "renderElement", {
/**
* @return {?}
*/
get: function () { return unimplemented(); },
enumerable: true,
configurable: true
});
Object.defineProperty(RenderTypes.prototype, "renderComment", {
/**
* @return {?}
*/
get: function () { return unimplemented(); },
enumerable: true,
configurable: true
});
Object.defineProperty(RenderTypes.prototype, "renderNode", {
/**
* @return {?}
*/
get: function () { return unimplemented(); },
enumerable: true,
configurable: true
});
Object.defineProperty(RenderTypes.prototype, "renderEvent", {
/**
* @return {?}
*/
get: function () { return unimplemented(); },
enumerable: true,
configurable: true
});
return RenderTypes;
}());
export var DefaultRenderTypes = (function () {
function DefaultRenderTypes() {
this.renderText = null;
this.renderElement = null;
this.renderComment = null;
this.renderNode = null;
this.renderEvent = null;
}
Object.defineProperty(DefaultRenderTypes.prototype, "renderer", {
/**
* @return {?}
*/
get: function () { return createIdentifier(Identifiers.Renderer); },
enumerable: true,
configurable: true
});
;
return DefaultRenderTypes;
}());
function DefaultRenderTypes_tsickle_Closure_declarations() {
/** @type {?} */
DefaultRenderTypes.prototype.renderText;
/** @type {?} */
DefaultRenderTypes.prototype.renderElement;
/** @type {?} */
DefaultRenderTypes.prototype.renderComment;
/** @type {?} */
DefaultRenderTypes.prototype.renderNode;
/** @type {?} */
DefaultRenderTypes.prototype.renderEvent;
}
//# sourceMappingURL=config.js.map