[metadata] Add a canonical_inst MonoType to MonoClassGtd
commit7111c840b9354df71bbf08d9dfd686d5051e3935
authorAleksey Kliger <aleksey@xamarin.com>
Thu, 20 Apr 2017 22:52:40 +0000 (20 18:52 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Thu, 20 Apr 2017 22:58:29 +0000 (20 18:58 -0400)
tree035e68e8fb4fdef2b031cb77c19c39571d95be68
parent247e158bf48d333145cad25396da93695b990b76
[metadata] Add a canonical_inst MonoType to MonoClassGtd

The canonical instantiation of a generic type definition is the open
instantiation where the GTD is applied to its own generic parameters in order.

Suppose we have `class T<A,B> { ... }` then the canonical instantiation is just "T<A,B>".
mono/metadata/class-accessors.c
mono/metadata/class-internals.h
mono/metadata/class.c
mono/metadata/sre.c