@@ -463,29 +463,35 @@ private void GenerateInterface(Class @class)
463463 WriteStartBraceIndent ( ) ;
464464
465465 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 ) )
467468 {
468469 PushBlock ( BlockKind . Method ) ;
469470 GenerateDeclarationCommon ( method ) ;
470471
471472 var functionName = GetMethodIdentifier ( method ) ;
472473
473- Write ( "{0 } {1 }(", method . OriginalReturnType , functionName ) ;
474+ Write ( $ " { method . OriginalReturnType } { functionName } (") ;
474475
475476 Write ( FormatMethodParameters ( method . Parameters ) ) ;
476477
477478 WriteLine ( ");" ) ;
478479
479480 PopBlock ( NewLineKind . BeforeNextBlock ) ;
480481 }
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 ) )
482488 {
483489 PushBlock ( BlockKind . Property ) ;
484490 var type = prop . Type ;
485491 if ( prop . Parameters . Count > 0 && prop . Type . IsPointerToPrimitiveType ( ) )
486492 type = ( ( PointerType ) prop . Type ) . Pointee ;
487493 GenerateDeclarationCommon ( prop ) ;
488- Write ( "{0 } {1 } {{ ", type , GetPropertyName ( prop ) ) ;
494+ Write ( $ " { type } { GetPropertyName ( prop ) } {{ ") ;
489495 if ( prop . HasGetter )
490496 Write ( "get; " ) ;
491497 if ( prop . HasSetter )
0 commit comments