1
1
//------------------------------------------------------------------------------
2
2
// <auto-generated>
3
3
// This code was generated by a tool.
4
- // Runtime Version:6.0.28
4
+ // Runtime Version:6.0.35
5
5
//
6
6
// Changes to this file may cause incorrect behavior and will be lost if
7
7
// the code is regenerated.
@@ -23,8 +23,11 @@ public virtual string TransformText() {
23
23
Action < OptionHandler , String , String > getterSection = ( OptionHandler _xml , String beginLineSpace , String redirectionPrefix ) => {
24
24
foreach ( var simple in _xml . Simple ) {
25
25
string return_type = simple . type . QualifiedName ( ) ;
26
- if ( simple . IsSingle == false ) {
26
+ string call_type = "()" ;
27
+ // Use view() for array type because 'operator()' is deprecated for these types.
28
+ if ( ! simple . IsSingle ) {
27
29
return_type = return_type . ToArrayType ( ) ;
30
+ call_type = ".view()" ;
28
31
}
29
32
this . Write ( this . ToStringHelper . ToStringWithCulture ( beginLineSpace ) ) ;
30
33
this . Write ( this . ToStringHelper . ToStringWithCulture ( return_type ) ) ;
@@ -37,13 +40,14 @@ public virtual string TransformText() {
37
40
this . Write ( " return " ) ;
38
41
this . Write ( this . ToStringHelper . ToStringWithCulture ( redirectionPrefix ) ) ;
39
42
this . Write ( this . ToStringHelper . ToStringWithCulture ( simple . Name . ToFuncName ( ) ) ) ;
40
- this . Write ( "() ;\n " ) ;
43
+ this . Write ( this . ToStringHelper . ToStringWithCulture ( call_type ) ) ;
44
+ this . Write ( ";\n " ) ;
41
45
this . Write ( this . ToStringHelper . ToStringWithCulture ( beginLineSpace ) ) ;
42
46
this . Write ( "}\n " ) ;
43
47
}
44
48
foreach ( var enumerator in _xml . Enumeration ) {
45
49
string return_type = enumerator . type ;
46
- if ( enumerator . IsSingle == true ) {
50
+ if ( enumerator . IsSingle ) {
47
51
this . Write ( this . ToStringHelper . ToStringWithCulture ( beginLineSpace ) ) ;
48
52
this . Write ( this . ToStringHelper . ToStringWithCulture ( return_type ) ) ;
49
53
this . Write ( " " ) ;
@@ -64,7 +68,7 @@ public virtual string TransformText() {
64
68
this . Write ( this . ToStringHelper . ToStringWithCulture ( return_type . ToArrayType ( ) ) ) ;
65
69
this . Write ( " " ) ;
66
70
this . Write ( this . ToStringHelper . ToStringWithCulture ( enumerator . Name . ToFuncName ( ) ) ) ;
67
- this . Write ( "() const\n " ) ;
71
+ this . Write ( " const\n " ) ;
68
72
this . Write ( this . ToStringHelper . ToStringWithCulture ( beginLineSpace ) ) ;
69
73
this . Write ( "{\n " ) ;
70
74
this . Write ( this . ToStringHelper . ToStringWithCulture ( beginLineSpace ) ) ;
@@ -225,10 +229,11 @@ public virtual string TransformText() {
225
229
this . Write ( " = false;\n \t }\n " ) ;
226
230
}
227
231
} ;
228
- this . Write ( "/*---------------------------------------------------------------------------*/\n /" +
229
- "*---------------------------------------------------------------------------*/\n /" +
230
- "/ #WARNING#: This file has been generated automatically. Do not edit.\n // Arcane " +
231
- "version " ) ;
232
+ this . Write ( @"/*---------------------------------------------------------------------------*/
233
+ /*---------------------------------------------------------------------------*/
234
+ // #WARNING#: This file has been generated automatically. Do not edit.
235
+ // Generated from 'CaseOptionsT.tt' (version 2024.11.17)
236
+ // Arcane version " ) ;
232
237
this . Write ( this . ToStringHelper . ToStringWithCulture ( Version ) ) ;
233
238
this . Write ( " : " ) ;
234
239
this . Write ( this . ToStringHelper . ToStringWithCulture ( DateTime . Now ) ) ;
0 commit comments