提交 02f6ac87 编写于 作者: C Cyrus Najmabadi

Fix

上级 0c2ff68c
...@@ -37,7 +37,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -37,7 +37,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var location = reader.ReadLocation(out var locationFailureReason); var location = reader.ReadLocation(out var locationFailureReason);
if (locationFailureReason != null) if (locationFailureReason != null)
{ {
failureReason = $"({nameof(AnonymousFunctionOrDelegateSymbolKey)} {nameof(location)} failed -> ${locationFailureReason})"; failureReason = $"({nameof(AnonymousFunctionOrDelegateSymbolKey)} {nameof(location)} failed -> {locationFailureReason})";
return default; return default;
} }
......
...@@ -33,7 +33,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -33,7 +33,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
using var propertyTypes = reader.ReadSymbolKeyArray<ITypeSymbol>(out var propertyTypesFailureReason); using var propertyTypes = reader.ReadSymbolKeyArray<ITypeSymbol>(out var propertyTypesFailureReason);
if (propertyTypesFailureReason != null) if (propertyTypesFailureReason != null)
{ {
failureReason = $"({nameof(AnonymousTypeSymbolKey)} {nameof(propertyTypes)} failed -> ${propertyTypesFailureReason})"; failureReason = $"({nameof(AnonymousTypeSymbolKey)} {nameof(propertyTypes)} failed -> {propertyTypesFailureReason})";
return default; return default;
} }
...@@ -42,7 +42,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -42,7 +42,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
using var propertyLocations = reader.ReadLocationArray(out var propertyLocationsFailureReason); using var propertyLocations = reader.ReadLocationArray(out var propertyLocationsFailureReason);
if (propertyLocationsFailureReason != null) if (propertyLocationsFailureReason != null)
{ {
failureReason = $"({nameof(AnonymousTypeSymbolKey)} {nameof(propertyLocations)} failed -> ${propertyLocationsFailureReason})"; failureReason = $"({nameof(AnonymousTypeSymbolKey)} {nameof(propertyLocations)} failed -> {propertyLocationsFailureReason})";
return default; return default;
} }
......
...@@ -125,7 +125,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string? fa ...@@ -125,7 +125,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string? fa
var locations = reader.ReadLocationArray(out var locationsFailureReason); var locations = reader.ReadLocationArray(out var locationsFailureReason);
if (locationsFailureReason != null) if (locationsFailureReason != null)
{ {
failureReason = $"({nameof(BodyLevelSymbolKey)} {nameof(locations)} failed -> ${locationsFailureReason})"; failureReason = $"({nameof(BodyLevelSymbolKey)} {nameof(locations)} failed -> {locationsFailureReason})";
return default; return default;
} }
......
...@@ -64,7 +64,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -64,7 +64,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingSymbolResolution = ResolveContainer(reader, out var containingSymbolFailureReason); var containingSymbolResolution = ResolveContainer(reader, out var containingSymbolFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(ErrorTypeSymbolKey)} {nameof(containingSymbolResolution)} failed -> ${containingSymbolFailureReason})"; failureReason = $"({nameof(ErrorTypeSymbolKey)} {nameof(containingSymbolResolution)} failed -> {containingSymbolFailureReason})";
return default; return default;
} }
...@@ -73,7 +73,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -73,7 +73,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
using var typeArguments = reader.ReadSymbolKeyArray<ITypeSymbol>(out var typeArgumentsFailureReason); using var typeArguments = reader.ReadSymbolKeyArray<ITypeSymbol>(out var typeArgumentsFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(ErrorTypeSymbolKey)} {nameof(typeArguments)} failed -> ${typeArgumentsFailureReason})"; failureReason = $"({nameof(ErrorTypeSymbolKey)} {nameof(typeArguments)} failed -> {typeArgumentsFailureReason})";
return default; return default;
} }
......
...@@ -20,7 +20,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -20,7 +20,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingTypeResolution = reader.ReadSymbolKey(out var containingTypeFailureReason); var containingTypeResolution = reader.ReadSymbolKey(out var containingTypeFailureReason);
if (containingTypeFailureReason != null) if (containingTypeFailureReason != null)
{ {
failureReason = $"({nameof(EventSymbolKey)} {nameof(containingTypeResolution)} failed -> ${containingTypeFailureReason})"; failureReason = $"({nameof(EventSymbolKey)} {nameof(containingTypeResolution)} failed -> {containingTypeFailureReason})";
return default; return default;
} }
......
...@@ -20,7 +20,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -20,7 +20,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingTypeResolution = reader.ReadSymbolKey(out var containingTypeFailureReason); var containingTypeResolution = reader.ReadSymbolKey(out var containingTypeFailureReason);
if (containingTypeFailureReason != null) if (containingTypeFailureReason != null)
{ {
failureReason = $"({nameof(FieldSymbolKey)} {nameof(containingTypeResolution)} failed -> ${containingTypeFailureReason})"; failureReason = $"({nameof(FieldSymbolKey)} {nameof(containingTypeResolution)} failed -> {containingTypeFailureReason})";
return default; return default;
} }
......
...@@ -23,14 +23,14 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -23,14 +23,14 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var reducedFromResolution = reader.ReadSymbolKey(out var reducedFromFailureReason); var reducedFromResolution = reader.ReadSymbolKey(out var reducedFromFailureReason);
if (reducedFromFailureReason != null) if (reducedFromFailureReason != null)
{ {
failureReason = $"({nameof(ReducedExtensionMethodSymbolKey)} {nameof(reducedFromResolution)} failed -> ${reducedFromFailureReason})"; failureReason = $"({nameof(ReducedExtensionMethodSymbolKey)} {nameof(reducedFromResolution)} failed -> {reducedFromFailureReason})";
return default; return default;
} }
var receiverTypeResolution = reader.ReadSymbolKey(out var receiverTypeFailureReason); var receiverTypeResolution = reader.ReadSymbolKey(out var receiverTypeFailureReason);
if (receiverTypeFailureReason != null) if (receiverTypeFailureReason != null)
{ {
failureReason = $"({nameof(ReducedExtensionMethodSymbolKey)} {nameof(receiverTypeResolution)} failed -> ${receiverTypeFailureReason})"; failureReason = $"({nameof(ReducedExtensionMethodSymbolKey)} {nameof(receiverTypeResolution)} failed -> {receiverTypeFailureReason})";
return default; return default;
} }
...@@ -63,14 +63,14 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -63,14 +63,14 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var constructedFrom = reader.ReadSymbolKey(out var constructedFromFailureReason); var constructedFrom = reader.ReadSymbolKey(out var constructedFromFailureReason);
if (constructedFromFailureReason != null) if (constructedFromFailureReason != null)
{ {
failureReason = $"({nameof(ConstructedMethodSymbolKey)} {nameof(constructedFrom)} failed -> ${constructedFromFailureReason})"; failureReason = $"({nameof(ConstructedMethodSymbolKey)} {nameof(constructedFrom)} failed -> {constructedFromFailureReason})";
return default; return default;
} }
using var typeArguments = reader.ReadSymbolKeyArray<ITypeSymbol>(out var typeArgumentsFailureReason); using var typeArguments = reader.ReadSymbolKeyArray<ITypeSymbol>(out var typeArgumentsFailureReason);
if (typeArgumentsFailureReason != null) if (typeArgumentsFailureReason != null)
{ {
failureReason = $"({nameof(ConstructedMethodSymbolKey)} {nameof(typeArguments)} failed -> ${typeArgumentsFailureReason})"; failureReason = $"({nameof(ConstructedMethodSymbolKey)} {nameof(typeArguments)} failed -> {typeArgumentsFailureReason})";
return default; return default;
} }
...@@ -139,7 +139,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -139,7 +139,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingType = reader.ReadSymbolKey(out var containingTypeFailureReason); var containingType = reader.ReadSymbolKey(out var containingTypeFailureReason);
if (containingTypeFailureReason != null) if (containingTypeFailureReason != null)
{ {
failureReason = $"({nameof(MethodSymbolKey)} {nameof(containingType)} failed -> ${containingTypeFailureReason})"; failureReason = $"({nameof(MethodSymbolKey)} {nameof(containingType)} failed -> {containingTypeFailureReason})";
return default; return default;
} }
......
...@@ -16,7 +16,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -16,7 +16,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason); var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(ModuleSymbolKey)} {nameof(containingSymbolResolution)} failed -> ${containingSymbolFailureReason})"; failureReason = $"({nameof(ModuleSymbolKey)} {nameof(containingSymbolResolution)} failed -> {containingSymbolFailureReason})";
return default; return default;
} }
......
...@@ -35,7 +35,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -35,7 +35,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason); var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(NamedTypeSymbolKey)} {nameof(containingSymbolFailureReason)} failed -> ${containingSymbolFailureReason})"; failureReason = $"({nameof(NamedTypeSymbolKey)} {nameof(containingSymbolFailureReason)} failed -> {containingSymbolFailureReason})";
return default; return default;
} }
...@@ -44,7 +44,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -44,7 +44,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
using var typeArguments = reader.ReadSymbolKeyArray<ITypeSymbol>(out var typeArgumentsFailureReason); using var typeArguments = reader.ReadSymbolKeyArray<ITypeSymbol>(out var typeArgumentsFailureReason);
if (typeArgumentsFailureReason != null) if (typeArgumentsFailureReason != null)
{ {
failureReason = $"({nameof(NamedTypeSymbolKey)} {nameof(typeArguments)} failed -> ${typeArgumentsFailureReason})"; failureReason = $"({nameof(NamedTypeSymbolKey)} {nameof(typeArguments)} failed -> {typeArgumentsFailureReason})";
return default; return default;
} }
......
...@@ -60,7 +60,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -60,7 +60,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason); var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(EventSymbolKey)} {nameof(containingSymbolResolution)} failed -> ${containingSymbolFailureReason})"; failureReason = $"({nameof(EventSymbolKey)} {nameof(containingSymbolResolution)} failed -> {containingSymbolFailureReason})";
return default; return default;
} }
......
...@@ -22,7 +22,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -22,7 +22,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason); var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(ParameterSymbolKey)} {nameof(containingSymbolResolution)} failed -> ${containingSymbolFailureReason})"; failureReason = $"({nameof(ParameterSymbolKey)} {nameof(containingSymbolResolution)} failed -> {containingSymbolFailureReason})";
return default; return default;
} }
......
...@@ -16,7 +16,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -16,7 +16,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var pointedAtTypeResolution = reader.ReadSymbolKey(out var pointedAtTypeFailureReason); var pointedAtTypeResolution = reader.ReadSymbolKey(out var pointedAtTypeFailureReason);
if (pointedAtTypeFailureReason != null) if (pointedAtTypeFailureReason != null)
{ {
failureReason = $"({nameof(PointerTypeSymbolKey)} {nameof(pointedAtTypeResolution)} failed -> ${pointedAtTypeFailureReason})"; failureReason = $"({nameof(PointerTypeSymbolKey)} {nameof(pointedAtTypeResolution)} failed -> {pointedAtTypeFailureReason})";
return default; return default;
} }
......
...@@ -549,7 +549,7 @@ public Location ReadLocation(out string failureReason) ...@@ -549,7 +549,7 @@ public Location ReadLocation(out string failureReason)
var syntaxTree = GetSyntaxTree(filePath); var syntaxTree = GetSyntaxTree(filePath);
if (syntaxTree != null) if (syntaxTree != null)
{ {
failureReason = $"{nameof(ReadLocation)} {nameof(SyntaxTree)} not found"; failureReason = null;
return Location.Create(syntaxTree, new TextSpan(start, length)); return Location.Create(syntaxTree, new TextSpan(start, length));
} }
} }
......
...@@ -55,7 +55,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -55,7 +55,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason); var elementLocations = ReadElementLocations(reader, out var elementLocationsFailureReason);
if (elementLocationsFailureReason != null) if (elementLocationsFailureReason != null)
{ {
failureReason = $"({nameof(TupleTypeSymbolKey)} {nameof(elementLocations)} failed -> ${elementLocationsFailureReason})"; failureReason = $"({nameof(TupleTypeSymbolKey)} {nameof(elementLocations)} failed -> {elementLocationsFailureReason})";
return default; return default;
} }
...@@ -65,7 +65,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -65,7 +65,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
using var elementTypes = reader.ReadSymbolKeyArray<ITypeSymbol>(out var elementTypesFailureReason); using var elementTypes = reader.ReadSymbolKeyArray<ITypeSymbol>(out var elementTypesFailureReason);
if (elementTypesFailureReason != null) if (elementTypesFailureReason != null)
{ {
failureReason = $"({nameof(TupleTypeSymbolKey)} {nameof(elementTypes)} failed -> ${elementTypesFailureReason})"; failureReason = $"({nameof(TupleTypeSymbolKey)} {nameof(elementTypes)} failed -> {elementTypesFailureReason})";
return default; return default;
} }
...@@ -88,7 +88,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -88,7 +88,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var underlyingTypeResolution = reader.ReadSymbolKey(out var underlyingTypeFailureReason); var underlyingTypeResolution = reader.ReadSymbolKey(out var underlyingTypeFailureReason);
if (underlyingTypeFailureReason != null) if (underlyingTypeFailureReason != null)
{ {
failureReason = $"({nameof(TupleTypeSymbolKey)} {nameof(underlyingTypeResolution)} failed -> ${underlyingTypeFailureReason})"; failureReason = $"({nameof(TupleTypeSymbolKey)} {nameof(underlyingTypeResolution)} failed -> {underlyingTypeFailureReason})";
return default; return default;
} }
......
...@@ -34,7 +34,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -34,7 +34,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var location = reader.ReadLocation(out var locationFailureReason); var location = reader.ReadLocation(out var locationFailureReason);
if (locationFailureReason != null) if (locationFailureReason != null)
{ {
failureReason = $"({nameof(TypeParameterSymbolKey)} {nameof(location)} failed -> ${locationFailureReason})"; failureReason = $"({nameof(TypeParameterSymbolKey)} {nameof(location)} failed -> {locationFailureReason})";
return default; return default;
} }
...@@ -49,7 +49,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai ...@@ -49,7 +49,7 @@ public static SymbolKeyResolution Resolve(SymbolKeyReader reader, out string fai
var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason); var containingSymbolResolution = reader.ReadSymbolKey(out var containingSymbolFailureReason);
if (containingSymbolFailureReason != null) if (containingSymbolFailureReason != null)
{ {
failureReason = $"({nameof(TypeParameterSymbolKey)} {nameof(containingSymbolResolution)} failed -> ${containingSymbolFailureReason})"; failureReason = $"({nameof(TypeParameterSymbolKey)} {nameof(containingSymbolResolution)} failed -> {containingSymbolFailureReason})";
return default; return default;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册