Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
601f19c6
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,发现更多精彩内容 >>
提交
601f19c6
编写于
2月 06, 2015
作者:
C
ChuckStoner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
EE: Minor cleanup (changeset 1411863)
上级
c8f446a3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
18 deletion
+17
-18
src/ExpressionEvaluator/CSharp/Test/ExpressionCompiler/InstructionDecoderTests.cs
...CSharp/Test/ExpressionCompiler/InstructionDecoderTests.cs
+13
-13
src/ExpressionEvaluator/Core/Source/ExpressionCompiler/FrameDecoder.cs
...nEvaluator/Core/Source/ExpressionCompiler/FrameDecoder.cs
+1
-1
src/ExpressionEvaluator/Core/Source/ResultProvider/Expansion/ResultsViewExpansion.cs
...e/Source/ResultProvider/Expansion/ResultsViewExpansion.cs
+1
-1
src/ExpressionEvaluator/Core/Source/ResultProvider/ResultProvider.cs
...ionEvaluator/Core/Source/ResultProvider/ResultProvider.cs
+2
-2
src/ExpressionEvaluator/VisualBasic/Test/ExpressionCompiler/HoistedMeTests.vb
...tor/VisualBasic/Test/ExpressionCompiler/HoistedMeTests.vb
+0
-1
未找到文件。
src/ExpressionEvaluator/CSharp/Test/ExpressionCompiler/InstructionDecoderTests.cs
浏览文件 @
601f19c6
...
@@ -15,7 +15,7 @@ namespace Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator
...
@@ -15,7 +15,7 @@ namespace Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator
public
class
InstructionDecoderTests
:
ExpressionCompilerTestBase
public
class
InstructionDecoderTests
:
ExpressionCompilerTestBase
{
{
[
Fact
,
WorkItem
(
1107977
)]
[
Fact
,
WorkItem
(
1107977
)]
p
rivate
void
GetNameGenericAsync
()
p
ublic
void
GetNameGenericAsync
()
{
{
var
source
=
@"
var
source
=
@"
using System.Threading.Tasks;
using System.Threading.Tasks;
...
@@ -32,9 +32,9 @@ static async Task<T> M<T>(T x)
...
@@ -32,9 +32,9 @@ static async Task<T> M<T>(T x)
"C.M<T>(T x)"
,
"C.M<T>(T x)"
,
GetName
(
source
,
"C.<M>d__0.MoveNext"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
GetName
(
source
,
"C.<M>d__0.MoveNext"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
}
}
[
Fact
]
private
void
GetNameLambda
()
[
Fact
]
public
void
GetNameLambda
()
{
{
var
source
=
@"
var
source
=
@"
using System;
using System;
...
@@ -50,9 +50,9 @@ void M()
...
@@ -50,9 +50,9 @@ void M()
"C.M.AnonymousMethod__0_0()"
,
"C.M.AnonymousMethod__0_0()"
,
GetName
(
source
,
"C.<>c.<M>b__0_0"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
GetName
(
source
,
"C.<>c.<M>b__0_0"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
}
}
[
Fact
]
private
void
GetNameGenericLambda
()
[
Fact
]
public
void
GetNameGenericLambda
()
{
{
var
source
=
@"
var
source
=
@"
using System;
using System;
...
@@ -68,9 +68,9 @@ class C<T>
...
@@ -68,9 +68,9 @@ class C<T>
"C<T>.M.AnonymousMethod__0_0(U u)"
,
"C<T>.M.AnonymousMethod__0_0(U u)"
,
GetName
(
source
,
"C.<>c__0.<M>b__0_0"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
GetName
(
source
,
"C.<>c__0.<M>b__0_0"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
}
}
[
Fact
]
private
void
GetNameProperties
()
[
Fact
]
public
void
GetNameProperties
()
{
{
var
source
=
@"
var
source
=
@"
class C
class C
...
@@ -99,9 +99,9 @@ class C
...
@@ -99,9 +99,9 @@ class C
"C.this[object].set(object x, int value)"
,
"C.this[object].set(object x, int value)"
,
GetName
(
source
,
"C.set_Item"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
GetName
(
source
,
"C.set_Item"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
}
}
[
Fact
]
private
void
GetNameExplicitInterfaceImplementation
()
[
Fact
]
public
void
GetNameExplicitInterfaceImplementation
()
{
{
var
source
=
@"
var
source
=
@"
using System;
using System;
...
@@ -114,9 +114,9 @@ class C : IDisposable
...
@@ -114,9 +114,9 @@ class C : IDisposable
"C.System.IDisposable.Dispose()"
,
"C.System.IDisposable.Dispose()"
,
GetName
(
source
,
"C.System.IDisposable.Dispose"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
GetName
(
source
,
"C.System.IDisposable.Dispose"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
}
}
[
Fact
]
private
void
GetNameExtensionMethod
()
[
Fact
]
public
void
GetNameExtensionMethod
()
{
{
var
source
=
@"
var
source
=
@"
static class Extensions
static class Extensions
...
@@ -128,9 +128,9 @@ static class Extensions
...
@@ -128,9 +128,9 @@ static class Extensions
"Extensions.M(string this)"
,
"Extensions.M(string this)"
,
GetName
(
source
,
"Extensions.M"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
GetName
(
source
,
"Extensions.M"
,
DkmVariableInfoFlags
.
Names
|
DkmVariableInfoFlags
.
Types
));
}
}
[
Fact
]
private
void
GetNameArgumentFlagsNone
()
[
Fact
]
public
void
GetNameArgumentFlagsNone
()
{
{
var
source
=
@"
var
source
=
@"
static class C
static class C
...
...
src/ExpressionEvaluator/Core/Source/ExpressionCompiler/FrameDecoder.cs
浏览文件 @
601f19c6
...
@@ -106,7 +106,7 @@ void IDkmLanguageFrameDecoder.GetFrameName(DkmInspectionContext inspectionContex
...
@@ -106,7 +106,7 @@ void IDkmLanguageFrameDecoder.GetFrameName(DkmInspectionContext inspectionContex
}
}
}
}
void
IDkmLanguageFrameDecoder
.
GetFrameReturnType
(
DkmInspectionContext
inspectionContext
,
DkmWorkList
workList
,
DkmStackWalkFrame
frame
,
DkmCompletionRoutine
<
DkmGetFrameReturnTypeAsyncResult
>
completionRoutine
)
void
IDkmLanguageFrameDecoder
.
GetFrameReturnType
(
DkmInspectionContext
inspectionContext
,
DkmWorkList
workList
,
DkmStackWalkFrame
frame
,
DkmCompletionRoutine
<
DkmGetFrameReturnTypeAsyncResult
>
completionRoutine
)
{
{
try
try
{
{
...
...
src/ExpressionEvaluator/Core/Source/ResultProvider/Expansion/ResultsViewExpansion.cs
浏览文件 @
601f19c6
...
@@ -41,7 +41,7 @@ internal static ResultsViewExpansion CreateExpansion(DkmClrValue value, Formatte
...
@@ -41,7 +41,7 @@ internal static ResultsViewExpansion CreateExpansion(DkmClrValue value, Formatte
var
enumerableType
=
GetEnumerableType
(
value
);
var
enumerableType
=
GetEnumerableType
(
value
);
if
(
enumerableType
!=
null
)
if
(
enumerableType
!=
null
)
{
{
var
expansion
=
ResultsViewExpansion
.
CreateExpansion
(
value
,
enumerableType
,
formatter
);
var
expansion
=
CreateExpansion
(
value
,
enumerableType
,
formatter
);
if
(
expansion
!=
null
)
if
(
expansion
!=
null
)
{
{
return
expansion
.
CreateEvaluationResult
(
name
,
parent
,
formatter
);
return
expansion
.
CreateEvaluationResult
(
name
,
parent
,
formatter
);
...
...
src/ExpressionEvaluator/Core/Source/ResultProvider/ResultProvider.cs
浏览文件 @
601f19c6
...
@@ -72,7 +72,7 @@ DkmClrValue IDkmClrResultProvider.GetClrValue(DkmSuccessEvaluationResult evaluat
...
@@ -72,7 +72,7 @@ DkmClrValue IDkmClrResultProvider.GetClrValue(DkmSuccessEvaluationResult evaluat
}
}
}
}
void
IDkmClrResultProvider
.
GetChildren
(
DkmEvaluationResult
evaluationResult
,
DkmWorkList
workList
,
int
initialRequestSize
,
DkmInspectionContext
inspectionContext
,
DkmCompletionRoutine
<
DkmGetChildrenAsyncResult
>
completionRoutine
)
void
IDkmClrResultProvider
.
GetChildren
(
DkmEvaluationResult
evaluationResult
,
DkmWorkList
workList
,
int
initialRequestSize
,
DkmInspectionContext
inspectionContext
,
DkmCompletionRoutine
<
DkmGetChildrenAsyncResult
>
completionRoutine
)
{
{
var
dataItem
=
evaluationResult
.
GetDataItem
<
EvalResultDataItem
>();
var
dataItem
=
evaluationResult
.
GetDataItem
<
EvalResultDataItem
>();
if
(
dataItem
==
null
)
if
(
dataItem
==
null
)
...
@@ -85,7 +85,7 @@ void IDkmClrResultProvider.GetChildren(DkmEvaluationResult evaluationResult, Dkm
...
@@ -85,7 +85,7 @@ void IDkmClrResultProvider.GetChildren(DkmEvaluationResult evaluationResult, Dkm
completionRoutine
(
GetChildren
(
inspectionContext
,
evaluationResult
,
dataItem
,
initialRequestSize
));
completionRoutine
(
GetChildren
(
inspectionContext
,
evaluationResult
,
dataItem
,
initialRequestSize
));
}
}
void
IDkmClrResultProvider
.
GetItems
(
DkmEvaluationResultEnumContext
enumContext
,
DkmWorkList
workList
,
int
startIndex
,
int
count
,
DkmCompletionRoutine
<
DkmEvaluationEnumAsyncResult
>
completionRoutine
)
void
IDkmClrResultProvider
.
GetItems
(
DkmEvaluationResultEnumContext
enumContext
,
DkmWorkList
workList
,
int
startIndex
,
int
count
,
DkmCompletionRoutine
<
DkmEvaluationEnumAsyncResult
>
completionRoutine
)
{
{
try
try
{
{
...
...
src/ExpressionEvaluator/VisualBasic/Test/ExpressionCompiler/HoistedMeTests.vb
浏览文件 @
601f19c6
...
@@ -4,7 +4,6 @@ Imports Microsoft.CodeAnalysis.ExpressionEvaluator
...
@@ -4,7 +4,6 @@ Imports Microsoft.CodeAnalysis.ExpressionEvaluator
Imports
Microsoft.CodeAnalysis.Test.Utilities
Imports
Microsoft.CodeAnalysis.Test.Utilities
Imports
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator
Imports
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator
Imports
Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports
Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports
Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation
Imports
Roslyn.Test.Utilities
Imports
Roslyn.Test.Utilities
Imports
Xunit
Imports
Xunit
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录