Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
4d9190ea
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,发现更多精彩内容 >>
未验证
提交
4d9190ea
编写于
8月 28, 2019
作者:
D
dotnet-automerge-bot
提交者:
GitHub
8月 28, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #38335 from dotnet/merges/release/dev16.3-to-release/dev16.3-vs-deps
Merge release/dev16.3 to release/dev16.3-vs-deps
上级
c82648d8
34abbbde
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
19 deletion
+23
-19
src/Compilers/CSharp/Portable/Symbols/Retargeting/RetargetingMethodSymbol.cs
...p/Portable/Symbols/Retargeting/RetargetingMethodSymbol.cs
+7
-4
src/Compilers/CSharp/Portable/Symbols/Retargeting/RetargetingPropertySymbol.cs
...Portable/Symbols/Retargeting/RetargetingPropertySymbol.cs
+5
-4
src/Compilers/CSharp/Portable/Symbols/Source/LocalFunctionSymbol.cs
...ers/CSharp/Portable/Symbols/Source/LocalFunctionSymbol.cs
+5
-5
src/EditorFeatures/Test2/Rename/RenameTagProducerTests.vb
src/EditorFeatures/Test2/Rename/RenameTagProducerTests.vb
+1
-1
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpQuickInfo.cs
...ntegrationTest/IntegrationTests/CSharp/CSharpQuickInfo.cs
+1
-1
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpUpgradeProject.cs
...ationTest/IntegrationTests/CSharp/CSharpUpgradeProject.cs
+1
-1
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicIntelliSense.cs
...ionTest/IntegrationTests/VisualBasic/BasicIntelliSense.cs
+1
-1
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicQuickInfo.cs
...rationTest/IntegrationTests/VisualBasic/BasicQuickInfo.cs
+1
-1
src/Workspaces/MSBuildTest/MSBuildWorkspaceTests.cs
src/Workspaces/MSBuildTest/MSBuildWorkspaceTests.cs
+1
-1
未找到文件。
src/Compilers/CSharp/Portable/Symbols/Retargeting/RetargetingMethodSymbol.cs
浏览文件 @
4d9190ea
...
...
@@ -4,6 +4,7 @@
using
System.Collections.Generic
;
using
System.Collections.Immutable
;
using
System.Diagnostics
;
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Emit
;
using
Microsoft.CodeAnalysis.PooledObjects
;
using
Roslyn.Utilities
;
...
...
@@ -46,7 +47,7 @@ internal sealed class RetargetingMethodSymbol : WrappedMethodSymbol
private
ImmutableArray
<
MethodSymbol
>
_lazyExplicitInterfaceImplementations
;
private
DiagnosticInfo
_lazyUseSiteDiagnostic
=
CSDiagnosticInfo
.
EmptyErrorInfo
;
// Indicates unknown state.
private
TypeWithAnnotations
_lazyReturnType
;
private
TypeWithAnnotations
.
Boxed
_lazyReturnType
;
public
RetargetingMethodSymbol
(
RetargetingModuleSymbol
retargetingModule
,
MethodSymbol
underlyingMethod
)
{
...
...
@@ -130,11 +131,13 @@ public override TypeWithAnnotations ReturnTypeWithAnnotations
{
get
{
if
(
_lazyReturnType
.
IsDefault
)
if
(
_lazyReturnType
is
null
)
{
_lazyReturnType
=
this
.
RetargetingTranslator
.
Retarget
(
_underlyingMethod
.
ReturnTypeWithAnnotations
,
RetargetOptions
.
RetargetPrimitiveTypesByTypeCode
,
this
.
ContainingType
);
Interlocked
.
CompareExchange
(
ref
_lazyReturnType
,
new
TypeWithAnnotations
.
Boxed
(
this
.
RetargetingTranslator
.
Retarget
(
_underlyingMethod
.
ReturnTypeWithAnnotations
,
RetargetOptions
.
RetargetPrimitiveTypesByTypeCode
,
this
.
ContainingType
)),
null
);
}
return
_lazyReturnType
;
return
_lazyReturnType
.
Value
;
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Retargeting/RetargetingPropertySymbol.cs
浏览文件 @
4d9190ea
...
...
@@ -4,6 +4,7 @@
using
System.Collections.Generic
;
using
System.Collections.Immutable
;
using
System.Diagnostics
;
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Emit
;
using
Microsoft.CodeAnalysis.PooledObjects
;
...
...
@@ -28,7 +29,7 @@ internal sealed class RetargetingPropertySymbol : WrappedPropertySymbol
private
DiagnosticInfo
_lazyUseSiteDiagnostic
=
CSDiagnosticInfo
.
EmptyErrorInfo
;
// Indicates unknown state.
private
TypeWithAnnotations
_lazyType
;
private
TypeWithAnnotations
.
Boxed
_lazyType
;
public
RetargetingPropertySymbol
(
RetargetingModuleSymbol
retargetingModule
,
PropertySymbol
underlyingProperty
)
:
base
(
underlyingProperty
)
...
...
@@ -59,16 +60,16 @@ public override TypeWithAnnotations TypeWithAnnotations
{
get
{
if
(
_lazyType
.
IsDefault
)
if
(
_lazyType
is
null
)
{
var
type
=
this
.
RetargetingTranslator
.
Retarget
(
_underlyingProperty
.
TypeWithAnnotations
,
RetargetOptions
.
RetargetPrimitiveTypesByTypeCode
);
if
(
type
.
Type
.
TryAsDynamicIfNoPia
(
this
.
ContainingType
,
out
TypeSymbol
asDynamic
))
{
type
=
TypeWithAnnotations
.
Create
(
asDynamic
);
}
_lazyType
=
type
;
Interlocked
.
CompareExchange
(
ref
_lazyType
,
new
TypeWithAnnotations
.
Boxed
(
type
),
null
)
;
}
return
_lazyType
;
return
_lazyType
.
Value
;
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Source/LocalFunctionSymbol.cs
浏览文件 @
4d9190ea
...
...
@@ -25,7 +25,7 @@ internal sealed class LocalFunctionSymbol : SourceMethodSymbol
private
bool
_lazyIsVarArg
;
// Initialized in two steps. Hold a copy if accessing during initialization.
private
ImmutableArray
<
TypeParameterConstraintClause
>
_lazyTypeParameterConstraints
;
private
TypeWithAnnotations
_lazyReturnType
;
private
TypeWithAnnotations
.
Boxed
_lazyReturnType
;
private
TypeWithAnnotations
.
Boxed
_lazyIteratorElementType
;
// Lock for initializing lazy fields and registering their diagnostics
...
...
@@ -202,7 +202,7 @@ public override TypeWithAnnotations ReturnTypeWithAnnotations
get
{
ComputeReturnType
();
return
_lazyReturnType
;
return
_lazyReturnType
.
Value
;
}
}
...
...
@@ -216,7 +216,7 @@ public override TypeWithAnnotations ReturnTypeWithAnnotations
internal
void
ComputeReturnType
()
{
if
(
!
_lazyReturnType
.
IsDefaul
t
)
if
(
_lazyReturnType
is
objec
t
)
{
return
;
}
...
...
@@ -270,14 +270,14 @@ internal void ComputeReturnType()
lock
(
_declarationDiagnostics
)
{
if
(
!
_lazyReturnType
.
IsDefaul
t
)
if
(
_lazyReturnType
is
objec
t
)
{
diagnostics
.
Free
();
return
;
}
_declarationDiagnostics
.
AddRangeAndFree
(
diagnostics
);
_lazyReturnType
=
returnType
;
Interlocked
.
CompareExchange
(
ref
_lazyReturnType
,
new
TypeWithAnnotations
.
Boxed
(
returnType
),
null
)
;
}
}
...
...
src/EditorFeatures/Test2/Rename/RenameTagProducerTests.vb
浏览文件 @
4d9190ea
...
...
@@ -842,7 +842,7 @@ class Goo
End
Using
End
Function
<
WpfFact
>
<
WpfFact
(
Skip
:
=
"https://github.com/dotnet/roslyn/issues/38247"
)
>
<
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Rename
)
>
Public
Async
Function
VisualBasic_FixupSpanDuringResolvableConflict_ReferenceConflict
()
As
Task
Using
workspace
=
CreateWorkspaceWithWaiter
(
...
...
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpQuickInfo.cs
浏览文件 @
4d9190ea
...
...
@@ -19,7 +19,7 @@ public CSharpQuickInfo(VisualStudioInstanceFactory instanceFactory, ITestOutputH
{
}
[
WpfFact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
QuickInfo
)]
[
WpfFact
(
Skip
=
"https://github.com/dotnet/roslyn/issues/38301"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
QuickInfo
)]
public
void
QuickInfo_MetadataDocumentation
()
{
SetUpEditor
(
@"
...
...
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpUpgradeProject.cs
浏览文件 @
4d9190ea
...
...
@@ -30,7 +30,7 @@ private void InvokeFix()
VisualStudio
.
Editor
.
Verify
.
CodeAction
(
"Upgrade this project to C# language version 'latest'"
,
applyFix
:
true
);
}
[
WpfFact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsUpgradeProject
)]
[
WpfFact
(
Skip
=
"https://github.com/dotnet/roslyn/issues/38301"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsUpgradeProject
)]
public
void
CPSProject_GeneralPropertyGroupUpdated
()
{
var
project
=
new
ProjectUtils
.
Project
(
ProjectName
);
...
...
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicIntelliSense.cs
浏览文件 @
4d9190ea
...
...
@@ -29,7 +29,7 @@ public override async Task InitializeAsync()
VisualStudio
.
Workspace
.
SetImportCompletionOption
(
false
);
}
[
WpfFact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Completion
)]
[
WpfFact
(
Skip
=
"https://github.com/dotnet/roslyn/issues/38301"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Completion
)]
public
void
IntelliSenseTriggersOnParenWithBraceCompletionAndCorrectUndoMerging
()
{
SetUpEditor
(
@"
...
...
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicQuickInfo.cs
浏览文件 @
4d9190ea
...
...
@@ -19,7 +19,7 @@ public BasicQuickInfo(VisualStudioInstanceFactory instanceFactory, ITestOutputHe
{
}
[
WpfFact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
QuickInfo
)]
[
WpfFact
(
Skip
=
"https://github.com/dotnet/roslyn/issues/38301"
)
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
QuickInfo
)]
public
void
QuickInfo1
()
{
SetUpEditor
(
@"
...
...
src/Workspaces/MSBuildTest/MSBuildWorkspaceTests.cs
浏览文件 @
4d9190ea
...
...
@@ -1766,7 +1766,7 @@ public async Task TestParseOptions_CSharp_Compatibility_None()
await
AssertCSParseOptionsAsync
(
CS
.
LanguageVersion
.
CSharp3
,
options
=>
options
.
LanguageVersion
);
}
[
ConditionalFact
(
typeof
(
VisualStudioMSBuildInstalled
)),
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
MSBuildWorkspace
)]
[
ConditionalFact
(
typeof
(
VisualStudioMSBuildInstalled
)
,
AlwaysSkip
=
"https://github.com/dotnet/roslyn/issues/38301"
),
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
MSBuildWorkspace
)]
public
async
Task
TestParseOptions_CSharp_LanguageVersion_Default
()
{
CreateCSharpFiles
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录