Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AssemblyWithUnusedAttributeOnGenericParameter.il « Dependencies « OnlyKeepUsed « Attributes « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5bfc9e7a1cb76b43d25af9a8de0a355edcf41a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.assembly extern mscorlib
{
}
.assembly 'library'
{
  .hash algorithm 0x00008004
  .ver  0:0:0:0
}
.module library.dll


.namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed.Dependencies
{

  .class public auto ansi beforefieldinit FooAttribute
    extends [mscorlib]System.Attribute
  {

    .method public hidebysig specialname rtspecialname
           instance default void '.ctor' ()  cil managed
    {
    .maxstack 8
    IL_0000:  ldarg.0
    IL_0001:  call instance void class [mscorlib]System.Attribute::'.ctor'()
    IL_0006:  ret
    }

  }

  .class public auto ansi beforefieldinit GenericType`1<T>
    extends [mscorlib]System.Object
  {
    .param type T
    .custom instance void class Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed.Dependencies.FooAttribute::'.ctor'() =  (01 00 00 00 ) // ....

    .field private !T input

    .method public hidebysig specialname rtspecialname
          instance default void '.ctor' (!T input)  cil managed
    {
    .maxstack 8
    IL_0000:  ldarg.0
    IL_0001:  call instance void class [mscorlib]System.Object::'.ctor'()
    IL_0006:  ldarg.0
    IL_0007:  ldarg.1
    IL_000a:  stfld  !0 class Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed.Dependencies.GenericType`1<!T>::input
    IL_000f:  ret
    }

    .method public hidebysig instance !T Method() cil managed
    {
    .maxstack 8
    IL_0000:  ldarg.0
    IL_0001:  ldfld !0 class Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed.Dependencies.GenericType`1<!T>::input
    IL_0006:  ret
    }

  }

  .class public auto ansi beforefieldinit TypeWithGenericMethod
    extends [mscorlib]System.Object
  {
    .method public hidebysig specialname rtspecialname
            instance void '.ctor' () cil managed
    {
    .maxstack 8
    IL_0000:  ldarg.0
    IL_0001:  call instance void class [mscorlib]System.Object::'.ctor'()
    IL_0006:  ret
    }

    .method public hidebysig instance !!T GenericMethod<T> (!!T input) cil managed
    {
    .param type T
    .custom instance void class Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed.Dependencies.FooAttribute::'.ctor'() =  (01 00 00 00 ) // ....
    .maxstack 8
    IL_0000:  ldarg.1
    IL_0001:  ret
    }
  }

}