@@ -463,29 +463,35 @@ private void GenerateInterface(Class @class)
463
463
WriteStartBraceIndent ( ) ;
464
464
465
465
foreach ( var method in @class . Methods . Where ( m =>
466
- ! ASTUtils . CheckIgnoreMethod ( m ) && m . Access == AccessSpecifier . Public ) )
466
+ ! ASTUtils . CheckIgnoreFunction ( m . OriginalFunction ) &&
467
+ m . Access == AccessSpecifier . Public ) )
467
468
{
468
469
PushBlock ( BlockKind . Method ) ;
469
470
GenerateDeclarationCommon ( method ) ;
470
471
471
472
var functionName = GetMethodIdentifier ( method ) ;
472
473
473
- Write ( "{0 } {1 }(", method . OriginalReturnType , functionName ) ;
474
+ Write ( $ " { method . OriginalReturnType } { functionName } (") ;
474
475
475
476
Write ( FormatMethodParameters ( method . Parameters ) ) ;
476
477
477
478
WriteLine ( ");" ) ;
478
479
479
480
PopBlock ( NewLineKind . BeforeNextBlock ) ;
480
481
}
481
- foreach ( var prop in @class . Properties . Where ( p => p . IsGenerated && p . Access == AccessSpecifier . Public ) )
482
+ foreach ( var prop in @class . Properties . Where ( p => p . IsGenerated &&
483
+ ( p . GetMethod == null || p . GetMethod . OriginalFunction == null ||
484
+ ! p . GetMethod . OriginalFunction . Ignore ) &&
485
+ ( p . SetMethod == null || p . SetMethod . OriginalFunction == null ||
486
+ ! p . SetMethod . OriginalFunction . Ignore ) &&
487
+ p . Access == AccessSpecifier . Public ) )
482
488
{
483
489
PushBlock ( BlockKind . Property ) ;
484
490
var type = prop . Type ;
485
491
if ( prop . Parameters . Count > 0 && prop . Type . IsPointerToPrimitiveType ( ) )
486
492
type = ( ( PointerType ) prop . Type ) . Pointee ;
487
493
GenerateDeclarationCommon ( prop ) ;
488
- Write ( "{0 } {1 } {{ ", type , GetPropertyName ( prop ) ) ;
494
+ Write ( $ " { type } { GetPropertyName ( prop ) } {{ ") ;
489
495
if ( prop . HasGetter )
490
496
Write ( "get; " ) ;
491
497
if ( prop . HasSetter )
0 commit comments