Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET
Roslyn
提交
09cc94fd
R
Roslyn
项目概览
dotNET
/
Roslyn
通知
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,发现更多精彩内容 >>
提交
09cc94fd
编写于
9月 20, 2016
作者:
V
VSadov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
renamed SynthesizeTupleNamesAttribute to have no "Opt"
上级
0583f0d7
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
22 addition
and
22 deletion
+22
-22
src/Compilers/CSharp/Portable/Symbols/Compilation_WellKnownMembers.cs
...s/CSharp/Portable/Symbols/Compilation_WellKnownMembers.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs
...ilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs
...ilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs
...lers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs
...s/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Source/SourceParameterSymbolBase.cs
...harp/Portable/Symbols/Source/SourceParameterSymbolBase.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs
...rs/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedFieldSymbolBase.cs
...ortable/Symbols/Synthesized/SynthesizedFieldSymbolBase.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedImplementationMethod.cs
...le/Symbols/Synthesized/SynthesizedImplementationMethod.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedParameterSymbol.cs
...ortable/Symbols/Synthesized/SynthesizedParameterSymbol.cs
+1
-1
src/Compilers/CSharp/Portable/Symbols/TypeSymbolExtensions.cs
...Compilers/CSharp/Portable/Symbols/TypeSymbolExtensions.cs
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb
.../VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb
.../VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb
...VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb
...ualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceParameterSymbolBase.vb
...asic/Portable/Symbols/Source/SourceParameterSymbolBase.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb
...sualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/Source/SynthesizedFieldSymbol.vb
...alBasic/Portable/Symbols/Source/SynthesizedFieldSymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/SynthesizedSymbols/SynthesizedBackingFieldBase.vb
...Symbols/SynthesizedSymbols/SynthesizedBackingFieldBase.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/SynthesizedSymbols/SynthesizedInterfaceImplementationStubSymbol.vb
...edSymbols/SynthesizedInterfaceImplementationStubSymbol.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/TypeSymbolExtensions.vb
...lers/VisualBasic/Portable/Symbols/TypeSymbolExtensions.vb
+1
-1
src/Compilers/VisualBasic/Portable/Symbols/WellKnownMembers.vb
...ompilers/VisualBasic/Portable/Symbols/WellKnownMembers.vb
+1
-1
未找到文件。
src/Compilers/CSharp/Portable/Symbols/Compilation_WellKnownMembers.cs
浏览文件 @
09cc94fd
...
...
@@ -499,7 +499,7 @@ internal SynthesizedAttributeData SynthesizeDynamicAttribute(TypeSymbol type, in
}
}
internal
SynthesizedAttributeData
SynthesizeTupleNamesAttribute
Opt
(
TypeSymbol
type
)
internal
SynthesizedAttributeData
SynthesizeTupleNamesAttribute
(
TypeSymbol
type
)
{
Debug
.
Assert
((
object
)
type
!=
null
);
Debug
.
Assert
(
type
.
ContainsTuple
());
...
...
src/Compilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs
浏览文件 @
09cc94fd
...
...
@@ -304,7 +304,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
if
(
Type
.
ContainsTupleNames
())
{
AddSynthesizedAttribute
(
ref
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
));
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs
浏览文件 @
09cc94fd
...
...
@@ -468,7 +468,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
if
(
Type
.
ContainsTupleNames
())
{
AddSynthesizedAttribute
(
ref
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
));
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs
浏览文件 @
09cc94fd
...
...
@@ -960,7 +960,7 @@ internal override void AddSynthesizedReturnTypeAttributes(ref ArrayBuilder<Synth
if
(
ReturnType
.
ContainsTupleNames
())
{
AddSynthesizedAttribute
(
ref
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
ReturnType
));
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
ReturnType
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs
浏览文件 @
09cc94fd
...
...
@@ -1091,7 +1091,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
if
(
baseType
.
ContainsTupleNames
())
{
AddSynthesizedAttribute
(
ref
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
baseType
));
AddSynthesizedAttribute
(
ref
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
(
baseType
));
}
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Source/SourceParameterSymbolBase.cs
浏览文件 @
09cc94fd
...
...
@@ -85,7 +85,7 @@ internal sealed override void AddSynthesizedAttributes(ModuleCompilationState co
if
(
Type
.
ContainsTupleNames
())
{
AddSynthesizedAttribute
(
ref
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
));
compilation
.
SynthesizeTupleNamesAttribute
(
Type
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs
浏览文件 @
09cc94fd
...
...
@@ -1053,7 +1053,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
if
(
Type
.
ContainsTupleNames
())
{
AddSynthesizedAttribute
(
ref
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
));
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedFieldSymbolBase.cs
浏览文件 @
09cc94fd
...
...
@@ -62,7 +62,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
compilation
.
CanEmitSpecialType
(
SpecialType
.
System_String
))
{
AddSynthesizedAttribute
(
ref
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
));
compilation
.
SynthesizeTupleNamesAttribute
(
Type
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedImplementationMethod.cs
浏览文件 @
09cc94fd
...
...
@@ -92,7 +92,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
compilation
.
CanEmitSpecialType
(
SpecialType
.
System_String
))
{
AddSynthesizedAttribute
(
ref
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
ReturnType
));
compilation
.
SynthesizeTupleNamesAttribute
(
ReturnType
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedParameterSymbol.cs
浏览文件 @
09cc94fd
...
...
@@ -169,7 +169,7 @@ internal override void AddSynthesizedAttributes(ModuleCompilationState compilati
compilation
.
CanEmitSpecialType
(
SpecialType
.
System_String
))
{
AddSynthesizedAttribute
(
ref
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
));
compilation
.
SynthesizeTupleNamesAttribute
(
Type
));
}
}
...
...
src/Compilers/CSharp/Portable/Symbols/TypeSymbolExtensions.cs
浏览文件 @
09cc94fd
...
...
@@ -1472,7 +1472,7 @@ private static bool NormalizeTaskTypesInPointer(CSharpCompilation compilation, r
{
if
(
type
.
ContainsTupleNames
())
{
var
attr
=
declaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
type
);
var
attr
=
declaringCompilation
.
SynthesizeTupleNamesAttribute
(
type
);
if
(
attr
!=
null
)
{
return
new
Cci
.
TypeReferenceWithAttributes
(
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -749,7 +749,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
MyBase
.
AddSynthesizedAttributes
(
compilationState
,
attributes
)
If
Me
.
Type
.
ContainsTupleNames
()
Then
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
))
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
))
End
If
End
Sub
End
Class
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -282,7 +282,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
End
If
If
Me
.
Type
.
ContainsTupleNames
()
Then
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
))
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
))
End
If
End
Sub
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -1448,7 +1448,7 @@ lReportErrorOnTwoTokens:
MyBase
.
AddSynthesizedReturnTypeAttributes
(
attributes
)
If
Me
.
ReturnType
.
ContainsTupleNames
()
Then
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Me
.
ReturnType
))
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Me
.
ReturnType
))
End
If
End
Sub
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -2443,7 +2443,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
Dim
baseType
As
NamedTypeSymbol
=
Me
.
BaseTypeNoUseSiteDiagnostics
If
baseType
IsNot
Nothing
Then
If
baseType
.
ContainsTupleNames
()
Then
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
baseType
))
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
(
baseType
))
End
If
End
If
End
Sub
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceParameterSymbolBase.vb
浏览文件 @
09cc94fd
...
...
@@ -66,7 +66,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
End
If
If
Me
.
Type
.
ContainsTupleNames
()
Then
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
))
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
))
End
If
End
Sub
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -1194,7 +1194,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
MyBase
.
AddSynthesizedAttributes
(
compilationState
,
attributes
)
If
Me
.
Type
.
ContainsTupleNames
()
Then
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
))
AddSynthesizedAttribute
(
attributes
,
DeclaringCompilation
.
SynthesizeTupleNamesAttribute
(
Type
))
End
If
End
Sub
End
Class
...
...
src/Compilers/VisualBasic/Portable/Symbols/Source/SynthesizedFieldSymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -64,7 +64,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
compilation
.
HasTupleNamesAttributes
AndAlso
compilation
.
CanEmitSpecialType
(
SpecialType
.
System_String
)
Then
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
))
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
(
Type
))
End
If
Dim
sourceType
=
TryCast
(
ContainingSymbol
,
SourceMemberContainerTypeSymbol
)
...
...
src/Compilers/VisualBasic/Portable/Symbols/SynthesizedSymbols/SynthesizedBackingFieldBase.vb
浏览文件 @
09cc94fd
...
...
@@ -136,7 +136,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
compilation
.
HasTupleNamesAttributes
AndAlso
compilation
.
CanEmitSpecialType
(
SpecialType
.
System_String
)
Then
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
Type
))
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
(
Type
))
End
If
End
Sub
...
...
src/Compilers/VisualBasic/Portable/Symbols/SynthesizedSymbols/SynthesizedInterfaceImplementationStubSymbol.vb
浏览文件 @
09cc94fd
...
...
@@ -194,7 +194,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
compilation
.
HasTupleNamesAttributes
AndAlso
compilation
.
CanEmitSpecialType
(
SpecialType
.
System_String
)
Then
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
Opt
(
Me
.
ReturnType
))
AddSynthesizedAttribute
(
attributes
,
compilation
.
SynthesizeTupleNamesAttribute
(
Me
.
ReturnType
))
End
If
End
Sub
...
...
src/Compilers/VisualBasic/Portable/Symbols/TypeSymbolExtensions.vb
浏览文件 @
09cc94fd
...
...
@@ -1321,7 +1321,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
<
Extension
>
Friend
Function
GetTypeRefWithAttributes
(
type
As
TypeSymbol
,
declaringCompilation
As
VisualBasicCompilation
,
typeRef
As
Cci
.
ITypeReference
)
As
Cci
.
TypeReferenceWithAttributes
If
type
.
ContainsTupleNames
()
Then
Dim
attr
=
declaringCompilation
.
SynthesizeTupleNamesAttribute
Opt
(
type
)
Dim
attr
=
declaringCompilation
.
SynthesizeTupleNamesAttribute
(
type
)
If
attr
IsNot
Nothing
Then
Return
New
Cci
.
TypeReferenceWithAttributes
(
typeRef
,
...
...
src/Compilers/VisualBasic/Portable/Symbols/WellKnownMembers.vb
浏览文件 @
09cc94fd
...
...
@@ -654,7 +654,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End
Function
End
Class
Friend
Function
SynthesizeTupleNamesAttribute
Opt
(
type
As
TypeSymbol
)
As
SynthesizedAttributeData
Friend
Function
SynthesizeTupleNamesAttribute
(
type
As
TypeSymbol
)
As
SynthesizedAttributeData
Debug
.
Assert
(
type
IsNot
Nothing
)
Debug
.
Assert
(
type
.
ContainsTuple
())
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录