443 references to WithMetadataImportOptions
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
654
WithMetadataImportOptions
(value);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (88)
CodeGen\CodeGenAsyncEHTests.cs (1)
940
var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module =>
CodeGen\CodeGenAsyncLocalsTests.cs (6)
236
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
249
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
288
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
306
var vd = CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
962
var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
1247
CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: s_asyncRefs, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
CodeGen\CodeGenAsyncSpillTests.cs (2)
945
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
960
CompileAndVerify(source, verify: Verification.Passes, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
CodeGen\CodeGenAsyncTests.cs (4)
913
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
915
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
972
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
974
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
CodeGen\CodeGenClosureLambdaTests.cs (3)
3970
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: m =>
4041
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: m =>
4082
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: m =>
CodeGen\CodeGenConstructorInitTests.cs (5)
690
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
757
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
779
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
846
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
925
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
CodeGen\CodeGenDynamicTests.cs (8)
41
var unoptimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe));
42
var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe));
584
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: peModule =>
640
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: peModule =>
675
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: peModule =>
801
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: peModule =>
821
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: peModule =>
7593
TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
CodeGen\CodeGenFieldInitTests.cs (1)
569
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
CodeGen\CodeGenIterators.cs (6)
1176
var rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1193
var dbg = CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1232
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1249
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1281
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1293
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
CodeGen\CodeGenLocalFunctionTests.cs (18)
5228
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5277
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5318
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5351
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5385
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5418
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5523
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
5530
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
5621
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5627
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5673
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5739
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5814
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5889
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5957
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
5997
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
6053
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
6110
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
CodeGen\CodeGenTests.cs (2)
932
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14809
options: TestOptions.UnsafeDebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
CodeGen\SwitchTests.cs (2)
3040
var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
10246
options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication).
WithMetadataImportOptions
(MetadataImportOptions.All));
Emit\CompilationEmitTests.cs (16)
897
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2133
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2164
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2192
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2221
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2270
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2280
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2292
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2337
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2347
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2359
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2404
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2414
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2426
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2465
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2510
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1022
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
Emit\EmitMetadataTests.cs (13)
120
}, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
579
CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
673
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
741
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
888
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
941
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
1011
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
1288
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2597
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2642
CompileAndVerify(text, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
2714
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2871
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2923
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (26)
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
121
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), assemblyName: "EncMethodExtents");
Emit\UnmanagedTypeModifierTests.cs (2)
1034
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
1087
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
PDB\PDBAsyncTests.cs (12)
759
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
847
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
952
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1039
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1155
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1259
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1366
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1464
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1550
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1658
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1694
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
1948
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All)), symbolValidator: module =>
PDB\PDBConstantTests.cs (1)
409
var v = CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
PDB\PDBIteratorTests.cs (10)
736
var v = CompileAndVerify(text, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
807
var v = CompileAndVerify(text, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
913
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
931
var v = CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1027
var v = CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1101
var v = CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1225
var v = CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1371
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1457
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1519
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (188)
Attributes\AttributeTests.cs (9)
1837
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1871
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1932
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1995
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2214
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2280
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2351
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
2483
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
11008
var verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
3235
CompileAndVerify(source, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: verify);
Attributes\AttributeTests_Dynamic.cs (5)
822
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
853
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
888
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
910
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
1087
CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
Attributes\AttributeTests_IsByRefLike.cs (3)
356
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
452
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
606
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
Attributes\AttributeTests_IsUnmanaged.cs (12)
92
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
114
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
201
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
229
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
320
options: TestOptions.ReleaseModule.
WithMetadataImportOptions
(MetadataImportOptions.All),
349
options: TestOptions.ReleaseModule.
WithMetadataImportOptions
(MetadataImportOptions.All),
417
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
437
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
626
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
702
CreateCompilation(source: code, options: TestOptions.ReleaseModule.
WithMetadataImportOptions
(MetadataImportOptions.All)).VerifyDiagnostics(
713
CreateCompilation(source: code, options: TestOptions.ReleaseModule.
WithMetadataImportOptions
(MetadataImportOptions.All)).VerifyDiagnostics(
722
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
454
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
491
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
518
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
554
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
Attributes\AttributeTests_MarshalAs.cs (2)
32
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
66
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Attributes\AttributeTests_NativeInteger.cs (7)
1081
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
1105
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
1128
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
1152
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
1413
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), parseOptions: TestOptions.Regular9);
1444
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
1460
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Attributes\AttributeTests_Nullable.cs (18)
526
var options = TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
561
var options = TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
2166
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2193
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2220
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2273
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2297
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2506
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2531
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2557
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
3470
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
3756
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
3826
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
3867
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
3967
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
4036
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
4115
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
4970
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Attributes\AttributeTests_NullableContext.cs (1)
204
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Attributes\AttributeTests_NullablePublicOnly.cs (18)
31
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
56
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
83
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
99
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
119
var options = TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
139
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
159
var options = WithNullableEnable().
WithMetadataImportOptions
(MetadataImportOptions.All);
179
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
199
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
216
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
253
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
270
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
290
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
309
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
329
var options = WithNullableDisable().
WithMetadataImportOptions
(MetadataImportOptions.All);
353
var options = TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All);
376
var options = TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All);
501
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Attributes\AttributeTests_ReadOnlyStruct.cs (3)
346
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
444
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
598
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
Attributes\AttributeTests_RefReadOnly.cs (15)
594
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
622
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
648
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
682
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
721
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
753
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
780
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
815
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
1051
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
1169
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
1325
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
2342
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2366
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2389
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
2413
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
Attributes\AttributeTests_Synthesized.cs (24)
125
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
146
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.UnsafeReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
172
.
WithMetadataImportOptions
(MetadataImportOptions.All);
221
.
WithMetadataImportOptions
(MetadataImportOptions.All);
260
.
WithMetadataImportOptions
(MetadataImportOptions.All);
288
.
WithMetadataImportOptions
(MetadataImportOptions.All);
426
.
WithMetadataImportOptions
(MetadataImportOptions.All);
481
.
WithMetadataImportOptions
(MetadataImportOptions.All);
539
.
WithMetadataImportOptions
(MetadataImportOptions.All);
577
.
WithMetadataImportOptions
(MetadataImportOptions.All);
620
.
WithMetadataImportOptions
(MetadataImportOptions.All);
665
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
735
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
797
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
871
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1672
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1715
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1757
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1799
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1802
var options = TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
1838
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1868
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1898
.
WithMetadataImportOptions
(MetadataImportOptions.All);
1901
var options = TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
5762
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
RefReadonlyParameterTests.cs (2)
837
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
861
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
Semantics\InlineArrayTests.cs (21)
294
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
360
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
426
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
492
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
556
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
648
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
685
var comp = CreateCompilation(src, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
737
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
775
var comp = CreateCompilation(src, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
819
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
854
var comp = CreateCompilation(src, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
922
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
960
var comp = CreateCompilation(src, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1046
comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1136
comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14635
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14684
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14733
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14781
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14828
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
14872
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Semantics\ParamsCollectionTests.cs (26)
97
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
277
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
590
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
1262
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
2414
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
2602
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
2735
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
2786
comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
2937
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
2981
comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
4335
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), parseOptions: TestOptions.Regular12);
4511
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
4515
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
4664
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
4668
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
8677
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
8778
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
8875
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
8918
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
8962
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
12760
var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
12766
var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
12774
var comp4 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseModule.
WithMetadataImportOptions
(MetadataImportOptions.All));
13155
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
13215
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
13278
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
Semantics\PrimaryConstructorTests.cs (9)
15710
var comp = CreateCompilation(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
15732
var comp = CreateCompilation(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
15753
var comp = CreateCompilation(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
15774
var comp = CreateCompilation(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
22021
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
22042
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
22068
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
22094
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
22125
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Semantics\RecordTests.cs (7)
25100
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
25160
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
25237
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
25294
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
25369
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
25453
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
25523
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\AnonymousFunctionTests.cs (3)
25
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
40
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
1189
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
Semantics\BindingTests.cs (2)
1965
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
1987
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
Semantics\ConditionalOperatorTests.cs (1)
715
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
Semantics\GenericConstraintsTests.cs (2)
2192
CompileAndVerify(code, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: module =>
3080
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
Semantics\InitOnlyMemberTests.cs (1)
1443
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Semantics\LocalFunctionTests.cs (3)
6891
CompileAndVerify(source, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), symbolValidator: m =>
6916
CompileAndVerify(source, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: "System.Int32", symbolValidator: m =>
6946
CompileAndVerify(source, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All), expectedOutput: "System.Int32", symbolValidator: m =>
Semantics\NullableReferenceTypesTests.cs (4)
17888
compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
98707
options: WithNullableEnable(TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)));
98774
options: WithNullableEnable(TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)),
98845
options: WithNullableEnable(TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All)),
Semantics\RecordStructTests.cs (1)
10514
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Semantics\SuppressAccessibilityChecksTests.cs (2)
44
", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
164
", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Semantics\TopLevelStatementsTests.cs (5)
6078
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
6149
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
9046
var comp = CreateCompilation(text, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
9101
var comp = CreateCompilation(text, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
9495
var comp = CreateCompilation(text, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (112)
Compilation\CSharpCompilationOptionsTests.cs (1)
139
TestProperty((old, value) => old.
WithMetadataImportOptions
(value), opt => opt.MetadataImportOptions, MetadataImportOptions.Internal);
Compilation\ReferenceManagerTests.cs (9)
1836
var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Public));
1837
var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
1838
var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1840
var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Public));
1841
var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
1842
var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1868
var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
1873
var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
1878
var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Public));
Symbols\AnonymousTypesSymbolTests.cs (1)
1452
var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal), parseOptions: TestOptions.Regular);
Symbols\DefaultInterfaceImplementationTests.cs (43)
8871
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
9041
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
10371
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
10977
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
11000
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
14212
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
14230
var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
14606
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
16767
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
17726
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
18282
var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe.
WithMetadataImportOptions
(metadataImportOptions),
18315
var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(metadataImportOptions),
18329
options: TestOptions.DebugExe.
WithMetadataImportOptions
(metadataImportOptions),
18457
var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
18465
compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
18495
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
18504
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
19969
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
20000
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
20038
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
20170
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
26531
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
26568
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
26607
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
26743
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
27789
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
27863
var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
27883
var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
28117
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
30103
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
36984
foreach (var options in new[] { TestOptions.DebugExe, TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All) })
43789
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
43919
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
44054
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
44642
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
44689
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
44723
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
44747
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
45056
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
45207
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
45350
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
45540
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
45680
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
Symbols\ExtendedPartialMethodsTests.cs (1)
2556
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
Symbols\ExtensionMethodTests.cs (4)
57
CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
2476
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
2522
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
2591
", options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All));
Symbols\IndexerTests.cs (1)
70
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
Symbols\Metadata\MetadataMemberTests.cs (14)
695
options = options.
WithMetadataImportOptions
(MetadataImportOptions.Internal);
698
options = options.
WithMetadataImportOptions
(MetadataImportOptions.All);
701
options = options.
WithMetadataImportOptions
(MetadataImportOptions.Public);
704
options = options.
WithMetadataImportOptions
((MetadataImportOptions)byte.MaxValue);
741
compilation = compilation.WithOptions(options.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
748
compilation = compilation.WithOptions(options.
WithMetadataImportOptions
(MetadataImportOptions.All));
755
compilation = compilation.WithOptions(options.
WithMetadataImportOptions
((MetadataImportOptions)byte.MaxValue));
773
var options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal);
776
options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All);
779
options = TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.Public);
782
options = TestOptions.DebugDll.
WithMetadataImportOptions
((MetadataImportOptions)byte.MaxValue);
796
var compilation = CreateCompilation("", options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal), references: new[] { compilation0.EmitToImageReference() });
803
compilation = compilation.WithOptions(TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
810
compilation = compilation.WithOptions(TestOptions.DebugDll.
WithMetadataImportOptions
((MetadataImportOptions)byte.MaxValue));
Symbols\Metadata\MetadataTypeTests.cs (3)
117
var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
217
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
284
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
Symbols\Metadata\PE\LoadingEvents.cs (3)
468
var comp = CreateCompilation("", new[] { reference }, TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
521
var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
581
var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Symbols\Metadata\PE\LoadingFields.cs (1)
29
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
Symbols\Metadata\PE\LoadingMethods.cs (1)
36
options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
Symbols\ModuleInitializers\IgnoredTests.cs (11)
36
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
62
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
88
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
113
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
138
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
163
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
188
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
213
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
234
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
255
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
288
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
Symbols\ModuleInitializers\ModuleInitializersTests.cs (11)
90
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
125
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
219
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
502
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
552
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
598
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
651
options: TestOptions.DebugExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
778
options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All),
815
var moduleOptions = TestOptions.ReleaseModule.
WithMetadataImportOptions
(MetadataImportOptions.All);
853
.
WithMetadataImportOptions
(MetadataImportOptions.All)
1067
.
WithMetadataImportOptions
(MetadataImportOptions.All)
Symbols\PartialPropertiesTests.cs (2)
1143
var comp1 = CreateCompilation([], options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), references: [reference]);
1190
var comp1 = CreateCompilation([], options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All), references: [reference]);
Symbols\Source\CustomModifierCopyTests.cs (1)
881
options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.All),
Symbols\Source\ExpressionBodiedMethodTests.cs (2)
340
}", options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
369
}", options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
444
}", options: TestOptions.ReleaseExe.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
463
}", options: TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Symbols\Source\PropertyTests.cs (1)
789
var compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.Internal));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1503
compilationOptions = compilationOptions.
WithMetadataImportOptions
(MetadataImportOptions.Internal);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (1)
444
var comp = CreateEmptyCompilation("", references, options: TestOptions.ReleaseDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Metadata\WinMdEventTests.cs (1)
3556
var comp = CreateEmptyCompilation("", WinRtRefs.Concat(new[] { ilRef }), TestOptions.DebugDll.
WithMetadataImportOptions
(MetadataImportOptions.All));
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\SnapshotSerializationTests.cs (1)
652
var csharpOptions = CSharp.CSharpCompilation.Create("dummy").Options.WithNullableContextOptions(NullableContextOptions.Warnings).
WithMetadataImportOptions
(MetadataImportOptions.All);