File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
src/rgen/Microsoft.Macios.Generator/Extensions
tests/rgen/Microsoft.Macios.Generator.Tests/Classes/Data Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ public static IReadOnlySet<string> CollectUsingStatements (this SyntaxTree self)
1616 var usingDirectives = self . GetRoot ( )
1717 . DescendantNodes ( )
1818 . OfType < UsingDirectiveSyntax > ( )
19+ . Where ( d => d . Alias is null )
1920 . Select ( d => d . Name ! . ToString ( ) ) . ToArray ( ) ;
2021
2122 // remove any possible duplicates by using a set
Original file line number Diff line number Diff line change 88using Foundation ;
99using ObjCBindings ;
1010using ObjCRuntime ;
11+ using nfloat = System . Runtime . InteropServices . NFloat ;
1112
1213namespace TestNamespace ;
1314
Original file line number Diff line number Diff line change @@ -439,15 +439,15 @@ public virtual partial bool IsLenient
439439 [ SupportedOSPlatform ( "tvos" ) ]
440440 [ SupportedOSPlatform ( "maccatalyst13.1" ) ]
441441 [ BindingImpl ( BindingImplOptions . GeneratedCode | BindingImplOptions . Optimizable ) ]
442- public virtual partial global ::CompareGeneratedCode . CompareGeneratedCode . netmodule . . nfloat LineSpacing
442+ public virtual partial global ::System . Runtime . InteropServices . NFloat LineSpacing
443443 {
444444 [ SupportedOSPlatform ( "macos" ) ]
445445 [ SupportedOSPlatform ( "ios" ) ]
446446 [ SupportedOSPlatform ( "tvos" ) ]
447447 [ SupportedOSPlatform ( "maccatalyst13.1" ) ]
448448 get
449449 {
450- global ::CompareGeneratedCode . CompareGeneratedCode . netmodule .. nfloat ret;
450+ global ::System . Runtime . InteropServices . NFloat ret ;
451451 if ( IsDirectBinding ) {
452452 ret = global ::ObjCRuntime . Messaging . nfloat_objc_msgSend ( this . Handle , global ::ObjCRuntime . Selector . GetHandle ( "lineSpacing" ) ) ;
453453 } else {
Original file line number Diff line number Diff line change @@ -439,15 +439,15 @@ public virtual partial bool IsLenient
439439 [ SupportedOSPlatform ( "tvos" ) ]
440440 [ SupportedOSPlatform ( "maccatalyst13.1" ) ]
441441 [ BindingImpl ( BindingImplOptions . GeneratedCode | BindingImplOptions . Optimizable ) ]
442- public virtual partial global ::CompareGeneratedCode . CompareGeneratedCode . netmodule . . nfloat LineSpacing
442+ public virtual partial global ::System . Runtime . InteropServices . NFloat LineSpacing
443443 {
444444 [ SupportedOSPlatform ( "macos" ) ]
445445 [ SupportedOSPlatform ( "ios" ) ]
446446 [ SupportedOSPlatform ( "tvos" ) ]
447447 [ SupportedOSPlatform ( "maccatalyst13.1" ) ]
448448 get
449449 {
450- global ::CompareGeneratedCode . CompareGeneratedCode . netmodule .. nfloat ret;
450+ global ::System . Runtime . InteropServices . NFloat ret ;
451451 if ( IsDirectBinding ) {
452452 ret = global ::ObjCRuntime . Messaging . nfloat_objc_msgSend ( this . Handle , global ::ObjCRuntime . Selector . GetHandle ( "lineSpacing" ) ) ;
453453 } else {
Original file line number Diff line number Diff line change @@ -439,15 +439,15 @@ public virtual partial bool IsLenient
439439 [ SupportedOSPlatform ( "tvos" ) ]
440440 [ SupportedOSPlatform ( "maccatalyst13.1" ) ]
441441 [ BindingImpl ( BindingImplOptions . GeneratedCode | BindingImplOptions . Optimizable ) ]
442- public virtual partial global ::CompareGeneratedCode . CompareGeneratedCode . netmodule . . nfloat LineSpacing
442+ public virtual partial global ::System . Runtime . InteropServices . NFloat LineSpacing
443443 {
444444 [ SupportedOSPlatform ( "macos" ) ]
445445 [ SupportedOSPlatform ( "ios" ) ]
446446 [ SupportedOSPlatform ( "tvos" ) ]
447447 [ SupportedOSPlatform ( "maccatalyst13.1" ) ]
448448 get
449449 {
450- global ::CompareGeneratedCode . CompareGeneratedCode . netmodule .. nfloat ret;
450+ global ::System . Runtime . InteropServices . NFloat ret ;
451451 if ( IsDirectBinding ) {
452452 ret = global ::ObjCRuntime . Messaging . nfloat_objc_msgSend ( this . Handle , global ::ObjCRuntime . Selector . GetHandle ( "lineSpacing" ) ) ;
453453 } else {
You can’t perform that action at this time.
0 commit comments