Skip to content

Commit

Permalink
Rearrange for better diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Feb 21, 2024
1 parent 78c22c1 commit 78d0647
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tools/dotnet-linker/Steps/StoreAttributesStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,6 @@ protected override void ProcessAttribute (ICustomAttributeProvider provider, Cus
break;
}
break;
case Namespaces.ObjCRuntime:
switch (attr_type.Name) {
case "AdoptsAttribute":
store = remove = LinkContext.App.Optimizations.RegisterProtocols == true;
break;
case "NativeAttribute":
store = remove = LinkContext.App.Optimizations.RemoveDynamicRegistrar == true;
break;
case "NativeNameAttribute":
store = remove = true;
break;
}
break;
case Namespaces.Foundation:
switch (attr_type.Name) {
case "ModelAttribute":
Expand All @@ -79,6 +66,19 @@ protected override void ProcessAttribute (ICustomAttributeProvider provider, Cus
break;
}
break;
case Namespaces.ObjCRuntime:
switch (attr_type.Name) {
case "AdoptsAttribute":
store = remove = LinkContext.App.Optimizations.RegisterProtocols == true;
break;
case "NativeAttribute":
store = remove = LinkContext.App.Optimizations.RemoveDynamicRegistrar == true;
break;
case "NativeNameAttribute":
store = remove = true;
break;
}
break;
}

if (store)
Expand Down

0 comments on commit 78d0647

Please sign in to comment.