From 3a674893989fcfb2710465ddba66cae80a23ba50 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Fri, 13 Dec 2019 12:13:15 -0800 Subject: [PATCH] Add missing `_dummy` and `_dummyPrimitive` fields - probably need to double-check for similar gaps in 'release/3.0' branch --- .../ref/Microsoft.AspNetCore.Components.Manual.cs | 1 + .../Microsoft.AspNetCore.Components.Server.Manual.cs | 10 +++++++++- .../Routing/ref/Microsoft.AspNetCore.Routing.Manual.cs | 1 + .../Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs | 5 +++++ .../ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs | 1 + .../Microsoft.AspNetCore.Server.Kestrel.Core.Manual.cs | 1 + 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs index e1f91bdbcb..fe78ce3bd4 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs @@ -83,6 +83,7 @@ namespace Microsoft.AspNetCore.Components [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct CascadingParameterState { + private readonly object _dummy; public CascadingParameterState(string localValueName, Microsoft.AspNetCore.Components.ICascadingValueComponent valueSupplier) { throw null; } public string LocalValueName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Components.ICascadingValueComponent ValueSupplier { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } diff --git a/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs b/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs index b13545dee9..438fbb599b 100644 --- a/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs +++ b/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs @@ -20,6 +20,8 @@ namespace Microsoft.AspNetCore.Components [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal partial struct ServerComponent { + private object _dummy; + private int _dummyPrimitive; public ServerComponent(int sequence, string assemblyName, string typeName, System.Collections.Generic.IList parametersDefinitions, System.Collections.Generic.IList parameterValues, System.Guid invocationId) { throw null; } public string AssemblyName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public System.Guid InvocationId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } @@ -43,6 +45,8 @@ namespace Microsoft.AspNetCore.Components [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal partial struct ServerComponentMarker { + private object _dummy; + private int _dummyPrimitive; public string Descriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public string PrerenderId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public int? Sequence { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } @@ -173,6 +177,8 @@ namespace Microsoft.AspNetCore.Components.Server.Circuits [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct UnacknowledgedRenderBatch { + private readonly object _dummy; + private readonly int _dummyPrimitive; public UnacknowledgedRenderBatch(long batchId, Microsoft.AspNetCore.Components.Server.Circuits.ArrayBuilder data, System.Threading.Tasks.TaskCompletionSource completionSource, Microsoft.Extensions.Internal.ValueStopwatch valueStopwatch) { throw null; } public long BatchId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public System.Threading.Tasks.TaskCompletionSource CompletionSource { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } @@ -239,6 +245,7 @@ namespace Microsoft.AspNetCore.Components.Server.Circuits [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct CircuitId : System.IEquatable { + private readonly object _dummy; public CircuitId(string secret, string id) { throw null; } public string Id { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public string Secret { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } @@ -313,8 +320,9 @@ namespace Microsoft.Extensions.Internal [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal partial struct ValueStopwatch { + private int _dummyPrimitive; public bool IsActive { get { throw null; } } public System.TimeSpan GetElapsedTime() { throw null; } public static Microsoft.Extensions.Internal.ValueStopwatch StartNew() { throw null; } } -} \ No newline at end of file +} diff --git a/src/Http/Routing/ref/Microsoft.AspNetCore.Routing.Manual.cs b/src/Http/Routing/ref/Microsoft.AspNetCore.Routing.Manual.cs index eac3daae29..7d939eeb89 100644 --- a/src/Http/Routing/ref/Microsoft.AspNetCore.Routing.Manual.cs +++ b/src/Http/Routing/ref/Microsoft.AspNetCore.Routing.Manual.cs @@ -367,6 +367,7 @@ namespace Microsoft.AspNetCore.Routing [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct MatcherState { + private readonly object _dummy; public readonly Microsoft.AspNetCore.Routing.RoutePatternMatcher Matcher; public readonly System.Collections.Generic.Dictionary> Constraints; public MatcherState(Microsoft.AspNetCore.Routing.RoutePatternMatcher matcher, System.Collections.Generic.Dictionary> constraints) { throw null; } diff --git a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs index e6e866cc0d..acc3d82bb8 100644 --- a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs +++ b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs @@ -264,6 +264,8 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters } internal readonly partial struct LifecycleProperty { + private readonly object _dummy; + private readonly int _dummyPrimitive; public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) { throw null; } public string Key { get { throw null; } } public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } } @@ -363,6 +365,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct MemberExpressionCacheKey { + private readonly object _dummy; public MemberExpressionCacheKey(System.Type modelType, System.Linq.Expressions.MemberExpression memberExpression) { throw null; } public MemberExpressionCacheKey(System.Type modelType, System.Reflection.MemberInfo[] members) { throw null; } public System.Linq.Expressions.MemberExpression MemberExpression { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } @@ -590,6 +593,8 @@ namespace Microsoft.AspNetCore.Components.Rendering [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct ComponentRenderedText { + private readonly object _dummy; + private readonly int _dummyPrimitive; public ComponentRenderedText(int componentId, System.Collections.Generic.IEnumerable tokens) { throw null; } public int ComponentId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public System.Collections.Generic.IEnumerable Tokens { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } diff --git a/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs b/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs index 2bc4413c5a..bb60aa1cbd 100644 --- a/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs +++ b/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs @@ -97,6 +97,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct CookedUrl { + private readonly int _dummyPrimitive; internal CookedUrl(Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_COOKED_URL nativeCookedUrl) { throw null; } internal string GetAbsPath() { throw null; } internal string GetFullUrl() { throw null; } diff --git a/src/Servers/Kestrel/Core/ref/Microsoft.AspNetCore.Server.Kestrel.Core.Manual.cs b/src/Servers/Kestrel/Core/ref/Microsoft.AspNetCore.Server.Kestrel.Core.Manual.cs index cdd28e0d0d..a0d91f8606 100644 --- a/src/Servers/Kestrel/Core/ref/Microsoft.AspNetCore.Server.Kestrel.Core.Manual.cs +++ b/src/Servers/Kestrel/Core/ref/Microsoft.AspNetCore.Server.Kestrel.Core.Manual.cs @@ -1552,6 +1552,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.HPack internal readonly partial struct HeaderField { public const int RfcOverhead = 32; + private readonly object _dummy; public HeaderField(System.Span name, System.Span value) { throw null; } public int Length { get { throw null; } } public byte[] Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }