Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
01a54bce
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,发现更多精彩内容 >>
提交
01a54bce
编写于
9月 24, 2020
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use implicit object creation in C# VS layer.
上级
4df36d22
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
17 addition
and
17 deletion
+17
-17
src/VisualStudio/CSharp/Impl/CSharpPackage.cs
src/VisualStudio/CSharp/Impl/CSharpPackage.cs
+1
-1
src/VisualStudio/CSharp/Impl/ChangeSignature/CSharpChangeSignatureViewModelFactoryService.cs
...Signature/CSharpChangeSignatureViewModelFactoryService.cs
+1
-1
src/VisualStudio/CSharp/Impl/CodeModel/CSharpCodeModelService.cs
...ualStudio/CSharp/Impl/CodeModel/CSharpCodeModelService.cs
+5
-5
src/VisualStudio/CSharp/Impl/CodeModel/EndRegionFormattingRule.cs
...alStudio/CSharp/Impl/CodeModel/EndRegionFormattingRule.cs
+1
-1
src/VisualStudio/CSharp/Impl/CodeModel/ModifierFlagsExtensions.cs
...alStudio/CSharp/Impl/CodeModel/ModifierFlagsExtensions.cs
+1
-1
src/VisualStudio/CSharp/Impl/Interactive/CSharpVsInteractiveWindowPackage.cs
...harp/Impl/Interactive/CSharpVsInteractiveWindowPackage.cs
+1
-1
src/VisualStudio/CSharp/Impl/ObjectBrowser/CSharpLibraryService.cs
...lStudio/CSharp/Impl/ObjectBrowser/CSharpLibraryService.cs
+2
-2
src/VisualStudio/CSharp/Impl/ObjectBrowser/ListItemFactory.cs
...VisualStudio/CSharp/Impl/ObjectBrowser/ListItemFactory.cs
+2
-2
src/VisualStudio/CSharp/Impl/Progression/CSharpProgressionLanguageService.cs
...harp/Impl/Progression/CSharpProgressionLanguageService.cs
+2
-2
src/VisualStudio/CSharp/Impl/Utilities/BlankLineInGeneratedMethodFormattingRule.cs
...mpl/Utilities/BlankLineInGeneratedMethodFormattingRule.cs
+1
-1
未找到文件。
src/VisualStudio/CSharp/Impl/CSharpPackage.cs
浏览文件 @
01a54bce
...
...
@@ -140,7 +140,7 @@ protected override IEnumerable<IVsEditorFactory> CreateEditorFactories()
}
protected
override
CSharpLanguageService
CreateLanguageService
()
=>
new
CSharpLanguageService
(
this
);
=>
new
(
this
);
protected
override
void
RegisterMiscellaneousFilesWorkspaceInformation
(
MiscellaneousFilesWorkspace
miscellaneousFilesWorkspace
)
{
...
...
src/VisualStudio/CSharp/Impl/ChangeSignature/CSharpChangeSignatureViewModelFactoryService.cs
浏览文件 @
01a54bce
...
...
@@ -16,7 +16,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.ChangeSignature
[
ExportLanguageService
(
typeof
(
IChangeSignatureViewModelFactoryService
),
LanguageNames
.
CSharp
),
Shared
]
internal
class
CSharpChangeSignatureViewModelFactoryService
:
ChangeSignatureViewModelFactoryService
{
private
static
readonly
CSharpParseOptions
s_langVersionLatestParseOptions
=
new
CSharpParseOptions
(
LanguageVersion
.
Preview
);
private
static
readonly
CSharpParseOptions
s_langVersionLatestParseOptions
=
new
(
LanguageVersion
.
Preview
);
[
ImportingConstructor
]
[
Obsolete
(
MefConstruction
.
ImportingConstructorMessage
,
error
:
true
)]
...
...
src/VisualStudio/CSharp/Impl/CodeModel/CSharpCodeModelService.cs
浏览文件 @
01a54bce
...
...
@@ -48,24 +48,24 @@ internal partial class CSharpCodeModelService : AbstractCodeModelService
}
private
static
readonly
SymbolDisplayFormat
s_codeTypeRefAsFullNameFormat
=
new
SymbolDisplayFormat
(
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
,
miscellaneousOptions
:
SymbolDisplayMiscellaneousOptions
.
EscapeKeywordIdentifiers
|
SymbolDisplayMiscellaneousOptions
.
ExpandNullable
);
private
static
readonly
SymbolDisplayFormat
s_codeTypeRefAsStringFormat
=
new
SymbolDisplayFormat
(
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
,
miscellaneousOptions
:
SymbolDisplayMiscellaneousOptions
.
EscapeKeywordIdentifiers
|
SymbolDisplayMiscellaneousOptions
.
UseSpecialTypes
);
private
static
readonly
SymbolDisplayFormat
s_externalNameFormat
=
new
SymbolDisplayFormat
(
new
(
miscellaneousOptions
:
SymbolDisplayMiscellaneousOptions
.
EscapeKeywordIdentifiers
,
parameterOptions
:
SymbolDisplayParameterOptions
.
IncludeName
);
private
static
readonly
SymbolDisplayFormat
s_externalFullNameFormat
=
new
SymbolDisplayFormat
(
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
memberOptions
:
SymbolDisplayMemberOptions
.
IncludeContainingType
|
SymbolDisplayMemberOptions
.
IncludeExplicitInterface
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
,
...
...
@@ -73,7 +73,7 @@ internal partial class CSharpCodeModelService : AbstractCodeModelService
parameterOptions
:
SymbolDisplayParameterOptions
.
IncludeName
);
private
static
readonly
SymbolDisplayFormat
s_setTypeFormat
=
new
SymbolDisplayFormat
(
new
(
globalNamespaceStyle
:
SymbolDisplayGlobalNamespaceStyle
.
Omitted
,
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
,
...
...
src/VisualStudio/CSharp/Impl/CodeModel/EndRegionFormattingRule.cs
浏览文件 @
01a54bce
...
...
@@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel
{
internal
sealed
class
EndRegionFormattingRule
:
AbstractFormattingRule
{
public
static
readonly
EndRegionFormattingRule
Instance
=
new
EndRegionFormattingRule
();
public
static
readonly
EndRegionFormattingRule
Instance
=
new
();
private
EndRegionFormattingRule
()
{
...
...
src/VisualStudio/CSharp/Impl/CodeModel/ModifierFlagsExtensions.cs
浏览文件 @
01a54bce
...
...
@@ -13,7 +13,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel
{
internal
static
class
ModifierFlagsExtensions
{
private
static
readonly
SortedList
<
ModifierFlags
,
SyntaxKind
>
s_modifierDefinitions
=
new
SortedList
<
ModifierFlags
,
SyntaxKind
>
private
static
readonly
SortedList
<
ModifierFlags
,
SyntaxKind
>
s_modifierDefinitions
=
new
()
{
{
ModifierFlags
.
Public
,
SyntaxKind
.
PublicKeyword
},
{
ModifierFlags
.
Protected
,
SyntaxKind
.
ProtectedKeyword
},
...
...
src/VisualStudio/CSharp/Impl/Interactive/CSharpVsInteractiveWindowPackage.cs
浏览文件 @
01a54bce
...
...
@@ -15,7 +15,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.Interactive
internal
sealed
partial
class
CSharpVsInteractiveWindowPackage
:
VsInteractiveWindowPackage
<
CSharpVsInteractiveWindowProvider
>
{
private
const
string
IdString
=
"CA8CC5C7-0231-406A-95CD-AA5ED6AC0190"
;
internal
static
readonly
Guid
Id
=
new
Guid
(
IdString
);
internal
static
readonly
Guid
Id
=
new
(
IdString
);
protected
override
Guid
ToolWindowId
{
...
...
src/VisualStudio/CSharp/Impl/ObjectBrowser/CSharpLibraryService.cs
浏览文件 @
01a54bce
...
...
@@ -14,11 +14,11 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.ObjectBrowser
[
ExportLanguageService
(
typeof
(
ILibraryService
),
LanguageNames
.
CSharp
),
Shared
]
internal
class
CSharpLibraryService
:
AbstractLibraryService
{
private
static
readonly
SymbolDisplayFormat
s_typeDisplayFormat
=
new
SymbolDisplayFormat
(
private
static
readonly
SymbolDisplayFormat
s_typeDisplayFormat
=
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypes
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
|
SymbolDisplayGenericsOptions
.
IncludeVariance
);
private
static
readonly
SymbolDisplayFormat
s_memberDisplayFormat
=
new
SymbolDisplayFormat
(
private
static
readonly
SymbolDisplayFormat
s_memberDisplayFormat
=
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
|
SymbolDisplayGenericsOptions
.
IncludeVariance
,
memberOptions
:
SymbolDisplayMemberOptions
.
IncludeExplicitInterface
|
SymbolDisplayMemberOptions
.
IncludeParameters
,
...
...
src/VisualStudio/CSharp/Impl/ObjectBrowser/ListItemFactory.cs
浏览文件 @
01a54bce
...
...
@@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.ObjectBrowser
internal
class
ListItemFactory
:
AbstractListItemFactory
{
private
static
readonly
SymbolDisplayFormat
s_memberDisplayFormat
=
new
SymbolDisplayFormat
(
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
|
SymbolDisplayGenericsOptions
.
IncludeVariance
,
memberOptions
:
SymbolDisplayMemberOptions
.
IncludeExplicitInterface
|
SymbolDisplayMemberOptions
.
IncludeParameters
,
...
...
@@ -18,7 +18,7 @@ internal class ListItemFactory : AbstractListItemFactory
miscellaneousOptions
:
SymbolDisplayMiscellaneousOptions
.
UseSpecialTypes
);
private
static
readonly
SymbolDisplayFormat
s_memberWithContainingTypeDisplayFormat
=
new
SymbolDisplayFormat
(
new
(
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
|
SymbolDisplayGenericsOptions
.
IncludeVariance
,
memberOptions
:
SymbolDisplayMemberOptions
.
IncludeContainingType
|
SymbolDisplayMemberOptions
.
IncludeExplicitInterface
|
SymbolDisplayMemberOptions
.
IncludeParameters
,
...
...
src/VisualStudio/CSharp/Impl/Progression/CSharpProgressionLanguageService.cs
浏览文件 @
01a54bce
...
...
@@ -24,7 +24,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.Progression
[
ExportLanguageService
(
typeof
(
IProgressionLanguageService
),
LanguageNames
.
CSharp
),
Shared
]
internal
partial
class
CSharpProgressionLanguageService
:
IProgressionLanguageService
{
private
static
readonly
SymbolDisplayFormat
s_descriptionFormat
=
new
SymbolDisplayFormat
(
private
static
readonly
SymbolDisplayFormat
s_descriptionFormat
=
new
(
globalNamespaceStyle
:
SymbolDisplayGlobalNamespaceStyle
.
OmittedAsContaining
,
typeQualificationStyle
:
SymbolDisplayTypeQualificationStyle
.
NameAndContainingTypesAndNamespaces
,
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
,
...
...
@@ -35,7 +35,7 @@ internal partial class CSharpProgressionLanguageService : IProgressionLanguageSe
SymbolDisplayParameterOptions
.
IncludeOptionalBrackets
,
miscellaneousOptions
:
SymbolDisplayMiscellaneousOptions
.
UseSpecialTypes
);
private
static
readonly
SymbolDisplayFormat
s_labelFormat
=
new
SymbolDisplayFormat
(
private
static
readonly
SymbolDisplayFormat
s_labelFormat
=
new
(
genericsOptions
:
SymbolDisplayGenericsOptions
.
IncludeTypeParameters
,
memberOptions
:
SymbolDisplayMemberOptions
.
IncludeParameters
|
SymbolDisplayMemberOptions
.
IncludeExplicitInterface
,
...
...
src/VisualStudio/CSharp/Impl/Utilities/BlankLineInGeneratedMethodFormattingRule.cs
浏览文件 @
01a54bce
...
...
@@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.Utilities
{
internal
sealed
class
BlankLineInGeneratedMethodFormattingRule
:
AbstractFormattingRule
{
public
static
readonly
BlankLineInGeneratedMethodFormattingRule
Instance
=
new
BlankLineInGeneratedMethodFormattingRule
();
public
static
readonly
BlankLineInGeneratedMethodFormattingRule
Instance
=
new
();
private
BlankLineInGeneratedMethodFormattingRule
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录