1
1
// ------------------------------------------------------------------------------
2
2
// <auto-generated>
3
3
// This code was generated by a tool.
4
- // Runtime Version: 16 .0.0.0
4
+ // Runtime Version: 17 .0.0.0
5
5
//
6
6
// Changes to this file may cause incorrect behavior and will be lost if
7
7
// the code is regenerated.
@@ -18,8 +18,8 @@ namespace Codegen
18
18
/// Class to produce the template output
19
19
/// </summary>
20
20
21
- #line 1 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
22
- [ global ::System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.VisualStudio.TextTemplating" , "16 .0.0.0" ) ]
21
+ #line 1 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
22
+ [ global ::System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.VisualStudio.TextTemplating" , "17 .0.0.0" ) ]
23
23
public partial class TSTypes : TSTypesBase
24
24
{
25
25
#line hidden
@@ -30,44 +30,65 @@ public virtual string TransformText()
30
30
{
31
31
this . Write ( "\r \n /*************************************************************\r \n THIS FILE WAS A" +
32
32
"UTOMATICALLY GENERATED, DO NOT MODIFY MANUALLY\r \n ********************************" +
33
- "******************************/\r \n \r \n import type {\r \n " ) ;
33
+ "******************************/\r \n \r \n import type {\r \n // Controls \r \n " ) ;
34
34
35
- #line 12 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
35
+ #line 13 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
36
36
foreach ( var type in Types . Where ( t => Util . HasCtor ( t ) && Util . GetTSNamespace ( t ) == "" ) ) {
37
37
38
38
#line default
39
39
#line hidden
40
40
this . Write ( " " ) ;
41
41
42
- #line 13 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
42
+ #line 14 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
43
43
this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . GetNativePropsName ( type ) ) ) ;
44
44
45
45
#line default
46
46
#line hidden
47
47
this . Write ( ",\r \n " ) ;
48
48
49
- #line 14 "F:\r eact-native-xaml\package\Codegen\TSTypes.tt"
49
+ #line 15 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
50
+ }
51
+
52
+ #line default
53
+ #line hidden
54
+ this . Write ( "\r \n // EventArgs\r \n " ) ;
55
+
56
+ #line 18 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
57
+ foreach ( var type in Util . eventArgsTypes . Where ( t => Util . GetTSNamespace ( t ) == "" ) ) {
58
+
59
+ #line default
60
+ #line hidden
61
+ this . Write ( " Native" ) ;
62
+
63
+ #line 19 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
64
+ this . Write ( this . ToStringHelper . ToStringWithCulture ( type . GetName ( ) ) ) ;
65
+
66
+ #line default
67
+ #line hidden
68
+ this . Write ( ",\r \n " ) ;
69
+
70
+ #line 20 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
50
71
}
51
72
52
73
#line default
53
74
#line hidden
54
75
this . Write ( "} from \' ./Props\' ;\r \n \r \n " ) ;
55
76
56
- #line 17 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
77
+ #line 23 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
57
78
foreach ( var ns in Types . Where ( t => Util . HasCtor ( t ) && Util . GetTSNamespace ( t ) != "" ) . Select ( t => Util . GetTSNamespace ( t ) ) . Distinct ( ) ) {
58
79
59
80
#line default
60
81
#line hidden
61
82
this . Write ( "import type { Native" ) ;
62
83
63
- #line 18 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
84
+ #line 24 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
64
85
this . Write ( this . ToStringHelper . ToStringWithCulture ( ns ) ) ;
65
86
66
87
#line default
67
88
#line hidden
68
89
this . Write ( " } from \' ./Props\' ;\r \n " ) ;
69
90
70
- #line 19 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
91
+ #line 25 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
71
92
}
72
93
73
94
#line default
@@ -83,7 +104,7 @@ public virtual string TransformText()
83
104
84
105
" ) ;
85
106
86
- #line 29 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
107
+ #line 35 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
87
108
88
109
foreach ( var type in Types . Where ( t => Util . HasCtor ( t ) ) ) {
89
110
var ns = Util . GetTSNamespace ( type ) ;
@@ -93,119 +114,185 @@ public virtual string TransformText()
93
114
#line hidden
94
115
this . Write ( "export namespace " ) ;
95
116
96
- #line 33 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
117
+ #line 39 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
97
118
this . Write ( this . ToStringHelper . ToStringWithCulture ( ns ) ) ;
98
119
99
120
#line default
100
121
#line hidden
101
122
this . Write ( " {\r \n " ) ;
102
123
103
- #line 34 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
124
+ #line 40 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
104
125
}
105
126
106
127
#line default
107
128
#line hidden
108
129
this . Write ( "export type " ) ;
109
130
110
- #line 35 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
131
+ #line 41 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
111
132
this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . ToJsName ( type ) ) ) ;
112
133
113
134
#line default
114
135
#line hidden
115
136
this . Write ( "Props = Omit<" ) ;
116
137
117
- #line 35 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
138
+ #line 41 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
118
139
this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . GetNativePropsName ( type ) ) ) ;
119
140
120
141
#line default
121
142
#line hidden
122
143
this . Write ( ", \' type\' >;\r \n \r \n export class " ) ;
123
144
124
- #line 37 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
145
+ #line 43 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
125
146
this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . ToJsName ( type ) ) ) ;
126
147
127
148
#line default
128
149
#line hidden
129
150
this . Write ( " extends React.Component<" ) ;
130
151
131
- #line 37 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
152
+ #line 43 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
132
153
this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . ToJsName ( type ) ) ) ;
133
154
134
155
#line default
135
156
#line hidden
136
157
this . Write ( "Props> {\r \n render() {\r \n return <NativeXamlControl {...this.props} type=\' " ) ;
137
158
138
- #line 39 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
159
+ #line 45 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
139
160
this . Write ( this . ToStringHelper . ToStringWithCulture ( type . GetFullName ( ) ) ) ;
140
161
141
162
#line default
142
163
#line hidden
143
164
this . Write ( "\' />;\r \n }\r \n " ) ;
144
165
145
- #line 41 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
166
+ #line 47 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
146
167
foreach ( var command in Util . GetCommands ( type . GetFullName ( ) ) ) {
147
168
148
169
#line default
149
170
#line hidden
150
171
this . Write ( " static " ) ;
151
172
152
- #line 42 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
173
+ #line 48 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
153
174
this . Write ( this . ToStringHelper . ToStringWithCulture ( command . Name ) ) ;
154
175
155
176
#line default
156
177
#line hidden
157
178
this . Write ( "(ref: React.MutableRefObject<" ) ;
158
179
159
- #line 42 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
180
+ #line 48 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
160
181
this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . ToJsName ( type ) ) ) ;
161
182
162
183
#line default
163
184
#line hidden
164
185
this . Write ( ">, args: " ) ;
165
186
166
- #line 42 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
187
+ #line 48 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
167
188
this . Write ( this . ToStringHelper . ToStringWithCulture ( command . TSArgTypes != null ? command . TSArgTypes : "any[]" ) ) ;
168
189
169
190
#line default
170
191
#line hidden
171
192
this . Write ( ") {\r \n const tag = findNodeHandle(ref.current);\r \n UIManager.dispatchViewMana" +
172
193
"gerCommand(tag, xamlCommands." ) ;
173
194
174
- #line 44 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
195
+ #line 50 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
175
196
this . Write ( this . ToStringHelper . ToStringWithCulture ( command . Name ) ) ;
176
197
177
198
#line default
178
199
#line hidden
179
200
this . Write ( ", " ) ;
180
201
181
- #line 44 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
202
+ #line 50 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
182
203
this . Write ( this . ToStringHelper . ToStringWithCulture ( command . TSArgTypes != null ? "[args]" : "args" ) ) ;
183
204
184
205
#line default
185
206
#line hidden
186
207
this . Write ( ");\r \n }\r \n " ) ;
187
208
188
- #line 46 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
209
+ #line 52 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
189
210
}
190
211
191
212
#line default
192
213
#line hidden
193
214
this . Write ( "};\r \n " ) ;
194
215
195
- #line 48 "F:\r eact-native-xaml\package\Codegen\TSTypes.tt"
216
+ #line 54 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
217
+ if ( ns != "" ) {
218
+
219
+ #line default
220
+ #line hidden
221
+ this . Write ( "}\r \n " ) ;
222
+
223
+ #line 56 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
224
+ }
225
+
226
+ #line default
227
+ #line hidden
228
+
229
+ #line 57 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
230
+ }
231
+
232
+ #line default
233
+ #line hidden
234
+ this . Write ( "\r \n " ) ;
235
+
236
+ #line 59 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
237
+ foreach ( var ea in Util . eventArgsTypes ) {
238
+ var ns = Util . GetTSNamespace ( ea ) ;
239
+ if ( ns != "" ) {
240
+
241
+ #line default
242
+ #line hidden
243
+ this . Write ( "export namespace " ) ;
244
+
245
+ #line 62 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
246
+ this . Write ( this . ToStringHelper . ToStringWithCulture ( ns ) ) ;
247
+
248
+ #line default
249
+ #line hidden
250
+ this . Write ( " {\r \n " ) ;
251
+
252
+ #line 63 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
253
+
254
+ }
255
+
256
+
257
+ #line default
258
+ #line hidden
259
+ this . Write ( "export type " ) ;
260
+
261
+ #line 66 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
262
+ this . Write ( this . ToStringHelper . ToStringWithCulture ( ea . GetName ( ) ) ) ;
263
+
264
+ #line default
265
+ #line hidden
266
+ this . Write ( " = " ) ;
267
+
268
+ #line 66 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
269
+ this . Write ( this . ToStringHelper . ToStringWithCulture ( Util . GetEventArgsTSType ( ea , "Native" ) ) ) ;
270
+
271
+ #line default
272
+ #line hidden
273
+ this . Write ( "; // " ) ;
274
+
275
+ #line 66 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
276
+ this . Write ( this . ToStringHelper . ToStringWithCulture ( ea . GetFullName ( ) ) ) ;
277
+
278
+ #line default
279
+ #line hidden
280
+ this . Write ( " \r \n " ) ;
281
+
282
+ #line 67 "C:\Users\a sklar\source\r epos\r eact-native-xaml\package\Codegen\TSTypes.tt"
196
283
if ( ns != "" ) {
197
284
198
285
#line default
199
286
#line hidden
200
287
this . Write ( "}\r \n " ) ;
201
288
202
- #line 50 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
289
+ #line 69 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
203
290
}
204
291
205
292
#line default
206
293
#line hidden
207
294
208
- #line 51 "F: \r eact-native-xaml\package\Codegen\TSTypes.tt"
295
+ #line 70 "C:\Users \a sklar\source \r epos \r eact-native-xaml\package\Codegen\TSTypes.tt"
209
296
}
210
297
211
298
#line default
@@ -220,7 +307,7 @@ public virtual string TransformText()
220
307
/// <summary>
221
308
/// Base class for this transformation
222
309
/// </summary>
223
- [ global ::System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.VisualStudio.TextTemplating" , "16 .0.0.0" ) ]
310
+ [ global ::System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.VisualStudio.TextTemplating" , "17 .0.0.0" ) ]
224
311
public class TSTypesBase
225
312
{
226
313
#region Fields
0 commit comments