i18n_ast.js
5.91 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/**
* @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
*/
export var Message = (function () {
/**
* @param {?} nodes message AST
* @param {?} placeholders maps placeholder names to static content
* @param {?} placeholderToMessage maps placeholder names to messages (used for nested ICU messages)
* @param {?} meaning
* @param {?} description
*/
function Message(nodes, placeholders, placeholderToMessage, meaning, description) {
this.nodes = nodes;
this.placeholders = placeholders;
this.placeholderToMessage = placeholderToMessage;
this.meaning = meaning;
this.description = description;
}
return Message;
}());
function Message_tsickle_Closure_declarations() {
/** @type {?} */
Message.prototype.nodes;
/** @type {?} */
Message.prototype.placeholders;
/** @type {?} */
Message.prototype.placeholderToMessage;
/** @type {?} */
Message.prototype.meaning;
/** @type {?} */
Message.prototype.description;
}
export var Text = (function () {
/**
* @param {?} value
* @param {?} sourceSpan
*/
function Text(value, sourceSpan) {
this.value = value;
this.sourceSpan = sourceSpan;
}
/**
* @param {?} visitor
* @param {?=} context
* @return {?}
*/
Text.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };
return Text;
}());
function Text_tsickle_Closure_declarations() {
/** @type {?} */
Text.prototype.value;
/** @type {?} */
Text.prototype.sourceSpan;
}
export var Container = (function () {
/**
* @param {?} children
* @param {?} sourceSpan
*/
function Container(children, sourceSpan) {
this.children = children;
this.sourceSpan = sourceSpan;
}
/**
* @param {?} visitor
* @param {?=} context
* @return {?}
*/
Container.prototype.visit = function (visitor, context) { return visitor.visitContainer(this, context); };
return Container;
}());
function Container_tsickle_Closure_declarations() {
/** @type {?} */
Container.prototype.children;
/** @type {?} */
Container.prototype.sourceSpan;
}
export var Icu = (function () {
/**
* @param {?} expression
* @param {?} type
* @param {?} cases
* @param {?} sourceSpan
*/
function Icu(expression, type, cases, sourceSpan) {
this.expression = expression;
this.type = type;
this.cases = cases;
this.sourceSpan = sourceSpan;
}
/**
* @param {?} visitor
* @param {?=} context
* @return {?}
*/
Icu.prototype.visit = function (visitor, context) { return visitor.visitIcu(this, context); };
return Icu;
}());
function Icu_tsickle_Closure_declarations() {
/** @type {?} */
Icu.prototype.expressionPlaceholder;
/** @type {?} */
Icu.prototype.expression;
/** @type {?} */
Icu.prototype.type;
/** @type {?} */
Icu.prototype.cases;
/** @type {?} */
Icu.prototype.sourceSpan;
}
export var TagPlaceholder = (function () {
/**
* @param {?} tag
* @param {?} attrs
* @param {?} startName
* @param {?} closeName
* @param {?} children
* @param {?} isVoid
* @param {?} sourceSpan
*/
function TagPlaceholder(tag, attrs, startName, closeName, children, isVoid, sourceSpan) {
this.tag = tag;
this.attrs = attrs;
this.startName = startName;
this.closeName = closeName;
this.children = children;
this.isVoid = isVoid;
this.sourceSpan = sourceSpan;
}
/**
* @param {?} visitor
* @param {?=} context
* @return {?}
*/
TagPlaceholder.prototype.visit = function (visitor, context) { return visitor.visitTagPlaceholder(this, context); };
return TagPlaceholder;
}());
function TagPlaceholder_tsickle_Closure_declarations() {
/** @type {?} */
TagPlaceholder.prototype.tag;
/** @type {?} */
TagPlaceholder.prototype.attrs;
/** @type {?} */
TagPlaceholder.prototype.startName;
/** @type {?} */
TagPlaceholder.prototype.closeName;
/** @type {?} */
TagPlaceholder.prototype.children;
/** @type {?} */
TagPlaceholder.prototype.isVoid;
/** @type {?} */
TagPlaceholder.prototype.sourceSpan;
}
export var Placeholder = (function () {
/**
* @param {?} value
* @param {?} name
* @param {?} sourceSpan
*/
function Placeholder(value, name, sourceSpan) {
this.value = value;
this.name = name;
this.sourceSpan = sourceSpan;
}
/**
* @param {?} visitor
* @param {?=} context
* @return {?}
*/
Placeholder.prototype.visit = function (visitor, context) { return visitor.visitPlaceholder(this, context); };
return Placeholder;
}());
function Placeholder_tsickle_Closure_declarations() {
/** @type {?} */
Placeholder.prototype.value;
/** @type {?} */
Placeholder.prototype.name;
/** @type {?} */
Placeholder.prototype.sourceSpan;
}
export var IcuPlaceholder = (function () {
/**
* @param {?} value
* @param {?} name
* @param {?} sourceSpan
*/
function IcuPlaceholder(value, name, sourceSpan) {
this.value = value;
this.name = name;
this.sourceSpan = sourceSpan;
}
/**
* @param {?} visitor
* @param {?=} context
* @return {?}
*/
IcuPlaceholder.prototype.visit = function (visitor, context) { return visitor.visitIcuPlaceholder(this, context); };
return IcuPlaceholder;
}());
function IcuPlaceholder_tsickle_Closure_declarations() {
/** @type {?} */
IcuPlaceholder.prototype.value;
/** @type {?} */
IcuPlaceholder.prototype.name;
/** @type {?} */
IcuPlaceholder.prototype.sourceSpan;
}
//# sourceMappingURL=i18n_ast.js.map