Repository: dotnet/runtime
File: src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/TypeFixupSignature.cs (C#)

Code before:
                int bitIndex = 0;
                foreach (bool bit in gcMap)
                {
                    if (bit)
                    {
                        encodedGCRefMap[bitIndex / 8] |= (byte)(1 << (bitIndex & 7));
                    }

                    ++bitIndex;
                }

                dataBuilder.EmitBytes(encodedGCRefMap);
            }
        }

        private static void EncodeContinuationTypeLayout(ObjectDataSignatureBuilder dataBuilder, AsyncContinuationType type)
        {
            int pointerSize = type.Context.Target.PointerSize;
            int size = type.PointerMap.Size * pointerSize;
            int alignment = pointerSize;
            ReadyToRunTypeLayoutFlags flags = ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_Alignment | ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_GCLayout;
            Debug.Assert(alignment == pointerSize);
            flags |= ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_Alignment_Native;

            bool gcLayoutEmpty = true;
            foreach(bool hasPointer in type.PointerMap)
            {
                if (hasPointer)
                {
                    gcLayoutEmpty = false;
                    break;
                }
            }
            if (gcLayoutEmpty)
            {
                flags |= ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_GCLayout_Empty;
            }

            dataBuilder.EmitUInt((uint)flags);
            dataBuilder.EmitUInt((uint)size);

            if (!gcLayoutEmpty)
            {
                // Encode the GC pointer map
                GCPointerMap gcMap = type.PointerMap;

                byte[] encodedGCRefMap = new byte[(size / pointerSize + 7) / 8];
                int bitIndex = 0;
                foreach (bool bit in gcMap)
                {
                    if (bit)

Review comment (suggestion):
Missing space after 'foreach' keyword. The codebase convention is to use 'foreach (' with a space, consistent with the formatting throughout the project.
```suggestion
            foreach (bool hasPointer in type.PointerMap)
```

Code after:
                int bitIndex = 0;
                foreach (bool bit in gcMap)
                {
                    if (bit)
                    {
                        encodedGCRefMap[bitIndex / 8] |= (byte)(1 << (bitIndex & 7));
                    }

                    ++bitIndex;
                }

                dataBuilder.EmitBytes(encodedGCRefMap);
            }
        }

        private static void EncodeContinuationTypeLayout(ObjectDataSignatureBuilder dataBuilder, AsyncContinuationType type)
        {
            int pointerSize = type.Context.Target.PointerSize;
            int size = type.PointerMap.Size * pointerSize;
            int alignment = pointerSize;
            ReadyToRunTypeLayoutFlags flags = ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_Alignment | ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_GCLayout;
            Debug.Assert(alignment == pointerSize);
            flags |= ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_Alignment_Native;

            bool gcLayoutEmpty = true;
            foreach (bool hasPointer in type.PointerMap)
            {
                if (hasPointer)
                {
                    gcLayoutEmpty = false;
                    break;
                }
            }
            if (gcLayoutEmpty)
            {
                flags |= ReadyToRunTypeLayoutFlags.READYTORUN_LAYOUT_GCLayout_Empty;
            }

            dataBuilder.EmitUInt((uint)flags);
            dataBuilder.EmitUInt((uint)size);

            if (!gcLayoutEmpty)
            {
                // Encode the GC pointer map
                GCPointerMap gcMap = type.PointerMap;

                byte[] encodedGCRefMap = new byte[(size / pointerSize + 7) / 8];
                int bitIndex = 0;
                foreach (bool bit in gcMap)
                {
                    if (bit)