From b831e4d714f2595dc952fb9f15e198b353895e25 Mon Sep 17 00:00:00 2001 From: Josh Peterson Date: Fri, 21 Jun 2019 09:47:48 -0400 Subject: [PATCH] Put dummy types used in ProcessImportedType in the proper namespace These dummy types were added in 0e66d19f12c219c4e63cdab1f2d861993a7e3185 so that the `ProcessImportedType` method could be added to the `IDataContractSurrogate` interface properly. However, the types were not put in the proper namespace. Recent changes to the profile stubber to handle overloaded methods correctly caused an additional `ProcessImportedType` method to be incorrectly stubbed in. This change allows the profile stubber to correctly notice that this method exists, and not stubbing is done. --- mcs/class/System/System.CodeDom/CodeCompileUnit.cs | 5 +++++ mcs/class/System/System.CodeDom/CodeTypeDeclaration.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mcs/class/System/System.CodeDom/CodeCompileUnit.cs b/mcs/class/System/System.CodeDom/CodeCompileUnit.cs index e7694817a6a0..d4aa706cc148 100644 --- a/mcs/class/System/System.CodeDom/CodeCompileUnit.cs +++ b/mcs/class/System/System.CodeDom/CodeCompileUnit.cs @@ -1,7 +1,12 @@ #if UNITY_AOT +namespace System.CodeDom +{ + public class CodeCompileUnit { } +} + #endif \ No newline at end of file diff --git a/mcs/class/System/System.CodeDom/CodeTypeDeclaration.cs b/mcs/class/System/System.CodeDom/CodeTypeDeclaration.cs index d296a290a102..9f20cb75d095 100644 --- a/mcs/class/System/System.CodeDom/CodeTypeDeclaration.cs +++ b/mcs/class/System/System.CodeDom/CodeTypeDeclaration.cs @@ -1,7 +1,12 @@ #if UNITY_AOT +namespace System.CodeDom +{ + public class CodeTypeDeclaration { } +} + #endif \ No newline at end of file