Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
04838e47
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,发现更多精彩内容 >>
提交
04838e47
编写于
2月 15, 2018
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tests passing
上级
3d719468
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
src/Compilers/CSharp/Test/Symbol/Symbols/Metadata/PE/LoadingAttributes.cs
...harp/Test/Symbol/Symbols/Metadata/PE/LoadingAttributes.cs
+1
-1
src/Compilers/CSharp/Test/Symbol/Symbols/Metadata/PE/NoPiaInstantiationOfGenericClassAndStruct.cs
.../Metadata/PE/NoPiaInstantiationOfGenericClassAndStruct.cs
+2
-2
src/Compilers/CSharp/Test/Symbol/Symbols/Retargeting/NoPia.cs
...Compilers/CSharp/Test/Symbol/Symbols/Retargeting/NoPia.cs
+2
-2
src/Compilers/CSharp/Test/Symbol/Symbols/Source/CustomModifierCopyTests.cs
...arp/Test/Symbol/Symbols/Source/CustomModifierCopyTests.cs
+1
-1
src/Compilers/Test/Utilities/CSharp/CSharpTestBase.cs
src/Compilers/Test/Utilities/CSharp/CSharpTestBase.cs
+3
-3
未找到文件。
src/Compilers/CSharp/Test/Symbol/Symbols/Metadata/PE/LoadingAttributes.cs
浏览文件 @
04838e47
...
...
@@ -1504,7 +1504,7 @@ .maxstack 8
} // end of class MyAttribute
"
;
var
c
=
Create
Standard
CompilationWithCustomILSource
(
@"
var
c
=
CreateCompilationWithCustomILSource
(
@"
[MyAttribute(typeof(MyAttribute))]
public class Test
{
...
...
src/Compilers/CSharp/Test/Symbol/Symbols/Metadata/PE/NoPiaInstantiationOfGenericClassAndStruct.cs
浏览文件 @
04838e47
...
...
@@ -473,7 +473,7 @@ public void NoPiaIllegalGenericInstantiationSymbolForAssemblyRefsWithClassThatIn
{
//Test class that inherits Generic(Of NoPIAType)
var
localConsumer
=
Create
StandardCompilation
(
assemblyName
:
"Dummy"
,
source
:
(
string
)
null
,
var
localConsumer
=
Create
CompilationWithMscorlib40
(
assemblyName
:
"Dummy"
,
source
:
(
string
[]
)
null
,
references
:
new
[]
{
TestReferences
.
SymbolsTests
.
NoPia
.
NoPIAGenericsAsm1
,
...
...
@@ -552,7 +552,7 @@ public List<FooStruct> Method4()
var
localType
=
CreateStandardCompilation
(
assemblyName
:
"Dummy"
,
source
:
localTypeSource
,
references
:
new
[]
{
TestReferences
.
SymbolsTests
.
NoPia
.
GeneralPia
.
WithEmbedInteropTypes
(
true
)
});
var
localConsumer
=
CreateStandardCompilation
(
assemblyName
:
"Dummy"
,
source
:
(
string
)
null
,
var
localConsumer
=
CreateStandardCompilation
(
assemblyName
:
"Dummy"
,
source
:
(
string
[]
)
null
,
references
:
new
MetadataReference
[]
{
TestReferences
.
SymbolsTests
.
NoPia
.
GeneralPiaCopy
,
...
...
src/Compilers/CSharp/Test/Symbol/Symbols/Retargeting/NoPia.cs
浏览文件 @
04838e47
...
...
@@ -344,10 +344,10 @@ public void HideLocalTypeDefinitions()
[
ConditionalFact
(
typeof
(
ClrOnly
),
typeof
(
DesktopOnly
))]
public
void
LocalTypeSubstitution1_1
()
{
var
LocalTypes1
=
Create
StandardCompilation
(
s_sourceLocalTypes1_IL
,
options
:
TestOptions
.
ReleaseDll
,
assemblyName
:
"LocalTypes1"
);
var
LocalTypes1
=
Create
CompilationWithMscorlib40
(
s_sourceLocalTypes1_IL
,
options
:
TestOptions
.
ReleaseDll
,
assemblyName
:
"LocalTypes1"
);
CompileAndVerify
(
LocalTypes1
);
var
LocalTypes2
=
Create
StandardCompilation
(
s_sourceLocalTypes2_IL
,
options
:
TestOptions
.
ReleaseDll
,
assemblyName
:
"LocalTypes2"
);
var
LocalTypes2
=
Create
CompilationWithMscorlib40
(
s_sourceLocalTypes2_IL
,
options
:
TestOptions
.
ReleaseDll
,
assemblyName
:
"LocalTypes2"
);
CompileAndVerify
(
LocalTypes2
);
var
assemblies1
=
MetadataTestHelpers
.
GetSymbolsForReferences
(
new
CSharpCompilation
[]
{
LocalTypes1
,
LocalTypes2
},
...
...
src/Compilers/CSharp/Test/Symbol/Symbols/Source/CustomModifierCopyTests.cs
浏览文件 @
04838e47
...
...
@@ -730,7 +730,7 @@ static void Main()
}
}
"
;
var
comp
=
Create
Standard
CompilationWithCustomILSource
(
source
,
il
,
var
comp
=
CreateCompilationWithCustomILSource
(
source
,
il
,
options
:
TestOptions
.
ReleaseExe
.
WithMetadataImportOptions
(
MetadataImportOptions
.
All
),
references
:
new
[]
{
CSharpRef
});
...
...
src/Compilers/Test/Utilities/CSharp/CSharpTestBase.cs
浏览文件 @
04838e47
...
...
@@ -329,7 +329,7 @@ public static SyntaxTree ParseWithRoundTripCheck(string text, CSharpParseOptions
string
ilSource
,
IEnumerable
<
MetadataReference
>
references
=
null
,
CSharpCompilationOptions
options
=
null
,
bool
appendDefaultHeader
=
true
)
=>
CreateCompilationWithCustomILSource
(
source
,
ilSource
,
TargetFramework
.
NetStandard20
,
references
,
options
,
appendDefaultHeader
);
bool
appendDefaultHeader
=
true
)
=>
CreateCompilationWithCustomILSource
(
source
,
ilSource
,
TargetFramework
.
Standard
,
references
,
options
,
appendDefaultHeader
);
public
static
CSharpCompilation
CreateCompilationWithCustomILSource
(
string
source
,
...
...
@@ -359,11 +359,11 @@ public static SyntaxTree ParseWithRoundTripCheck(string text, CSharpParseOptions
string
assemblyName
=
""
)
=>
CreateCompilation
(
Parse
(
source
,
sourceFileName
,
parseOptions
),
TargetFramework
.
Net40
,
references
,
options
,
assemblyName
);
public
static
CSharpCompilation
CreateCompilationWithMscorlib40
(
string
[]
source
s
,
string
[]
source
,
IEnumerable
<
MetadataReference
>
references
=
null
,
CSharpCompilationOptions
options
=
null
,
CSharpParseOptions
parseOptions
=
null
,
string
assemblyName
=
""
)
=>
CreateCompilation
(
source
s
,
TargetFramework
.
Net40
,
references
,
options
,
parseOptions
,
assemblyName
);
string
assemblyName
=
""
)
=>
CreateCompilation
(
source
,
TargetFramework
.
Net40
,
references
,
options
,
parseOptions
,
assemblyName
);
public
static
CSharpCompilation
CreateCompilationWithMscorlib45
(
IEnumerable
<
SyntaxTree
>
source
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录