From 4298dc409c30f2138c1d9ce0d5424d12694c0200 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Wed, 28 Aug 2019 11:27:03 -0700 Subject: [PATCH] Update manually generated reference for RenderTreeFrame Fixes https://github.com/aspnet/AspNetCore/issues/13504 --- ...etCore.Components.netstandard2.0.Manual.cs | 85 +++++++++++-------- 1 file changed, 48 insertions(+), 37 deletions(-) diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs index ed14f101cd0e..0f6b69993535 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs @@ -1,47 +1,58 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +using System; +using System.Runtime.InteropServices; +using Microsoft.AspNetCore.Components.Rendering; + namespace Microsoft.AspNetCore.Components.RenderTree { // https://github.com/dotnet/arcade/pull/2033 - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)] + [StructLayout(LayoutKind.Explicit, Pack = 4)] public readonly partial struct RenderTreeFrame { - [System.Runtime.InteropServices.FieldOffsetAttribute(8)] - public readonly int AttributeEventHandlerId; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly string AttributeName; - [System.Runtime.InteropServices.FieldOffsetAttribute(24)] - public readonly object AttributeValue; - [System.Runtime.InteropServices.FieldOffsetAttribute(12)] - public readonly int ComponentId; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly System.Action ComponentReferenceCaptureAction; - [System.Runtime.InteropServices.FieldOffsetAttribute(8)] - public readonly int ComponentReferenceCaptureParentFrameIndex; - [System.Runtime.InteropServices.FieldOffsetAttribute(8)] - public readonly int ComponentSubtreeLength; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly System.Type ComponentType; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly string ElementName; - [System.Runtime.InteropServices.FieldOffsetAttribute(24)] - public readonly System.Action ElementReferenceCaptureAction; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly string ElementReferenceCaptureId; - [System.Runtime.InteropServices.FieldOffsetAttribute(8)] - public readonly int ElementSubtreeLength; - [System.Runtime.InteropServices.FieldOffsetAttribute(4)] - public readonly Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType FrameType; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly string MarkupContent; - [System.Runtime.InteropServices.FieldOffsetAttribute(8)] - public readonly int RegionSubtreeLength; - [System.Runtime.InteropServices.FieldOffsetAttribute(0)] - public readonly int Sequence; - [System.Runtime.InteropServices.FieldOffsetAttribute(16)] - public readonly string TextContent; - public Microsoft.AspNetCore.Components.IComponent Component { get { throw null; } } - public override string ToString() { throw null; } + [FieldOffset(0)] public readonly int Sequence; + + [FieldOffset(4)] public readonly RenderTreeFrameType FrameType; + + [FieldOffset(8)] public readonly int ElementSubtreeLength; + + [FieldOffset(16)] public readonly string ElementName; + + [FieldOffset(24)] public readonly object ElementKey; + + [FieldOffset(16)] public readonly string TextContent; + + [FieldOffset(8)] public readonly ulong AttributeEventHandlerId; + + [FieldOffset(16)] public readonly string AttributeName; + + [FieldOffset(24)] public readonly object AttributeValue; + + [FieldOffset(32)] public readonly string AttributeEventUpdatesAttributeName; + + [FieldOffset(8)] public readonly int ComponentSubtreeLength; + + [FieldOffset(12)] public readonly int ComponentId; + + [FieldOffset(16)] public readonly Type ComponentType; + + [FieldOffset(32)] public readonly object ComponentKey; + + public IComponent Component => null; + + [FieldOffset(8)] public readonly int RegionSubtreeLength; + + [FieldOffset(16)] public readonly string ElementReferenceCaptureId; + + [FieldOffset(24)] public readonly Action ElementReferenceCaptureAction; + + [FieldOffset(8)] public readonly int ComponentReferenceCaptureParentFrameIndex; + + [FieldOffset(16)] public readonly Action ComponentReferenceCaptureAction; + + [FieldOffset(16)] public readonly string MarkupContent; + + public override string ToString() => null; } }