Skip to content

Add missed fields in internal readonly structs #17872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ internal partial interface ICascadingValueComponent
[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; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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.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 { } }
Expand All @@ -27,6 +29,8 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Microsoft.Asp
[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 { } }
Expand Down Expand Up @@ -151,6 +155,8 @@ protected override void ProcessPendingRender() { }
[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<byte> data, System.Threading.Tasks.TaskCompletionSource<object> completionSource, Microsoft.Extensions.Internal.ValueStopwatch valueStopwatch) { throw null; }
public long BatchId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public System.Threading.Tasks.TaskCompletionSource<object> CompletionSource { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
Expand Down Expand Up @@ -217,6 +223,7 @@ public void SetCircuitUser(System.Security.Claims.ClaimsPrincipal user) { }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
internal readonly partial struct CircuitId : System.IEquatable<Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>
{
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; } }
Expand Down Expand Up @@ -291,8 +298,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; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public void Dispose() { }
[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<string, System.Collections.Generic.List<IRouteConstraint>> Constraints;
public MatcherState(Microsoft.AspNetCore.Routing.RoutePatternMatcher matcher, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<Microsoft.AspNetCore.Routing.IRouteConstraint>> constraints) { throw null; }
Expand Down
7 changes: 7 additions & 0 deletions src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.Manual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,13 @@ public void Reset() { }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
internal readonly partial struct FilterCursorItem<TFilter, TFilterAsync>
{
[System.Diagnostics.DebuggerBrowsableAttribute(System.Diagnostics.DebuggerBrowsableState.Never)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
private readonly TFilter _Filter_k__BackingField;
[System.Diagnostics.DebuggerBrowsableAttribute(System.Diagnostics.DebuggerBrowsableState.Never)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
private readonly TFilterAsync _FilterAsync_k__BackingField;
private readonly int _dummyPrimitive;
public FilterCursorItem(TFilter filter, TFilterAsync filterAsync) { throw null; }
public TFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public TFilterAsync FilterAsync { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,11 @@ public SaveTempDataPropertyFilterBase(Microsoft.AspNetCore.Mvc.ViewFeatures.ITem
public void OnTempDataSaving(Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData) { }
protected void SetPropertyValues(Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData) { }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
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; } }
Expand Down Expand Up @@ -342,6 +345,7 @@ public MemberExpressionCacheKeyComparer() { }
[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; } }
Expand Down Expand Up @@ -572,6 +576,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<string> tokens) { throw null; }
public int ComponentId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public System.Collections.Generic.IEnumerable<string> Tokens { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public SocketAddress(System.Net.Sockets.AddressFamily family, int size) { }
[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; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ public Huffman() { }
internal readonly partial struct HeaderField
{
public const int RfcOverhead = 32;
private readonly object _dummy;
public HeaderField(System.Span<byte> name, System.Span<byte> value) { throw null; }
public int Length { get { throw null; } }
public byte[] Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
Expand Down