diff options
author | David Wrighton <davidwr@microsoft.com> | 2015-12-04 04:29:41 +0300 |
---|---|---|
committer | David Wrighton <davidwr@microsoft.com> | 2015-12-04 04:35:18 +0300 |
commit | 20ce7e0f0fedbd6dea270db207a70c62f22ceea3 (patch) | |
tree | bef583f2178f4084fc2b3857c39b536f4a30652b /src/Common | |
parent | 848ecc1fffca53f428d29cb5f40d4ca4187283d7 (diff) |
Fix base type system api's to work in terms of DefType not MetadataType
- Convert GetWellKnownType to return DefType
- Change OwningType on FieldDesc to be of type DefType
Diffstat (limited to 'src/Common')
5 files changed, 6 insertions, 6 deletions
diff --git a/src/Common/src/TypeSystem/Common/FieldDesc.cs b/src/Common/src/TypeSystem/Common/FieldDesc.cs index de090c648..69e7a5c9e 100644 --- a/src/Common/src/TypeSystem/Common/FieldDesc.cs +++ b/src/Common/src/TypeSystem/Common/FieldDesc.cs @@ -36,7 +36,7 @@ namespace Internal.TypeSystem get; } - public abstract MetadataType OwningType + public abstract DefType OwningType { get; } diff --git a/src/Common/src/TypeSystem/Common/FieldForInstantiatedType.cs b/src/Common/src/TypeSystem/Common/FieldForInstantiatedType.cs index 80d34af6f..5e59674f7 100644 --- a/src/Common/src/TypeSystem/Common/FieldForInstantiatedType.cs +++ b/src/Common/src/TypeSystem/Common/FieldForInstantiatedType.cs @@ -24,7 +24,7 @@ namespace Internal.TypeSystem } } - public override MetadataType OwningType + public override DefType OwningType { get { diff --git a/src/Common/src/TypeSystem/Common/TargetDetails.cs b/src/Common/src/TypeSystem/Common/TargetDetails.cs index f35b4848a..5349cea74 100644 --- a/src/Common/src/TypeSystem/Common/TargetDetails.cs +++ b/src/Common/src/TypeSystem/Common/TargetDetails.cs @@ -106,7 +106,7 @@ namespace Internal.TypeSystem /// <summary> /// Retrieves the size of a well known type. /// </summary> - public int GetWellKnownTypeSize(MetadataType type) + public int GetWellKnownTypeSize(DefType type) { switch (type.Category) { @@ -145,7 +145,7 @@ namespace Internal.TypeSystem /// <summary> /// Retrieves the alignment required by a well known type. /// </summary> - public int GetWellKnownTypeAlignment(MetadataType type) + public int GetWellKnownTypeAlignment(DefType type) { // Size == Alignment for all platforms. return GetWellKnownTypeSize(type); diff --git a/src/Common/src/TypeSystem/Common/TypeSystemContext.cs b/src/Common/src/TypeSystem/Common/TypeSystemContext.cs index 42e0c46d0..9926e87c1 100644 --- a/src/Common/src/TypeSystem/Common/TypeSystemContext.cs +++ b/src/Common/src/TypeSystem/Common/TypeSystemContext.cs @@ -52,7 +52,7 @@ namespace Internal.TypeSystem SystemModule = systemModule; } - public abstract MetadataType GetWellKnownType(WellKnownType wellKnownType); + public abstract DefType GetWellKnownType(WellKnownType wellKnownType); public virtual ModuleDesc ResolveAssembly(AssemblyName name) { diff --git a/src/Common/src/TypeSystem/Ecma/EcmaField.cs b/src/Common/src/TypeSystem/Ecma/EcmaField.cs index 574576fc0..24836caa9 100644 --- a/src/Common/src/TypeSystem/Ecma/EcmaField.cs +++ b/src/Common/src/TypeSystem/Ecma/EcmaField.cs @@ -61,7 +61,7 @@ namespace Internal.TypeSystem.Ecma } } - public override MetadataType OwningType + public override DefType OwningType { get { |