提交 c225b27a 编写于 作者: J Jason Malinowski

Update the metadata reader to 1.1.0-alpha-00009

上级 bcacfa50
......@@ -4,7 +4,7 @@
<package id="Microsoft.Net.Compilers" version="1.1.0-beta1-20150727-01" targetFramework="net45" />
<package id="Microsoft.Net.RoslynDiagnostics" version="1.1.0-beta1-20150727-01" targetFramework="net45" />
<package id="System.Collections.Immutable" version="1.1.36" targetFramework="net45" />
<package id="System.Reflection.Metadata" version="1.1.0-alpha-00008" targetFramework="net45" />
<package id="System.Reflection.Metadata" version="1.1.0-alpha-00009" targetFramework="net45" />
<package id="Microsoft.DiaSymReader.Native" version="1.1.0-alpha1" />
<package id="Microsoft.DotNet.BuildTools" version="1.0.25-prerelease-00063" />
<package id="FakeSign" version="0.9.2" targetFramework="net45" />
......
......@@ -28,7 +28,7 @@
<SystemCollectionsImmutableAssemblyVersion Condition="'$(SystemCollectionsImmutableAssemblyVersion)' == ''">1.1.36</SystemCollectionsImmutableAssemblyVersion>
<NuGetCommandLineAssemblyVersion Condition="'$(NuGetCommandLineAssemblyVersion)' == ''">2.8.5</NuGetCommandLineAssemblyVersion>
<MicrosoftCompositionAssemblyVersion Condition="'$(MicrosoftCompositionAssemblyVersion)' == ''">1.0.27</MicrosoftCompositionAssemblyVersion>
<SystemReflectionMetadataVersion>$(SystemReflectionMetadataAssemblyVersion)-alpha-00008</SystemReflectionMetadataVersion>
<SystemReflectionMetadataVersion>$(SystemReflectionMetadataAssemblyVersion)-alpha-00009</SystemReflectionMetadataVersion>
<SystemCollectionsImmutableVersion>$(SystemCollectionsImmutableAssemblyVersion)</SystemCollectionsImmutableVersion>
<MicrosoftDiaSymReaderNativeVersion>1.1.0-alpha1</MicrosoftDiaSymReaderNativeVersion>
<NuGetCommandLineVersion>$(NuGetCommandLineAssemblyVersion)</NuGetCommandLineVersion>
......
......@@ -160,8 +160,8 @@ public DummyTypeProvider(MetadataReader reader)
public object GetPointerType(object elementType) => null;
public object GetPrimitiveType(PrimitiveTypeCode typeCode) => null;
public object GetSZArrayType(object elementType) => null;
public object GetTypeFromDefinition(TypeDefinitionHandle handle) => null;
public object GetTypeFromReference(TypeReferenceHandle handle) => null;
public object GetTypeFromDefinition(TypeDefinitionHandle handle, bool? isValueType) => null;
public object GetTypeFromReference(TypeReferenceHandle handle, bool? isValueType) => null;
}
}
}
......@@ -1122,14 +1122,14 @@ public string GetSZArrayType(string elementType)
return elementType + "[]";
}
public string GetTypeFromDefinition(TypeDefinitionHandle handle)
public string GetTypeFromDefinition(TypeDefinitionHandle handle, bool? isValueType)
{
var typeDef = _reader.GetTypeDefinition(handle);
var name = _reader.GetString(typeDef.Name);
return typeDef.Namespace.IsNil ? name : _reader.GetString(typeDef.Namespace) + "." + name;
}
public string GetTypeFromReference(TypeReferenceHandle handle)
public string GetTypeFromReference(TypeReferenceHandle handle, bool? isValueType)
{
var typeRef = _reader.GetTypeReference(handle);
var name = _reader.GetString(typeRef.Name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册