Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
02f6ac87
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
02f6ac87
编写于
7月 14, 2020
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix
上级
0c2ff68c
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
25 addition
and
25 deletion
+25
-25
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs
...mbolKey/SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.AnonymousTypeSymbolKey.cs
...re/Portable/SymbolKey/SymbolKey.AnonymousTypeSymbolKey.cs
+2
-2
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.BodyLevelSymbolKey.cs
...s/Core/Portable/SymbolKey/SymbolKey.BodyLevelSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.ErrorTypeSymbolKey.cs
...s/Core/Portable/SymbolKey/SymbolKey.ErrorTypeSymbolKey.cs
+2
-2
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.EventSymbolKey.cs
...paces/Core/Portable/SymbolKey/SymbolKey.EventSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.FieldSymbolKey.cs
...paces/Core/Portable/SymbolKey/SymbolKey.FieldSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.MethodSymbolKey.cs
...aces/Core/Portable/SymbolKey/SymbolKey.MethodSymbolKey.cs
+5
-5
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.ModuleSymbolKey.cs
...aces/Core/Portable/SymbolKey/SymbolKey.ModuleSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.NamedTypeSymbolKey.cs
...s/Core/Portable/SymbolKey/SymbolKey.NamedTypeSymbolKey.cs
+2
-2
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.NamespaceSymbolKey.cs
...s/Core/Portable/SymbolKey/SymbolKey.NamespaceSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.ParameterSymbolKey.cs
...s/Core/Portable/SymbolKey/SymbolKey.ParameterSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.PointerTypeSymbolKey.cs
...Core/Portable/SymbolKey/SymbolKey.PointerTypeSymbolKey.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.SymbolKeyReader.cs
...aces/Core/Portable/SymbolKey/SymbolKey.SymbolKeyReader.cs
+1
-1
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.TupleTypeSymbolKey.cs
...s/Core/Portable/SymbolKey/SymbolKey.TupleTypeSymbolKey.cs
+3
-3
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.TypeParameterSymbolKey.cs
...re/Portable/SymbolKey/SymbolKey.TypeParameterSymbolKey.cs
+2
-2
未找到文件。
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.AnonymousTypeSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.BodyLevelSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.ErrorTypeSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.EventSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.FieldSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.MethodSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.ModuleSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.NamedTypeSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.NamespaceSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.ParameterSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.PointerTypeSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.SymbolKeyReader.cs
浏览文件 @
02f6ac87
...
@@ -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
));
}
}
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.TupleTypeSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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
;
}
}
...
...
src/Workspaces/Core/Portable/SymbolKey/SymbolKey.TypeParameterSymbolKey.cs
浏览文件 @
02f6ac87
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录