From f3de083ec998209972331077d2810f59840a412a Mon Sep 17 00:00:00 2001 From: Kouji Matsui Date: Wed, 1 May 2024 18:23:09 +0900 Subject: [PATCH] WIP --- ...nkerTests.StructureWithArray1.verified.txt | 30 ++-- ...nkerTests.StructureWithArray2.verified.txt | 30 ++-- ...nkerTests.StructureWithArray3.verified.txt | 146 +++++++++--------- ...ts.StructureWithFlexibleArray.verified.txt | 30 ++-- .../LinkerTests.ValueArray1.verified.txt | 40 ++--- .../LinkerTests.ValueArray2.verified.txt | 40 ++--- .../LinkerTests.ValueArray3.verified.txt | 40 ++--- .../LinkerTests.ValueArray4.verified.txt | 40 ++--- .../LinkerTests.ValueArray5.verified.txt | 40 ++--- .../LinkerTests.ValueArray6.verified.txt | 40 ++--- ...erTests.ValueArrayWithBoolean.verified.txt | 40 ++--- ...inkerTests.ValueArrayWithChar.verified.txt | 40 ++--- .../TypeGenerator_FixedLengthArrayType.cs | 2 +- 13 files changed, 279 insertions(+), 279 deletions(-) diff --git a/chibild/chibild.core.Tests/LinkerTests.StructureWithArray1.verified.txt b/chibild/chibild.core.Tests/LinkerTests.StructureWithArray1.verified.txt index ea60069..205bc77 100644 --- a/chibild/chibild.core.Tests/LinkerTests.StructureWithArray1.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.StructureWithArray1.verified.txt @@ -33,6 +33,21 @@ .field public int32 c } // end of class C.type.foo +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static void main() cil managed + { + // Code size 11 (0xb) + .maxstack 1 + .locals (valuetype C.type.foo V_0) + IL_0000: ldloca V_0 + IL_0004: initobj C.type.foo + IL_000a: ret + } // end of method text::main + +} // end of class C.text + .class public sequential ansi sealed System.SByte_len4 extends [mscorlib]System.ValueType { @@ -106,21 +121,6 @@ } // end of property SByte_len4::Item } // end of class System.SByte_len4 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static void main() cil managed - { - // Code size 11 (0xb) - .maxstack 1 - .locals (valuetype C.type.foo V_0) - IL_0000: ldloca V_0 - IL_0004: initobj C.type.foo - IL_000a: ret - } // end of method text::main - -} // end of class C.text - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.StructureWithArray2.verified.txt b/chibild/chibild.core.Tests/LinkerTests.StructureWithArray2.verified.txt index 4e56465..a20f5b4 100644 --- a/chibild/chibild.core.Tests/LinkerTests.StructureWithArray2.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.StructureWithArray2.verified.txt @@ -33,6 +33,21 @@ .field public int32 c } // end of class C.type.foo +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static void main() cil managed + { + // Code size 11 (0xb) + .maxstack 1 + .locals (valuetype C.type.foo V_0) + IL_0000: ldloca V_0 + IL_0004: initobj C.type.foo + IL_000a: ret + } // end of method text::main + +} // end of class C.text + .class public sequential ansi sealed System.SByte_len4 extends [mscorlib]System.ValueType { @@ -183,21 +198,6 @@ } // end of property SByte_len4_len3::Item } // end of class System.SByte_len4_len3 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static void main() cil managed - { - // Code size 11 (0xb) - .maxstack 1 - .locals (valuetype C.type.foo V_0) - IL_0000: ldloca V_0 - IL_0004: initobj C.type.foo - IL_000a: ret - } // end of method text::main - -} // end of class C.text - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.StructureWithArray3.verified.txt b/chibild/chibild.core.Tests/LinkerTests.StructureWithArray3.verified.txt index 27421e4..c9d88f5 100644 --- a/chibild/chibild.core.Tests/LinkerTests.StructureWithArray3.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.StructureWithArray3.verified.txt @@ -41,79 +41,6 @@ .field public int32 c } // end of class C.type.bar -.class public sequential ansi sealed System.SByte_len4 - extends [mscorlib]System.ValueType -{ - .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = ( 01 00 04 49 74 65 6D 00 00 ) // ...Item.. - .field private int8 item0 - .field private int8 item1 - .field private int8 item2 - .field private int8 item3 - .method public hidebysig specialname instance int32 - get_Length() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldc.i4 0x4 - IL_0005: ret - } // end of method SByte_len4::get_Length - - .method public hidebysig specialname instance int8 - get_Item(int32 index) cil managed - { - // Code size 22 (0x16) - .maxstack 8 - IL_0000: ldarg.1 - IL_0001: ldc.i4 0x4 - IL_0006: clt - IL_0008: brtrue.s IL_0010 - - IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor() - IL_000f: throw - - IL_0010: ldarg.1 - IL_0011: ldarg.0 - IL_0012: conv.u - IL_0013: add - IL_0014: ldind.i1 - IL_0015: ret - } // end of method SByte_len4::get_Item - - .method public hidebysig specialname instance void - set_Item(int32 index, - int8 'value') cil managed - { - // Code size 23 (0x17) - .maxstack 8 - IL_0000: ldarg.1 - IL_0001: ldc.i4 0x4 - IL_0006: clt - IL_0008: brtrue.s IL_0010 - - IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor() - IL_000f: throw - - IL_0010: ldarg.1 - IL_0011: ldarg.0 - IL_0012: conv.u - IL_0013: add - IL_0014: ldarg.2 - IL_0015: stind.i1 - IL_0016: ret - } // end of method SByte_len4::set_Item - - .property instance callconv(8) int32 Length() - { - .get instance int32 System.SByte_len4::get_Length() - } // end of property SByte_len4::Length - .property instance callconv(8) int8 Item(int32) - { - .get instance int8 System.SByte_len4::get_Item(int32) - .set instance void System.SByte_len4::set_Item(int32, - int8) - } // end of property SByte_len4::Item -} // end of class System.SByte_len4 - .class public abstract auto ansi sealed C.text extends [mscorlib]System.Object { @@ -206,6 +133,79 @@ } // end of property bar_len3::Item } // end of class C.type.bar_len3 +.class public sequential ansi sealed System.SByte_len4 + extends [mscorlib]System.ValueType +{ + .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = ( 01 00 04 49 74 65 6D 00 00 ) // ...Item.. + .field private int8 item0 + .field private int8 item1 + .field private int8 item2 + .field private int8 item3 + .method public hidebysig specialname instance int32 + get_Length() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldc.i4 0x4 + IL_0005: ret + } // end of method SByte_len4::get_Length + + .method public hidebysig specialname instance int8 + get_Item(int32 index) cil managed + { + // Code size 22 (0x16) + .maxstack 8 + IL_0000: ldarg.1 + IL_0001: ldc.i4 0x4 + IL_0006: clt + IL_0008: brtrue.s IL_0010 + + IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor() + IL_000f: throw + + IL_0010: ldarg.1 + IL_0011: ldarg.0 + IL_0012: conv.u + IL_0013: add + IL_0014: ldind.i1 + IL_0015: ret + } // end of method SByte_len4::get_Item + + .method public hidebysig specialname instance void + set_Item(int32 index, + int8 'value') cil managed + { + // Code size 23 (0x17) + .maxstack 8 + IL_0000: ldarg.1 + IL_0001: ldc.i4 0x4 + IL_0006: clt + IL_0008: brtrue.s IL_0010 + + IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor() + IL_000f: throw + + IL_0010: ldarg.1 + IL_0011: ldarg.0 + IL_0012: conv.u + IL_0013: add + IL_0014: ldarg.2 + IL_0015: stind.i1 + IL_0016: ret + } // end of method SByte_len4::set_Item + + .property instance callconv(8) int32 Length() + { + .get instance int32 System.SByte_len4::get_Length() + } // end of property SByte_len4::Length + .property instance callconv(8) int8 Item(int32) + { + .get instance int8 System.SByte_len4::get_Item(int32) + .set instance void System.SByte_len4::set_Item(int32, + int8) + } // end of property SByte_len4::Item +} // end of class System.SByte_len4 + // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.StructureWithFlexibleArray.verified.txt b/chibild/chibild.core.Tests/LinkerTests.StructureWithFlexibleArray.verified.txt index 83a22b5..5231514 100644 --- a/chibild/chibild.core.Tests/LinkerTests.StructureWithFlexibleArray.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.StructureWithFlexibleArray.verified.txt @@ -33,6 +33,21 @@ .field public valuetype System.Int32_flex c } // end of class C.type.foo +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static void main() cil managed + { + // Code size 6 (0x6) + .maxstack 1 + .locals (valuetype C.type.foo* V_0) + IL_0000: ldc.i4.0 + IL_0001: stloc V_0 + IL_0005: ret + } // end of method text::main + +} // end of class C.text + .class public sequential ansi sealed System.Int32_flex extends [mscorlib]System.ValueType { @@ -79,21 +94,6 @@ } // end of property Int32_flex::Item } // end of class System.Int32_flex -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static void main() cil managed - { - // Code size 6 (0x6) - .maxstack 1 - .locals (valuetype C.type.foo* V_0) - IL_0000: ldc.i4.0 - IL_0001: stloc V_0 - IL_0005: ret - } // end of method text::main - -} // end of class C.text - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArray1.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArray1.verified.txt index f3aa575..46521c2 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArray1.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArray1.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.SByte_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.SByte_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static initonly valuetype System.SByte_len6 bar at I_00002090 +} // end of class C.data + .class public sequential ansi sealed System.SByte_len6 extends [mscorlib]System.ValueType { @@ -100,26 +120,6 @@ } // end of property SByte_len6::Item } // end of class System.SByte_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.SByte_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.SByte_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static initonly valuetype System.SByte_len6 bar at I_00002090 -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArray2.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArray2.verified.txt index 91772cd..6429563 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArray2.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArray2.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Byte_len6* + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Byte_len6* C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Byte_len6* bar +} // end of class C.data + .class public sequential ansi sealed System.Byte_len6 extends [mscorlib]System.ValueType { @@ -100,26 +120,6 @@ } // end of property Byte_len6::Item } // end of class System.Byte_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Byte_len6* - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Byte_len6* C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Byte_len6* bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArray3.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArray3.verified.txt index d09824d..0950a3b 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArray3.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArray3.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Byte_ptr_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Byte_ptr_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Byte_ptr_len6 bar +} // end of class C.data + .class public sequential ansi sealed System.Byte_ptr_len6 extends [mscorlib]System.ValueType { @@ -104,26 +124,6 @@ } // end of property Byte_ptr_len6::Item } // end of class System.Byte_ptr_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Byte_ptr_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Byte_ptr_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Byte_ptr_len6 bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArray4.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArray4.verified.txt index 801e48f..94696e1 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArray4.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArray4.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Byte_ref_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Byte_ref_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Byte_ref_len6 bar +} // end of class C.data + .class public sequential ansi sealed System.Byte_ref_len6 extends [mscorlib]System.ValueType { @@ -104,26 +124,6 @@ } // end of property Byte_ref_len6::Item } // end of class System.Byte_ref_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Byte_ref_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Byte_ref_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Byte_ref_len6 bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArray5.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArray5.verified.txt index cf9a1c6..d16d525 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArray5.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArray5.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Byte_len3_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Byte_len3_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Byte_len3_len6 bar +} // end of class C.data + .class public sequential ansi sealed System.Byte_len3 extends [mscorlib]System.ValueType { @@ -177,26 +197,6 @@ } // end of property Byte_len3_len6::Item } // end of class System.Byte_len3_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Byte_len3_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Byte_len3_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Byte_len3_len6 bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArray6.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArray6.verified.txt index 1b22f81..f40fd1f 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArray6.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArray6.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Byte_len3_ptr_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Byte_len3_ptr_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Byte_len3_ptr_len6 bar +} // end of class C.data + .class public sequential ansi sealed System.Byte_len3 extends [mscorlib]System.ValueType { @@ -177,26 +197,6 @@ } // end of property Byte_len3_ptr_len6::Item } // end of class System.Byte_len3_ptr_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Byte_len3_ptr_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Byte_len3_ptr_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Byte_len3_ptr_len6 bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithBoolean.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithBoolean.verified.txt index 7c62b26..396fbb1 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithBoolean.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithBoolean.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Boolean_len3_ptr_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Boolean_len3_ptr_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Boolean_len3_ptr_len6 bar +} // end of class C.data + .class public sequential ansi sealed System.Boolean_len3 extends [mscorlib]System.ValueType { @@ -178,26 +198,6 @@ } // end of property Boolean_len3_ptr_len6::Item } // end of class System.Boolean_len3_ptr_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Boolean_len3_ptr_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Boolean_len3_ptr_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Boolean_len3_ptr_len6 bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithChar.verified.txt b/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithChar.verified.txt index 6b35ddc..c2ee36a 100644 --- a/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithChar.verified.txt +++ b/chibild/chibild.core.Tests/LinkerTests.ValueArrayWithChar.verified.txt @@ -25,6 +25,26 @@ // =============== CLASS MEMBERS DECLARATION =================== +.class public abstract auto ansi sealed C.text + extends [mscorlib]System.Object +{ + .method public static valuetype System.Char_len3_ptr_len6 + foo() cil managed + { + // Code size 6 (0x6) + .maxstack 8 + IL_0000: ldsfld valuetype System.Char_len3_ptr_len6 C.data::bar + IL_0005: ret + } // end of method text::foo + +} // end of class C.text + +.class public abstract auto ansi sealed beforefieldinit C.data + extends [mscorlib]System.Object +{ + .field public static valuetype System.Char_len3_ptr_len6 bar +} // end of class C.data + .class public sequential ansi sealed System.Char_len3 extends [mscorlib]System.ValueType { @@ -182,26 +202,6 @@ } // end of property Char_len3_ptr_len6::Item } // end of class System.Char_len3_ptr_len6 -.class public abstract auto ansi sealed C.text - extends [mscorlib]System.Object -{ - .method public static valuetype System.Char_len3_ptr_len6 - foo() cil managed - { - // Code size 6 (0x6) - .maxstack 8 - IL_0000: ldsfld valuetype System.Char_len3_ptr_len6 C.data::bar - IL_0005: ret - } // end of method text::foo - -} // end of class C.text - -.class public abstract auto ansi sealed beforefieldinit C.data - extends [mscorlib]System.Object -{ - .field public static valuetype System.Char_len3_ptr_len6 bar -} // end of class C.data - // ============================================================= diff --git a/chibild/chibild.core/Generating/TypeGenerator_FixedLengthArrayType.cs b/chibild/chibild.core/Generating/TypeGenerator_FixedLengthArrayType.cs index 30c7ad4..e838b69 100644 --- a/chibild/chibild.core/Generating/TypeGenerator_FixedLengthArrayType.cs +++ b/chibild/chibild.core/Generating/TypeGenerator_FixedLengthArrayType.cs @@ -70,7 +70,7 @@ private static bool TryCreateFixedLengthArrayType( } else { - ns = ""; + ns = elementType.Namespace; name = fullName; }