// // Replaces normal spec with predefined one when compiling corlib // and this type container defines predefined type // public void SetPredefinedSpec (BuiltinTypeSpec spec) { // When compiling build-in types we start with two // version of same type. One is of BuiltinTypeSpec and // second one is ordinary TypeSpec. The unification // happens at later stage when we know which type // really matches the builtin type signature. However // that means TypeSpec create during CreateType of this // type has to be replaced with builtin one // spec.SetMetaInfo (TypeBuilder); spec.MemberCache = this.spec.MemberCache; spec.DeclaringType = this.spec.DeclaringType; this.spec = spec; current_type = null; }