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