@@ -25,6 +25,7 @@ public override void Setup(Driver driver)
25
25
base . Setup ( driver ) ;
26
26
27
27
driver . ParserOptions . UnityBuild = true ;
28
+ driver . ParserOptions . SkipFunctionBodies = false ;
28
29
driver . ParserOptions . AddSupportedFunctionTemplates ( "FunctionTemplate" ) ;
29
30
30
31
driver . Options . GenerateFreeStandingFunctionsClassName = t => t . FileNameWithoutExtension + "Cool" ;
@@ -42,7 +43,7 @@ public override void SetupPasses(Driver driver)
42
43
driver . Options . GenerateClassTemplates = true ;
43
44
44
45
var disableNativeToManaged = new ClassGenerationOptions { GenerateNativeToManaged = false } ;
45
- driver . Options . GetClassGenerationOptions = e =>
46
+ driver . Options . GetClassGenerationOptions = e =>
46
47
{
47
48
return e . Name == "ClassWithoutNativeToManaged" ? disableNativeToManaged : null ;
48
49
} ;
@@ -237,16 +238,12 @@ public override Type SignatureType(TypePrinterContext ctx)
237
238
var specialization = type . GetClassTemplateSpecialization ( ) ;
238
239
var typePrinter = new CSharpTypePrinter ( null ) ;
239
240
typePrinter . PushContext ( TypePrinterContextKind . Native ) ;
240
- return new CustomType ( string . Format ( $@ "{
241
- specialization . Visit ( typePrinter ) } {
242
- ( Type . IsAddress ( ) ? "*" : string . Empty ) } " , specialization . Visit ( typePrinter ) ,
241
+ return new CustomType ( string . Format ( $@ "{ specialization . Visit ( typePrinter ) } { ( Type . IsAddress ( ) ? "*" : string . Empty ) } ", specialization . Visit ( typePrinter ) ,
243
242
Type . IsAddress ( ) ? "*" : string . Empty ) ) ;
244
243
}
245
244
246
245
return new CustomType (
247
- $@ "global::System.Collections.Generic.{
248
- ( ctx . MarshalKind == MarshalKind . DefaultExpression ? "List" : "IList" ) } <{
249
- ctx . GetTemplateParameterList ( ) } >" ) ;
246
+ $@ "global::System.Collections.Generic.{ ( ctx . MarshalKind == MarshalKind . DefaultExpression ? "List" : "IList" ) } <{ ctx . GetTemplateParameterList ( ) } >") ;
250
247
}
251
248
252
249
public override void MarshalToNative ( MarshalContext ctx )
@@ -292,9 +289,7 @@ public override Type SignatureType(TypePrinterContext ctx)
292
289
{
293
290
if ( ctx . Kind == TypePrinterContextKind . Native )
294
291
{
295
- return new CustomType ( $@ "global::CSharp.QString.{
296
- Helpers . InternalStruct } {
297
- ( ctx . Type . IsAddress ( ) ? "*" : string . Empty ) } " ) ;
292
+ return new CustomType ( $@ "global::CSharp.QString.{ Helpers . InternalStruct } { ( ctx . Type . IsAddress ( ) ? "*" : string . Empty ) } ") ;
298
293
}
299
294
return new CILType ( typeof ( string ) ) ;
300
295
}
0 commit comments